read input in an Eclipse RCP application - java

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)

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

Installing and using the play framework on windows vista with java

I am brand new to the play framework and could use a little bit of help understanding first why the play framework is useful, and how to install and use it on windows vista. The project that I will be working on will be to make a custom API that will power a photo sharing software to be accessed by mobile and desktop devices. I tried to go through the installation guide on the play website but I couldn't get it to work (unfortunately i'm not very good when it comes to manual installations in the command line on windows).
I would like to be able to run one of the sample projects included, but I am unsure of how to get the play command installed on the command line to run it. Any help would be greatly appreciated. Thanks in advance.
open a command window then type :
c://pathtoplaydirectory/play

Java GUI popup window netbeans

I am making a GUI in netbeans. I have a button and when users clicks it i want to popup a jframe. How is this possible? could someone give me an example?
Are you programming a NetBeans RCP application?
If so then take a look to the Dialogs API: http://bits.netbeans.org/dev/javadoc/org-openide-dialogs/index.html?org/openide/NotifyDescriptor.html
If not, give a try NetBeans RCP can improve the code quality and modularity of your java desktop applications.

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().

How to customize application menu for java application in Mac OS

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

Categories