This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: window by calling the add() method on the window's Container. (A second parameter of the Container's add() method can specify a general area of the screen like "North", "South", "East","West", or "Center".) The application typically sets an initial size for the window by calling setSize() on the window (not the Container!). The application then must show the window by calling setVisible(true) on the window (not the Container!). JVM ______________________________________________________________________ | | | JButton JTextField Window | | JFrame | | | | setSize() | | | |Application setVisible() | | JPanel | | | | getContentPane() | | Container | | | | add() | | GridLayout | | setLayout() | | | | | |______________________________________________________________________|...
View Full Document
- Spring '09