package

javax.swing.plaf.basic

Provides user interface objects built according to the Basic look and feel. The Basic look and feel provides default behavior used by many look and feel packages. It contains components, layout managers, events, event listeners, and adapters. You can subclass the classes in this package to create your own customized look and feel.

These classes are designed to be used while the corresponding LookAndFeel class has been installed (UIManager.setLookAndFeel(new XXXLookAndFeel())). Using them while a different LookAndFeel is installed may produce unexpected results, including exceptions. Additionally, changing the LookAndFeel maintained by the UIManager without updating the corresponding ComponentUI of any JComponents may also produce unexpected results, such as the wrong colors showing up, and is generally not encouraged.

Note: Most of the Swing API is not thread safe. For details, see Threads and Swing, a section in The Java Tutorial.

Interfaces

ComboPopup The interface which defines the methods required for the implementation of the popup portion of a combo box. 

Classes

BasicArrowButton JButton object that draws a scaled Arrow in one of the cardinal directions. 
BasicBorders Factory object that can vend Borders appropriate for the basic L & F. 
BasicBorders.ButtonBorder  
BasicBorders.FieldBorder  
BasicBorders.MarginBorder  
BasicBorders.MenuBarBorder  
BasicBorders.RadioButtonBorder  
BasicBorders.RolloverButtonBorder Special thin border for rollover toolbar buttons. 
BasicBorders.SplitPaneBorder Draws the border around the splitpane. 
BasicBorders.ToggleButtonBorder  
BasicButtonListener Button Listener 
BasicButtonUI BasicButton implementation 
BasicCheckBoxMenuItemUI BasicCheckboxMenuItem implementation 
BasicCheckBoxUI CheckboxUI implementation for BasicCheckboxUI

Warning: Serialized objects of this class will not be compatible with future Swing releases. 

BasicColorChooserUI Provides the basic look and feel for a JColorChooser. 
BasicColorChooserUI.PropertyHandler This inner class is marked "public" due to a compiler bug. 
BasicComboBoxEditor The default editor for editable combo boxes. 
BasicComboBoxEditor.UIResource A subclass of BasicComboBoxEditor that implements UIResource. 
BasicComboBoxRenderer ComboBox renderer

Warning: Serialized objects of this class will not be compatible with future Swing releases. 

BasicComboBoxRenderer.UIResource A subclass of BasicComboBoxRenderer that implements UIResource. 
BasicComboBoxUI Basic UI implementation for JComboBox. 
BasicComboBoxUI.ComboBoxLayoutManager This layout manager handles the 'standard' layout of combo boxes. 
BasicComboBoxUI.FocusHandler This listener hides the popup when the focus is lost. 
BasicComboBoxUI.ItemHandler This listener watches for changes to the selection in the combo box. 
BasicComboBoxUI.KeyHandler This listener checks to see if the key event isn't a navigation key. 
BasicComboBoxUI.ListDataHandler This listener watches for changes in the ComboBoxModel
BasicComboBoxUI.PropertyChangeHandler This listener watches for bound properties that have changed in the combo box. 
BasicComboPopup This is a basic implementation of the ComboPopup interface. 
BasicComboPopup.InvocationKeyHandler As of Java 2 platform v 1.4, this class is now obsolete and is only included for backwards API compatibility. 
BasicComboPopup.InvocationMouseHandler A listener to be registered upon the combo box (not its popup menu) to handle mouse events that affect the state of the popup menu. 
BasicComboPopup.InvocationMouseMotionHandler This listener watches for dragging and updates the current selection in the list if it is dragging over the list. 
BasicComboPopup.ItemHandler This listener watches for changes to the selection in the combo box. 
BasicComboPopup.ListDataHandler As of 1.4, this class is now obsolete, doesn't do anything, and is only included for backwards API compatibility. 
BasicComboPopup.ListMouseHandler This listener hides the popup when the mouse is released in the list. 
BasicComboPopup.ListMouseMotionHandler This listener changes the selected item as you move the mouse over the list. 
BasicComboPopup.ListSelectionHandler As of Java 2 platform v 1.4, this class is now obsolete, doesn't do anything, and is only included for backwards API compatibility. 
BasicComboPopup.PropertyChangeHandler This listener watches for bound properties that have changed in the combo box. 
BasicDesktopIconUI Basic L&F for a minimized window on a desktop. 
BasicDesktopIconUI.MouseInputHandler Listens for mouse movements and acts on them. 
BasicDesktopPaneUI Basic L&F for a desktop. 
BasicDesktopPaneUI.CloseAction Handles closing an internal frame. 
BasicDesktopPaneUI.MaximizeAction Handles maximizing an internal frame. 
BasicDesktopPaneUI.MinimizeAction Handles minimizing an internal frame. 
BasicDesktopPaneUI.NavigateAction Handles navigating to the next internal frame. 
BasicDesktopPaneUI.OpenAction Handles restoring a minimized or maximized internal frame. 
BasicDirectoryModel Basic implementation of a file list. 
BasicEditorPaneUI Provides the look and feel for a JEditorPane. 
BasicFileChooserUI Basic L&F implementation of a FileChooser. 
BasicFileChooserUI.AcceptAllFileFilter  
BasicFileChooserUI.ApproveSelectionAction Responds to an Open or Save request  
BasicFileChooserUI.BasicFileView  
BasicFileChooserUI.CancelSelectionAction Responds to a cancel request. 
BasicFileChooserUI.ChangeToParentDirectoryAction  
BasicFileChooserUI.DoubleClickListener  
BasicFileChooserUI.GoHomeAction Acts on the "home" key event or equivalent event. 
BasicFileChooserUI.NewFolderAction Creates a new folder. 
BasicFileChooserUI.SelectionListener  
BasicFileChooserUI.UpdateAction Rescans the files in the current directory  
BasicFormattedTextFieldUI Provides the look and feel implementation for JFormattedTextField
BasicGraphicsUtils  
BasicHTML Support for providing html views for the swing components. 
BasicIconFactory Factory object that can vend Icons appropriate for the basic L & F. 
BasicInternalFrameTitlePane The class that manages a basic title bar

