O'Reilly logo

Java Garage by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 25. Creating Guis with Swing

DO OR DIE

  • Shake it.

  • Please, don't break it.

Let GUI = Graphical User Interface;

Let Swing = JavaProgrammingLanguage.getProgrammingElement(GUI);

Swing.listImportantElements() {

//returns: TopLevelContainer (Frame)

//Intermediate Container (ContentPanel)

//LayoutManager(s)

//Atomic Elements (Components)

Frame.getDefinition() Main window that holds every other component of a Swing application. The frame, which is created as an object of type JFrame, contains controls for iconifying (minimizing) and maximizing the frame, and a little X for closing it.

Frame.getNote() Note that the JFrame is not the only kind of top-level container for Swing apps. JDialog is too, and so is JApplet (which is discussed in its own ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required