Java Swing Flashcards
What kind of structure is Swing written in?
Container
What is Swing?
A GUI Widget Toolkit
What is AWT?
Abstract Window toolkit
Weight of AWT vs Swing?
Heavy vs Light-weight
Look and feel of AWT vs Swing?
Native vs Pluggable
MVC support for AWT vs Swing?
no support vs support
Component platform dependence AWT vs Swing
platform dependent vs. platform independence
Packages AWT vs. Swing
java.awt package vs javax.swing
Speed AWT vs Swing
Slower vs Faster
Event-Driven Programs
Some objects generate events and other objects respond to them
What kind of pattern is a Menu?
Composite, Menu made up of menu items
Absolute Layout
Graph Paper approach have to put everything on with coordinates
Example of Absolute Layout
Null Layout
Relative Layout
Components positioned relative to each other rather than absolute. Also field expands buttons and fields adjust location
Pros and Con of Relative Layout
pro- better than absolute
con - fairly inflexible
Example of Relative Layout
Flow Layout
Template Layout
Divide the container into sections and place one component in each section
Pros and Cons of Template Layout
Pro - easy to use
Con - the right template may not exist