Warning: Serialized objects of this class will not be compatible with future Swing releases. 

BasicInternalFrameTitlePane.CloseAction This class should be treated as a "protected" inner class. 
BasicInternalFrameTitlePane.IconifyAction This class should be treated as a "protected" inner class. 
BasicInternalFrameTitlePane.MaximizeAction This class should be treated as a "protected" inner class. 
BasicInternalFrameTitlePane.MoveAction This class should be treated as a "protected" inner class. 
BasicInternalFrameTitlePane.PropertyChangeHandler This class should be treated as a "protected" inner class. 
BasicInternalFrameTitlePane.RestoreAction This class should be treated as a "protected" inner class. 
BasicInternalFrameTitlePane.SizeAction This class should be treated as a "protected" inner class. 
BasicInternalFrameTitlePane.SystemMenuBar This class should be treated as a "protected" inner class. 
BasicInternalFrameTitlePane.TitlePaneLayout This class should be treated as a "protected" inner class. 
BasicInternalFrameUI A basic L&F implementation of JInternalFrame. 
BasicInternalFrameUI.BasicInternalFrameListener  
BasicInternalFrameUI.BorderListener Listens for border adjustments. 
BasicInternalFrameUI.ComponentHandler  
BasicInternalFrameUI.GlassPaneDispatcher  
BasicInternalFrameUI.InternalFrameLayout  
BasicInternalFrameUI.InternalFramePropertyChangeListener  
BasicLabelUI A Windows L&F implementation of LabelUI. 
BasicListUI An extensible implementation of ListUI
BasicListUI.FocusHandler This inner class is marked "public" due to a compiler bug. 
BasicListUI.ListDataHandler The ListDataListener that's added to the JLists model at installUI time, and whenever the JList.model property changes. 
BasicListUI.ListSelectionHandler The ListSelectionListener that's added to the JLists selection model at installUI time, and whenever the JList.selectionModel property changes. 
BasicListUI.MouseInputHandler Mouse input, and focus handling for JList. 
BasicListUI.PropertyChangeHandler The PropertyChangeListener that's added to the JList at installUI time. 
BasicLookAndFeel A base class to use in creating a look and feel for Swing. 
BasicMenuBarUI A default L&F implementation of MenuBarUI. 
BasicMenuItemUI BasicMenuItem implementation 
BasicMenuItemUI.MouseInputHandler  
BasicMenuUI A default L&F implementation of MenuUI. 
BasicMenuUI.ChangeHandler As of Java 2 platform 1.4, this previously undocumented class is now obsolete. 
BasicMenuUI.MouseInputHandler Instantiated and used by a menu item to handle the current menu selection from mouse events. 
BasicOptionPaneUI Provides the basic look and feel for a JOptionPane
BasicOptionPaneUI.ButtonActionListener This inner class is marked "public" due to a compiler bug. 
BasicOptionPaneUI.ButtonAreaLayout ButtonAreaLayout behaves in a similar manner to FlowLayout
BasicOptionPaneUI.PropertyChangeHandler This inner class is marked "public" due to a compiler bug. 
BasicPanelUI BasicPanel implementation 
BasicPasswordFieldUI Provides the Windows look and feel for a password field. 
BasicPopupMenuSeparatorUI A Basic L&F implementation of PopupMenuSeparatorUI. 
BasicPopupMenuUI A Windows L&F implementation of PopupMenuUI. 
BasicProgressBarUI A Basic L&F implementation of ProgressBarUI. 
BasicProgressBarUI.ChangeHandler This inner class is marked "public" due to a compiler bug. 
BasicRadioButtonMenuItemUI BasicRadioButtonMenuItem implementation 
BasicRadioButtonUI RadioButtonUI implementation for BasicRadioButtonUI 
BasicRootPaneUI Basic implementation of RootPaneUI, there is one shared between all JRootPane instances. 
BasicScrollBarUI Implementation of ScrollBarUI for the Basic Look and Feel 
BasicScrollBarUI.ArrowButtonListener Listener for cursor keys. 
BasicScrollBarUI.ModelListener A listener to listen for model changes. 
BasicScrollBarUI.PropertyChangeHandler  
BasicScrollBarUI.ScrollListener Listener for scrolling events initiated in the ScrollPane
BasicScrollBarUI.TrackListener Track mouse drags. 
BasicScrollPaneUI A default L&F implementation of ScrollPaneUI. 
BasicScrollPaneUI.HSBChangeListener Horizontal scrollbar listener. 
BasicScrollPaneUI.MouseWheelHandler MouseWheelHandler is an inner class which implements the MouseWheelListener interface. 
BasicScrollPaneUI.PropertyChangeHandler  
BasicScrollPaneUI.ViewportChangeHandler Listener for viewport events. 
BasicScrollPaneUI.VSBChangeListener Vertical scrollbar listener. 
BasicSeparatorUI A Basic L&F implementation of SeparatorUI. 
BasicSliderUI A Basic L&F implementation of SliderUI. 
BasicSliderUI.ActionScroller As of Java 2 platform v1.3 this undocumented class is no longer used. 
BasicSliderUI.ChangeHandler Data model listener. 
BasicSliderUI.ComponentHandler Listener for resizing events. 
BasicSliderUI.FocusHandler Focus-change listener. 
BasicSliderUI.PropertyChangeHandler  
BasicSliderUI.ScrollListener Scroll-event listener. 
BasicSliderUI.TrackListener Track mouse movements. 
BasicSpinnerUI The default Spinner UI delegate. 
BasicSplitPaneDivider Divider used by BasicSplitPaneUI. 
BasicSplitPaneDivider.DividerLayout Used to layout a BasicSplitPaneDivider
BasicSplitPaneDivider.DragController Handles the events during a dragging session for a HORIZONTAL_SPLIT oriented split pane. 
BasicSplitPaneDivider.MouseHandler MouseHandler is responsible for converting mouse events (released, dragged...) into the appropriate DragController methods. 
BasicSplitPaneDivider.VerticalDragController Handles the events during a dragging session for a VERTICAL_SPLIT oriented split pane. 
BasicSplitPaneUI A Basic L&F implementation of the SplitPaneUI. 
BasicSplitPaneUI.BasicHorizontalLayoutManager LayoutManager for JSplitPanes that have an orientation of HORIZONTAL_SPLIT. 
BasicSplitPaneUI.BasicVerticalLayoutManager LayoutManager used for JSplitPanes with an orientation of VERTICAL_SPLIT. 
BasicSplitPaneUI.FocusHandler Implementation of the FocusListener that the JSplitPane UI uses. 
BasicSplitPaneUI.KeyboardDownRightHandler Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. 
BasicSplitPaneUI.KeyboardEndHandler Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. 
BasicSplitPaneUI.KeyboardHomeHandler Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. 
BasicSplitPaneUI.KeyboardResizeToggleHandler Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. 
BasicSplitPaneUI.KeyboardUpLeftHandler Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. 
BasicSplitPaneUI.PropertyHandler Implementation of the PropertyChangeListener that the JSplitPane UI uses. 
BasicTabbedPaneUI A Basic L&F implementation of TabbedPaneUI. 
BasicTabbedPaneUI.FocusHandler This class should be treated as a "protected" inner class. 
BasicTabbedPaneUI.MouseHandler This class should be treated as a "protected" inner class. 
BasicTabbedPaneUI.PropertyChangeHandler This class should be treated as a "protected" inner class. 
BasicTabbedPaneUI.TabbedPaneLayout This class should be treated as a "protected" inner class. 
BasicTabbedPaneUI.TabSelectionHandler This class should be treated as a "protected" inner class. 
BasicTableHeaderUI BasicTableHeaderUI implementation 
BasicTableHeaderUI.MouseInputHandler This inner class is marked "public" due to a compiler bug. 
BasicTableUI BasicTableUI implementation 
BasicTableUI.FocusHandler This inner class is marked "public" due to a compiler bug. 
BasicTableUI.KeyHandler This inner class is marked "public" due to a compiler bug. 
BasicTableUI.MouseInputHandler This inner class is marked "public" due to a compiler bug. 
BasicTextAreaUI Provides the look and feel for a plain text editor. 
BasicTextFieldUI Basis of a look and feel for a JTextField. 
BasicTextPaneUI Provides the look and feel for a styled text editor. 
BasicTextUI

