Wednesday, 11 December 2013

Java: GUI application open new form with button (part 1)

So this post is something like a personal reference.
Lets start, we are going to use Eclipse with WindowBuilder Pro.

 I will not go through the installation its simple to install, just follow the instructions or search in youTube :)

Select File --> Java Project








Lets specify a few project information like the project name

Lets give our project a name such as: AmazingProject
Its a good idea to maintain a coding habit see the UPPER first letter.
But note that for variables later we are going to start their name with a lower character testingVariable for example












Click next or click finish.  The project is created.

You will see the progress bar moving if you click next.
Click Finish on the next screen.









Add Swing application window

select the package explorer and expand your project and create a package
We will use the same process File --> New --> Package

Name your package and click finish
i named my package amazing ** lower 'a'


Select your created package and click File--> New--> Other 
Expand the WindowBuilder, expand Swing Designer and select Application Window
The Swing Application Window wizard creates a main class that instantiates and shows a top-level JFrame.
 Name your new swing application i used MainForm

Click Finish to create the Application Window

Part 2

No comments:

Post a Comment

Reset numbering for Screenshots Win+PrtSc

I was using today the screen shot functionality of Windows 8.1 Win Key + PrtSc How to reset the numbering?