September 14th, 2022

OOP for GUI

  • In Java, the window is called JFrame.
  • When you run setVisible in Swing, one GUI thread handles GUI interaction while a second thread continues executing the remaining lines of code in the program.