Basis of a text components look-and-feel. 

BasicTextUI.BasicCaret  
BasicTextUI.BasicHighlighter  
BasicToggleButtonUI BasicToggleButton implementation

 

BasicToolBarSeparatorUI A Basic L&F implementation of ToolBarSeparatorUI. 
BasicToolBarUI A Basic L&F implementation of ToolBarUI. 
BasicToolBarUI.DockingListener This class should be treated as a "protected" inner class. 
BasicToolBarUI.DragWindow  
BasicToolBarUI.FrameListener  
BasicToolBarUI.PropertyListener  
BasicToolBarUI.ToolBarContListener  
BasicToolBarUI.ToolBarFocusListener  
BasicToolTipUI Standard tool tip L&F. 
BasicTreeUI The basic L&F for a hierarchical data structure. 
BasicTreeUI.CellEditorHandler Listener responsible for getting cell editing events and updating the tree accordingly. 
BasicTreeUI.ComponentHandler Updates the preferred size when scrolling (if necessary). 
BasicTreeUI.FocusHandler Repaints the lead selection row when focus is lost/gained. 
BasicTreeUI.KeyHandler This is used to get mutliple key down events to appropriately generate events. 
BasicTreeUI.MouseHandler TreeMouseListener is responsible for updating the selection based on mouse events. 
BasicTreeUI.MouseInputHandler MouseInputHandler handles passing all mouse events, including mouse motion events, until the mouse is released to the destination it is constructed with. 
BasicTreeUI.NodeDimensionsHandler Class responsible for getting size of node, method is forwarded to BasicTreeUI method. 
BasicTreeUI.PropertyChangeHandler PropertyChangeListener for the tree. 
BasicTreeUI.SelectionModelPropertyChangeHandler Listener on the TreeSelectionModel, resets the row selection if any of the properties of the model change. 
BasicTreeUI.TreeCancelEditingAction ActionListener that invokes cancelEditing when action performed. 
BasicTreeUI.TreeExpansionHandler Updates the TreeState in response to nodes expanding/collapsing. 
BasicTreeUI.TreeHomeAction TreeHomeAction is used to handle end/home actions. 
BasicTreeUI.TreeIncrementAction TreeIncrementAction is used to handle up/down actions. 
BasicTreeUI.TreeModelHandler Forwards all TreeModel events to the TreeState. 
BasicTreeUI.TreePageAction TreePageAction handles page up and page down events. 
BasicTreeUI.TreeSelectionHandler Listens for changes in the selection model and updates the display accordingly. 
BasicTreeUI.TreeToggleAction For the first selected row expandedness will be toggled. 
BasicTreeUI.TreeTraverseAction TreeTraverseAction is the action used for left/right keys. 
BasicViewportUI BasicViewport implementation 
DefaultMenuLayout The default layout manager for Popup menus and menubars.