1

Well, I had this question in mind for a long time. Even though I have a complex requirement,i will keep it as simple as possible.

I have background process which takes two arguments which I use to execute from command line. The first argumets can have three valid values and the secong argument can have two valid values.

I usually run that process on command line in solaris unix.and that process is completely coded in C++.

What I want now is I wish to create a simple gui in java for running the process in background. I am complete new to the advanced concepts of java, and I am aware of some core java which I studied in my college days.

So,My question overe here how do I start creating a gui? What all do I need to create a simple gui using java? I am confident enough to learn gui programming in java as I am a c++ programmer.

Please give me some right directions to give some life to my thought and any some good materials available on the net would be helpful.

4 Answers 4

2

I would start by looking at;

I'd also become familiar with ProcessBuilder (a simple example) and Basic IO

MarvinLabs also makes some great points as well

1

The Google search you'll want to use is "java swing tutorial". Swing is Java's GUI library.

You can also have a look at: Java GUI frameworks. What to choose? Swing, SWT, AWT, SwingX, JGoodies, JavaFX, Apache Pivot?

0
1

You really just need a JFrame and a JPanel. The JFrame is the physical window that the gui lives in, while the JPanel is the content manager. You place JComponents (e.g. JLabel, JComboBox) into the JPanel.

Java Api: http://docs.oracle.com/javase/7/docs/api/

Examples of using each component: http://docs.oracle.com/javase/tutorial/uiswing/components/index.html

0

IMO, you may try using JavaFX 2.1 to develop your GUI in java. It has Scene builder tool to design your application, built-in support css-like skin.

Check the concurrency in Javafx 2.1 here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.