Vijay
Vijay

Reputation: 67301

Creating a simple gui in java for running a background process

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.

Upvotes: 1

Views: 1840

Answers (4)

Thinhbk
Thinhbk

Reputation: 2214

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.

Upvotes: 0

MadProgrammer
MadProgrammer

Reputation: 347334

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

Upvotes: 2

JamesSwift
JamesSwift

Reputation: 863

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

Upvotes: 1

Vincent Mimoun-Prat
Vincent Mimoun-Prat

Reputation: 28563

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?

Upvotes: 1

Related Questions