Difference: SwingNotes (1 vs. 2)

Revision 216 Feb 2005 - TobyCabot

Line: 1 to 1
 
META TOPICPARENT name="JavaNotes"
Tutorial: http://java.sun.com/docs/books/tutorial/uiswing/index.html
Architecture overview: http://java.sun.com/products/jfc/tsc/articles/architecture/
Line: 10 to 10
  A table of components.
Added:
>
>
A nice overview picture from http://java.sun.com/docs/books/tutorial/uiswing/components/toplevel.html:

Revision 116 Feb 2005 - TobyCabot

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="JavaNotes"
Tutorial: http://java.sun.com/docs/books/tutorial/uiswing/index.html
Architecture overview: http://java.sun.com/products/jfc/tsc/articles/architecture/

Pretty much everything you see is a JComponent. Top-level container (not a JComponent) is a JFrame, it contains one Container called the "contentPane" (which is a JPanel by default). The JPanel has a LayoutManager that determines how the child JComponents are laid out in the panel.

You can pop a non-modal dialog using JOptionPane.showMessageDialog().

A table of components.

View topic | History: r2 < r1 | More topic actions...
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria? Send feedback