How to call Outlook after clicking a button in Java Swing? - java

I developed a desktop application in Java Swing. When I click a button, I want to open Microsoft Outlook. I am unable to figure it out to do this. Can anybody help me?

One approach is to use the Desktop class to open(File) for which Outlook is the default consumer. Or as pointed out by #Guillaume use Dekstop.mail() (or the overloaded variant) specifically for the email client.

Maybe you can use this method:
Runtime.getRuntime.exec(command)

Related

Using TextBox in PlayN without popup?

Is there any way to use textboxes (or Fields) in a PlayN application with TriplePlay, which captures input from the keyboard, without displaying a popup, just like a Swing application? This is meant for desktop, the Popup function may be used for Android.
Do I need to create my own textbox from scratch?
Thanks in advance.
there's still the old code but it was buggy, there are new attempts like Native*TextField, but it's not ready yet

Can a JavaFX 2 applet request focus and so focus on browser / tab?

I'm wondering if there would be any solution to show and focus on browser's tab containing a javafx 2 applet programmatically from the applet.
I don't think there's a simple solution, but who knows :)
PS : Obviously, stage.requestFocus() and stage.toFront() don't work.
No, there's absolutely no way to do this using no custom native bridge doing the job, even with a javascript bridge.
With the next versions of JavaFX neither.
And applets are not supported anymore in Chrome, so I think nobody would try that anymore.

Is there a way to display web component in the j2me program? I am programming for a s40 series Nokia phone

I am trying to display a small web content in my application. Is there any way to display a web content?
Currently I am displaying a link, and upon clicking that link my application will close and web browser will open to display the web page?
I want to display the web content inside my application without closing my application.
Any help will be highly appreciated.
Thanks,
HTMLComponent doesnot work upto mark and sometimes control swtching does'nt happen exactly according to flow but still we can use it as we dont have alternative solution in J2ME
LWUIT has a HTMLcomponent that you can use. It has limitations but can work

Java Swing: how to create assist functionality to teach user how to use the software?

Is there a library out there that can facilitate in creating assist or automated guide that tells users what action to take?
Like it should notice the user is running the software for the first time so it will say click this button, and when the user does, it will explain other features.
sort of like what Youtube's video editor does but I wonder if this is achievable in swing.
I don't know what you call this...but below is a good example to aim for but something that works for Java Swing.
http://jeffpickhardt.com/guiders/
I would do this using JPanel or image and mouse events by setting their visbility properties. I haven't tried it but, I think I can...
I used these libraries which are for rich applications
http://java.net/projects/animatedtransitions/
http://java.net/projects/timingframework/
let me know if you found anything new.
thanks
from
vinay

How to open mycomputer and control panel on button click?

I am developing a application in java swing? In which I need a notedpad. I want to give some extra feature in that notepad, as I want to open mycomputer, control panel, browser etc. directly from the notepad menu? Can you help me someway to do this task?
Also consider the features in java.awt.Desktop.
You can execute external programs in Java with Runtime.getRuntime().exec().

Categories