October 19th, 2022

OOP for GUI

Types of Layouts

  • FlowLayout
  • BorderLayout
  • GridLayout
  • CardLayout
  • GridBagLayout
  • SpringLayout
  • Use JDialog
  • JOptionPane is the equivalent of window.confirm()

Good Coding Ideas

  • Avoid global variables
  • Pass variables explicitly