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.

Lain
  • 2,166
  • 4
  • 23
  • 47
Vijay
  • 65,327
  • 90
  • 227
  • 319

4 Answers4

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

MadProgrammer
  • 343,457
  • 22
  • 230
  • 366
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?

Community
  • 1
  • 1
Vincent Mimoun-Prat
  • 28,208
  • 16
  • 81
  • 124
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

JamesSwift
  • 863
  • 1
  • 7
  • 16
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.

Thinhbk
  • 2,194
  • 1
  • 23
  • 34