This post originated from an RSS feed registered with Java Buzz
by News Manager.
Original Post: Creating a Simple GUI Application in Swing
Feed Title: Focus on Java
Feed URL: http://z.about.com/6/g/java/b/index.xml
Feed Description: java.about.com's Focus on Java
A GUI application can be created in NetBeans either by coding the graphical components manually or by using the NetBeans GUI Builder to write the code for you.
This step-by-step guide shows both ways to create the same simple GUI Application - it is made of a JFrame containing two JPanels and a JButton. The first JPanel has a JLabel and JComboBox, the second a JLabel and JList. The button switches which JPanel is visible at any time.
In part one the application is coded line by line, in part two the application is create using the options provided by the NetBeans GUI Builder.