Some Swing Controls

Some Swing Controls

The user interface examples that we will look at in this course use Java Swing controls. They tend to be more popular than the older Java AWT (Abstract Windowing Toolkit) controls. Swing controls tend to be more streamlined, faster, and more stable over a wider variety of platforms than their AWT counterparts.

Methods for Controls

JButton

 

JFrame

 

JLabel

 

JTextField

 

JPanel