JAVA swing Model-View-Controller
Swing MVC
The design of the Swing component classes is
loosely based on the Model-View-Controller architecture, or MVC.
- The model stores the data.
- The view creates the visual representation from the data in the model.
- The controller deals with user interaction and modifies the model and/or the view
JComponent
The basic building block of the entire visual
component library of Swing is the JComponent. It's the super class of every
component.
Swing components
JPasswordField
|
a
specialized text field for password entry
|
JEditorPane
and JTextPane
|
provide
support for displaying and editing multiple-attributed content, such as an
HTML and RTF.
|
JSpinner
|
provides
selection from an ordered set of predefined values
|
JToggleButton
|
offers
a button that stays depressed when selected.
|
JSlider
|
like
the Scrollbar component, offers various clues to help the user choose a
value.
|
JProgressBar
|
allows
the user to visually see the progress of an activity.
|
JFormattedTextField
|
provides
help for the input of formatted text, like numeric values, phone numbers
|
JTable
|
displays
two-dimensional row and column information
|
JTree
|
supports
the display of hierarchical data.
|
JToolTip
|
offers
useful tips.
|
JToolBar
|
offers
a draggable toolbar
|
JRadioButtonMenuItem
|
a radio
button menu component.
|
JSeparator
|
The
menu's separator bar
|
JDesktopPane
and JInternalFrame
|
This
pair of components are for Windows Multiple Document Interface (MDI).
|
JOptionPane
|
creates
pop-up windows with varied content,
|
JColorChooser
|
for
choosing a color
|
JSplitPane
|
places
multiple components in a window with draggable divider.
|
JTabbedPane |
tabbed
panel Join us on Facebook: Click Here |
Comments
Post a Comment