CIS-257 Home: http://www.c-jump.com/bcc/c257c/c257syllabus.html

NetBeans GUI Builder, controls, and events


  1. NetBeans GUI Project
  2. Button Click Event
  3. Swing containment hierarchy
  4. Using JFrame class
  5. JFrame default content pane
  6. Using JPanel instead of the default content panel
  7. Adding a menu bar to JFrame
  8. The Root Pane
  9. Classes in the Component hierarchy
  10. java.awt.Container class
  11. java.awt.Window class
  12. javax.awt.JFrame class
  13. Common properties for forms
  14. JFrame Appearance
  15. Common properties and methods for controls
  16. Text Field Control
  17. Displaying a form
  18. JLabel control
  19. JButton control
  20. Runtime Events
  21. ActionListener interface
  22. Tool Tips
  23. Font class
  24. Extending the JFrame class

1. NetBeans GUI Project



2. Button Click Event



3. Swing containment hierarchy



4. Using JFrame class



5. JFrame default content pane



6. Using JPanel instead of the default content panel



7. Adding a menu bar to JFrame



8. The Root Pane


  • Available in Java 5 or later

    • JFrame.getContentPane() method

    • JFrame.add() method -- adds Component directly to JFrame without explicitly calling getContentPane()

    • JFrame.remove() method

    • JFrame.setLayout() method

  • Other JFrame methods must use getContentPane(). For example, setBackground()

9. Classes in the Component hierarchy



10. java.awt.Container class



11. java.awt.Window class



12. javax.awt.JFrame class



13. Common properties for forms



14. JFrame Appearance



15. Common properties and methods for controls



16. Text Field Control



17. Displaying a form



18. JLabel control



19. JButton control



20. Runtime Events



21. ActionListener interface



22. Tool Tips



23. Font class



24. Extending the JFrame class