java.awt package comes with many components and unless there comes proper approach, it is very confusing.
Follow the order of following links to have easy go.
A) Basic Component Programs
- Learning Font
- Learning Color
- Component Hierarchy
- AWT Button – Learning GUI – 8 Steps
- Changing Button Label
- Making Button Invisible
- Making Button Enabled
- Button Applet
- Layout Managers
- FlowLayout Manager
- BorderLayout Manager
- GridLayout Manager
- CardLayout Manager
- GridBagLayout Manager
- Preferred Size – Component Size
- Frame Closing – WindowListener
- Frame Closing – Component
- Frame Closing – WindowAdapter
- Frame Closing – Anonymous inner class
- Listeners
- Adapters
- Label – Alignment
- TextField – User Name Password Validation
- TextField Applet – Adding Two Numbers
- Java TextField – Setting Properties
- Checkbox – Toggle Button
- Panels
- Radio Buttons – Applet GUI
- Choice – Replacement to Radio Buttons
- List – Multiple & Single Selection
- repaint() – Call paint()
- TextArea – Multiple Lines Text
- Scrollbar with Insets
- Menu – Multiple Pull-down Lists
- Canvas – Freelance Drawing
- Dialog – Modal & Modeless
- FileDialog – Open & Save
- MouseListener
- MouseMotionListener
- KeyListener
- Mouse Double Click
- Mouse Right Click
B) Special Component Programs