Hi I have created a java application. I found there is an application menu and about application in Mac. I donot know how to customize those about application dialog. i Want to write my own dialog instead of that dialog. How to do this.
I found that I have to use Application Adapter.
Thanks
Sunil Kumar Sahoo
tutorial: http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac2/
code sample: http://www.java2s.com/Code/Java/Development-Class/MacOSApplicationAdapter.htm
Related
I am developing a desktop chat application in JavaFX. I want to show notification to the user when application is minimized like skype shows that.Is there any way of doing it? I had tried System tray of java but it was not working for Ubuntu. Any help is appreciated.
You should take a look at ControlFX Notifications component. I think it's exactly what you are looking for.
For anyone coming to this question in 2020, here's a stab at showing native OS notifications working with JavaFX:
https://gist.github.com/wiverson/d2edf0d66ad195c96793d0d25290753b
As noted in the sample, OS native notifications are best if the app is in the background - use ControlsFX notifications if the app is in the foreground.
This works on macOS Big Sur, should also work on Windows. Not sure about Ubuntu.
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)
I have created an Eclipse RCP application. I want to read an input from the user when the program runs. How can I do that? Please any one help me with a sample code.
Thanks in advance.. :)
As long as you application is not headless: we usually use dialog windows to capture user input. eclipse RCP/SWT has some dialog classes, it's quite the same as doing it in swing.
For an easy start: JFace's InputDialog (available in eclipse RCP applications)
I have developed a vaadin application for a friend of me. Now I want to "install" this application on his pc so that when he clicks on an icon (like when you open, let's say spotify) the application starts and he can start using it... What is the easiest way to do this?
The application would be an runnable jar (using JSmooth or whatever you want). You would need to use an embeddable web server like Jetty. Here is a tutorial on setting up Vaadin with Weld and embedded Jetty. Here is an example Vaadin application that shows you how to set up the launcher to automatically start your application.
Hope that helps!
You can use Jsmooth to create an installer for the application.
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().