Swing - Basic
This exam requires the ability to create a main window, with a menu and a toolbar; a dialog box with basic controls: label, input field, list, combo, check box, radio button and "Ok" button.
This covers similar knowledge to the free on-line Swing tutorial http://java.sun.com/docs/books/tutorial/uiswing/
, parts:
- Learning Swing by Example (except images)
- How to Use Menus (the first basic part)
- How to Use Tool Bars (the first basic part)
- Basic ActionListeners and Basic Layout management
This exam is about Swing, not about AWT. For example, the knowledge of the AWT Button class is not required, while the Swing JButton class is part of the objectives. However, some AWT facilities used by a Swing application are expected to be known; as for example, the Component class that JButton (indirectly) extends.
Please remember that heavy (AWT, SWT) and light (Swing) components should not be mixed in the same UI.
Key shortcuts, enable/disable and renderers are excluded from this exam. Only simple handlers are included.
This exam assumes the prerequisite knowledge of some Java SE notions, at their basic level:
- anonymous inner classes
- multi-threading, Runnable (Ref How to Use Threads in The Java Tutorial).
- basic event-driven programming
1 ONLINE RESOURCES
1. Java 2 SE API @ http://java.sun.com/j2se/1.5.0/docs/api/
2. Swing Tutorial @ http://java.sun.com/docs/books/tutorial/uiswing/index.html
3. Java Look and Feel Design Guidelines @ http://java.sun.com/products/jlf/
4. The Swing Connection @ http://java.sun.com/products/jfc/tsc/
5. SwingLabs @ http://www.swinglabs.org/projects.jsp
6. JGoodies @ http://www.jgoodies.com
7. NetBeans Platform @ http://www.netbeans.org/products/platform/
8. JavaDesktop Community @ http://community.java.net/javadesktop/
9. ClientJava @ http://www.clientjava.com/blog
10. Romain Guy's Blog @ http://jroller.com/page/gfx
2 BOOKS
1. Swing Tutorial2. Swing Hacks
3. Swing 2nd Edition
4. Desktop Java Live
| Released | Beta | Frozen | ||
|---|---|---|---|---|
Event Thread and Queue 2 questions
|
6 | 37 | 11 | |
Window and Dialog 3 questions
Not covered: other types of frames, applets, windows |
12 | 64 | 16 | |
Panel 1 question
Not covered: JXXXPane, borders, custom painting. |
6 | 23 | 8 | |
LayoutManager and Look and Feel 3 questions
Not cover: other types of Layout Managers, other Look and Feel related topics. |
13 | 25 | 26 | |
Label 1 question
Not covered: fonts |
6 | 26 | 8 | |
Button 2 questions
|
4 | 15 | 16 | |
Menu 1 question
|
2 | 10 | 11 | |
Tool Bar 1 question
|
1 | 5 | 12 | |
Text Field 1 question
|
4 | 6 | 11 | |
Combo 1 question
|
3 | 14 | 4 | |
Check Box 1 question
|
5 | 9 | 2 | |
Radio Button 1 question
|
8 | 3 | 5 | |
List 1 question
|
2 | 23 | 8 | |
Table 1 question
|
3 | 25 | 12 |
Exam information
- 26 minutes
- 20 questions (510)
- 75% required
- +4 √
- - 6 points
- 15 day delay
- status: released



