0% found this document useful (0 votes)
53 views

95712C Lecture Notes Wednesday, November 10, 2004: 1. GUI Programming With Swing, Continued

The document discusses GUI programming with Swing. It covers dialog boxes, including modal and modeless dialogs. It also briefly mentions the JTree, JTable, JEditorPane, JTabbedPane components and the CardLayout layout manager, providing references for more information on each.

Uploaded by

Indrasena Reddy
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

95712C Lecture Notes Wednesday, November 10, 2004: 1. GUI Programming With Swing, Continued

The document discusses GUI programming with Swing. It covers dialog boxes, including modal and modeless dialogs. It also briefly mentions the JTree, JTable, JEditorPane, JTabbedPane components and the CardLayout layout manager, providing references for more information on each.

Uploaded by

Indrasena Reddy
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

95712C Lecture Notes Wednesday, November 10, 2004

1. GUI Programming with Swing, continued


Reference: Chapter 9 of Core Java Chapter 14 of Thinking in Java Online Java Tutorial at http://java.sun.com/docs/books/tutorial/uiswing/index.html

1.1. Dialog Boxes


Reference: Chapter 9 of Core Java, Chapter 14 of Thinking in Java. A Dialog is a top-level window with a title and a border that is typically used to take some form of input from the user. Swing distinguishes between two types of dialog boxes: Modal: It doesn't allow the user to select other windows of the application until it disappears. Modeless: It allows the user to select other windows of the application. See Figure 9-34 for class hierarchy. See OptionDialogTest.java to experiment with options. See DataExchangeTest.java for exchanging data in and out of a dialog box. See FileChooserTest.java to experiment with JFileChooser.

1.2. JTree Component


See http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

1.3. JTable Component


See http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

1.4. JEditorPane Component


See http://java.sun.com/docs/books/tutorial/uiswing/components/text.html

1.5. JTabbedPane Component


See http://java.sun.com/docs/books/tutorial/uiswing/components/tabbedpane.html

1.6. CardLayout Layout Manager


See http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html

You might also like