Swing is a set of packages built on top of the AWT that provides you with a great number of prebuilt classes (over 250 classes and 40UI components). These 40 UI Components are:
- JApplet - An extended version of java.applet.Applet that adds support for root panes and other panes
- JButton - A push and command button
- JCheckBox - A check box that can be selected or deselected, displaying its state visually.
- JCheckBoxMenuItem - A menu item that can be selected or deselected, displaying its state visually.
- JColorChooser - A pane of controls to allow a user to select a color.
- JComboBox - A combo box, which is a combination of a test field and dropdown list.
- JComponent - The base class for swing components
- JDesktopPane - A container used to create a multiple-document interface or a desktop.
- JDialog - The base class for creating a dialog window.
- JEditorPane - A text component that allows the user o edit various kinds of content.
-
JFileChooser - Lets the user choose a file.
-
JFrame - An extended version of java.awt.Frane that adds support root panes and other panes.
-
JInternalFrame - A lightweight object that provides many of the features of a heavyweight frame.
-
JInternalFrame.JDesktopIcon - Represents an inconified version of a JInternalFrame.
-
JLabel - A display area for a short text string or an image or both.
-
JLayeredPane - Adds layers to a Swing container, allowing components to overlap each other.
-
JList - A components that allows the user to select one or more objects from list.
-
JMenu - A pop-up menu containing JMenuItems that's displayed when the user selects it in the JMenuBar component.
-
JMenuBar - An implementation of menu bar.
-
JMenuItem - An implementation of menu item.
-
JObjectPane - Makes it easy to pop up a standard dialog box.
-
JPanel - A generic lightweight container.
-
JPasswordField - Allows editing of a single line of text where the view does not show the original characters.
-
JPopupMenu - A pop-up menu.
-
JPopupMenu.Separator - A pop-up menu specific separator
-
JProgressBar - A component that displays an integer value within an interval.
-
JRadioButton - A radio button that can be selected or deselected, displaying its state visually
-
JRadioButtonMenuItem - An radio button menu item.
-
JRootPane - The fundamental component in the container hierarchy.
-
JScrollBar - An implementation of a scrollbar.
-
JScrollPane - A container that manages a view port, optional vertical and horizontal scrollbars and optional row and column heading view ports.
-
JSeparator - A menu separator.
-
JSlider - A component that lets the user select a value by sliding a knob within an interval.
-
JSplitPane - Divides two components.
-
JTabbedPane - Lets the user switch between a group of components by clicking tabs.
-
JTable - Presents data in a two dimensional table format
-
JTextArea - A multiline area that displays text.
-
JTextField - Allows the editing of a single line of text.
-
JTextPane - A text component that can be marked up with attributes.
-
JToggleButton - A two-state button
-
JToggleButton.ToggleButtonModel - The toggle button model
-
JToolBar - A toolbar, useful for displaying commonly used controls.
-
JToolBar.Separator - A toolbar-separator
-
JToolTip - Displays a tool tip for a component
-
JTree - Displays a set of hierarchical data as an outline
-
JTree.DynamicUtilTreeNode - Can wrap vectors/ hashtables/ arrays/ strings and create appropriate children tree nodes
-
JTree.EmptySelectionModel - A trees election model that does not allow anything to be selected.
-
JViewport - The view port through which you see the information
-
JWindow - A window that can be displayed anywhere on the desktop