A subclass of javax.swing.ActionMap that implements UIResource. UI classes which provide an ActionMap should use this class.
A subclass of javax.swing.ActionMap that implements UIResource. UI classes which provide an ActionMap should use this class.
JButton object that draws a scaled Arrow in one of the cardinal directions.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
JButton object that draws a scaled Arrow in one of the cardinal directions. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Factory object that can vend Borders appropriate for the basic L & F.
Factory object that can vend Borders appropriate for the basic L & F.
Special thin border for rollover toolbar buttons.
Special thin border for rollover toolbar buttons.
Draws the border around the splitpane. To work correctly you should also install a border on the divider (property SplitPaneDivider.border).
Draws the border around the splitpane. To work correctly you should also install a border on the divider (property SplitPaneDivider.border).
Button Listener
Button Listener
BasicButton implementation
BasicButton implementation
BasicCheckboxMenuItem implementation
BasicCheckboxMenuItem implementation
CheckboxUI implementation for BasicCheckboxUI
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
CheckboxUI implementation for BasicCheckboxUI Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the basic look and feel for a JColorChooser.
Provides the basic look and feel for a JColorChooser.
The default editor for editable combo boxes. The editor is implemented as a JTextField.
The default editor for editable combo boxes. The editor is implemented as a JTextField.
A subclass of BasicComboBoxEditor that implements UIResource. BasicComboBoxEditor doesn't implement UIResource directly so that applications can safely override the cellRenderer property with BasicListCellRenderer subclasses.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A subclass of BasicComboBoxEditor that implements UIResource. BasicComboBoxEditor doesn't implement UIResource directly so that applications can safely override the cellRenderer property with BasicListCellRenderer subclasses. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
ComboBox renderer
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
ComboBox renderer Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A subclass of BasicComboBoxRenderer that implements UIResource. BasicComboBoxRenderer doesn't implement UIResource directly so that applications can safely override the cellRenderer property with BasicListCellRenderer subclasses.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A subclass of BasicComboBoxRenderer that implements UIResource. BasicComboBoxRenderer doesn't implement UIResource directly so that applications can safely override the cellRenderer property with BasicListCellRenderer subclasses. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Basic UI implementation for JComboBox.
The combo box is a compound component which means that it is an aggregate of many simpler components. This class creates and manages the listeners on the combo box and the combo box model. These listeners update the user interface in response to changes in the properties and state of the combo box.
All event handling is handled by listener classes created with the createxxxListener() methods and internal classes. You can change the behavior of this class by overriding the createxxxListener() methods and supplying your own event listeners or subclassing from the ones supplied in this class.
For adding specific actions, overide installKeyboardActions to add actions in response to KeyStroke bindings. See the article How to Use Key Bindings
Basic UI implementation for JComboBox. The combo box is a compound component which means that it is an aggregate of many simpler components. This class creates and manages the listeners on the combo box and the combo box model. These listeners update the user interface in response to changes in the properties and state of the combo box. All event handling is handled by listener classes created with the createxxxListener() methods and internal classes. You can change the behavior of this class by overriding the createxxxListener() methods and supplying your own event listeners or subclassing from the ones supplied in this class. For adding specific actions, overide installKeyboardActions to add actions in response to KeyStroke bindings. See the article How to Use Key Bindings
This is a basic implementation of the ComboPopup interface.
This class represents the ui for the popup portion of the combo box.
All event handling is handled by listener classes created with the createxxxListener() methods and internal classes. You can change the behavior of this class by overriding the createxxxListener() methods and supplying your own event listeners or subclassing from the ones supplied in this class.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
This is a basic implementation of the ComboPopup interface. This class represents the ui for the popup portion of the combo box. All event handling is handled by listener classes created with the createxxxListener() methods and internal classes. You can change the behavior of this class by overriding the createxxxListener() methods and supplying your own event listeners or subclassing from the ones supplied in this class. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Basic L&F for a minimized window on a desktop.
Basic L&F for a minimized window on a desktop.
Basic L&F for a desktop.
Basic L&F for a desktop.
Basic implementation of a file list.
Basic implementation of a file list.
Provides the look and feel for a JEditorPane.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the look and feel for a JEditorPane. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Basic L&F implementation of a FileChooser.
Basic L&F implementation of a FileChooser.
Provides the look and feel implementation for JFormattedTextField.
Provides the look and feel implementation for JFormattedTextField.
Support for providing html views for the swing components. This translates a simple html string to a javax.swing.text.View implementation that can render the html and provide the necessary layout semantics.
Support for providing html views for the swing components. This translates a simple html string to a javax.swing.text.View implementation that can render the html and provide the necessary layout semantics.
Factory object that can vend Icons appropriate for the basic L & F.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Factory object that can vend Icons appropriate for the basic L & F. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The class that manages a basic title bar
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The class that manages a basic title bar Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A basic L&F implementation of JInternalFrame.
A basic L&F implementation of JInternalFrame.
A Windows L&F implementation of LabelUI. This implementation is completely static, i.e. there's only one UIView implementation that's shared by all JLabel objects.
A Windows L&F implementation of LabelUI. This implementation is completely static, i.e. there's only one UIView implementation that's shared by all JLabel objects.
An extensible implementation of ListUI.
BasicListUI instances cannot be shared between multiple lists.
An extensible implementation of ListUI. BasicListUI instances cannot be shared between multiple lists.
A base class to use in creating a look and feel for Swing.
Each of the ComponentUIs provided by BasicLookAndFeel derives its behavior from the defaults table. Unless otherwise noted each of the ComponentUI implementations in this package document the set of defaults they use. Unless otherwise noted the defaults are installed at the time installUI is invoked, and follow the recommendations outlined in LookAndFeel for installing defaults.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A base class to use in creating a look and feel for Swing. Each of the ComponentUIs provided by BasicLookAndFeel derives its behavior from the defaults table. Unless otherwise noted each of the ComponentUI implementations in this package document the set of defaults they use. Unless otherwise noted the defaults are installed at the time installUI is invoked, and follow the recommendations outlined in LookAndFeel for installing defaults. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A default L&F implementation of MenuBarUI. This implementation is a "combined" view/controller.
A default L&F implementation of MenuBarUI. This implementation is a "combined" view/controller.
BasicMenuItem implementation
BasicMenuItem implementation
A default L&F implementation of MenuUI. This implementation is a "combined" view/controller.
A default L&F implementation of MenuUI. This implementation is a "combined" view/controller.
Provides the basic look and feel for a JOptionPane. BasicMessagePaneUI provides a means to place an icon, message and buttons into a Container. Generally, the layout will look like:
------------------
| i | message |
| c | message |
| o | message |
| n | message |
------------------
| buttons |
|________________|
icon is an instance of Icon that is wrapped inside a JLabel. The message is an opaque object and is tested for the following: if the message is a Component it is added to the Container, if it is an Icon it is wrapped inside a JLabel and added to the Container otherwise it is wrapped inside a JLabel.
The above layout is used when the option pane's ComponentOrientation property is horizontal, left-to-right. The layout will be adjusted appropriately for other orientations.
The Container, message, icon, and buttons are all determined from abstract methods.
Provides the basic look and feel for a JOptionPane. BasicMessagePaneUI provides a means to place an icon, message and buttons into a Container. Generally, the layout will look like: ------------------ | i | message | | c | message | | o | message | | n | message | ------------------ | buttons | |________________| icon is an instance of Icon that is wrapped inside a JLabel. The message is an opaque object and is tested for the following: if the message is a Component it is added to the Container, if it is an Icon it is wrapped inside a JLabel and added to the Container otherwise it is wrapped inside a JLabel. The above layout is used when the option pane's ComponentOrientation property is horizontal, left-to-right. The layout will be adjusted appropriately for other orientations. The Container, message, icon, and buttons are all determined from abstract methods.
ButtonAreaLayout behaves in a similar manner to FlowLayout. It lays out all components from left to right. If syncAllWidths is true, the widths of each component will be set to the largest preferred size width.
This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicOptionPaneUI.
ButtonAreaLayout behaves in a similar manner to FlowLayout. It lays out all components from left to right. If syncAllWidths is true, the widths of each component will be set to the largest preferred size width. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicOptionPaneUI.
BasicPanel implementation
BasicPanel implementation
Provides the Windows look and feel for a password field. The only difference from the standard text field is that the view of the text is simply a string of the echo character as specified in JPasswordField, rather than the real text contained in the field.
Provides the Windows look and feel for a password field. The only difference from the standard text field is that the view of the text is simply a string of the echo character as specified in JPasswordField, rather than the real text contained in the field.
A Basic L&F implementation of PopupMenuSeparatorUI. This implementation is a "combined" view/controller.
A Basic L&F implementation of PopupMenuSeparatorUI. This implementation is a "combined" view/controller.
A Windows L&F implementation of PopupMenuUI. This implementation is a "combined" view/controller.
A Windows L&F implementation of PopupMenuUI. This implementation is a "combined" view/controller.
A Basic L&F implementation of ProgressBarUI.
A Basic L&F implementation of ProgressBarUI.
BasicRadioButtonMenuItem implementation
BasicRadioButtonMenuItem implementation
RadioButtonUI implementation for BasicRadioButtonUI
RadioButtonUI implementation for BasicRadioButtonUI
Basic implementation of RootPaneUI, there is one shared between all JRootPane instances.
Basic implementation of RootPaneUI, there is one shared between all JRootPane instances.
Implementation of ScrollBarUI for the Basic Look and Feel
Implementation of ScrollBarUI for the Basic Look and Feel
A default L&F implementation of ScrollPaneUI.
A default L&F implementation of ScrollPaneUI.
A Basic L&F implementation of SeparatorUI. This implementation is a "combined" view/controller.
A Basic L&F implementation of SeparatorUI. This implementation is a "combined" view/controller.
A Basic L&F implementation of SliderUI.
A Basic L&F implementation of SliderUI.
The default Spinner UI delegate.
The default Spinner UI delegate.
Divider used by BasicSplitPaneUI. Subclassers may wish to override paint to do something more interesting. The border effect is drawn in BasicSplitPaneUI, so if you don't like that border, reset it there. To conditionally drag from certain areas subclass mousePressed and call super when you wish the dragging to begin.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Divider used by BasicSplitPaneUI. Subclassers may wish to override paint to do something more interesting. The border effect is drawn in BasicSplitPaneUI, so if you don't like that border, reset it there. To conditionally drag from certain areas subclass mousePressed and call super when you wish the dragging to begin. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A Basic L&F implementation of the SplitPaneUI.
A Basic L&F implementation of the SplitPaneUI.
A Basic L&F implementation of TabbedPaneUI.
A Basic L&F implementation of TabbedPaneUI.
BasicTableHeaderUI implementation
BasicTableHeaderUI implementation
BasicTableUI implementation
BasicTableUI implementation
Provides the look and feel for a plain text editor. In this implementation the default UI is extended to act as a simple view factory.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the look and feel for a plain text editor. In this implementation the default UI is extended to act as a simple view factory. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Basis of a look and feel for a JTextField.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Basis of a look and feel for a JTextField. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the look and feel for a styled text editor.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the look and feel for a styled text editor. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Basis of a text components look-and-feel. This provides the basic editor view and controller services that may be useful when creating a look-and-feel for an extension of JTextComponent.
Most state is held in the associated JTextComponent as bound properties, and the UI installs default values for the various properties. This default will install something for all of the properties. Typically, a LAF implementation will do more however. At a minimum, a LAF would generally install key bindings.
This class also provides some concurrency support if the Document associated with the JTextComponent is a subclass of AbstractDocument. Access to the View (or View hierarchy) is serialized between any thread mutating the model and the Swing event thread (which is expected to render, do model/view coordinate translation, etc). Any access to the root view should first acquire a read-lock on the AbstractDocument and release that lock in a finally block.
An important method to define is the getPropertyPrefix() method which is used as the basis of the keys used to fetch defaults from the UIManager. The string should reflect the type of TextUI (eg. TextField, TextArea, etc) without the particular LAF part of the name (eg Metal, Motif, etc).
To build a view of the model, one of the following strategies can be employed.
One strategy is to simply redefine the ViewFactory interface in the UI. By default, this UI itself acts as the factory for View implementations. This is useful for simple factories. To do this reimplement the create(javax.swing.text.Element) method.
A common strategy for creating more complex types of documents is to have the EditorKit implementation return a factory. Since the EditorKit ties all of the pieces necessary to maintain a type of document, the factory is typically an important part of that and should be produced by the EditorKit implementation.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Basis of a text components look-and-feel. This provides the basic editor view and controller services that may be useful when creating a look-and-feel for an extension of JTextComponent. Most state is held in the associated JTextComponent as bound properties, and the UI installs default values for the various properties. This default will install something for all of the properties. Typically, a LAF implementation will do more however. At a minimum, a LAF would generally install key bindings. This class also provides some concurrency support if the Document associated with the JTextComponent is a subclass of AbstractDocument. Access to the View (or View hierarchy) is serialized between any thread mutating the model and the Swing event thread (which is expected to render, do model/view coordinate translation, etc). Any access to the root view should first acquire a read-lock on the AbstractDocument and release that lock in a finally block. An important method to define is the getPropertyPrefix() method which is used as the basis of the keys used to fetch defaults from the UIManager. The string should reflect the type of TextUI (eg. TextField, TextArea, etc) without the particular LAF part of the name (eg Metal, Motif, etc). To build a view of the model, one of the following strategies can be employed. One strategy is to simply redefine the ViewFactory interface in the UI. By default, this UI itself acts as the factory for View implementations. This is useful for simple factories. To do this reimplement the create(javax.swing.text.Element) method. A common strategy for creating more complex types of documents is to have the EditorKit implementation return a factory. Since the EditorKit ties all of the pieces necessary to maintain a type of document, the factory is typically an important part of that and should be produced by the EditorKit implementation. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
BasicToggleButton implementation
BasicToggleButton implementation
A Basic L&F implementation of ToolBarSeparatorUI. This implementation is a "combined" view/controller.
A Basic L&F implementation of ToolBarSeparatorUI. This implementation is a "combined" view/controller.
A Basic L&F implementation of ToolBarUI. This implementation is a "combined" view/controller.
A Basic L&F implementation of ToolBarUI. This implementation is a "combined" view/controller.
Standard tool tip L&F.
Standard tool tip L&F.
The basic L&F for a hierarchical data structure.
The basic L&F for a hierarchical data structure.
BasicViewport implementation
BasicViewport implementation
The interface which defines the methods required for the implementation of the popup portion of a combo box.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The interface which defines the methods required for the implementation of the popup portion of a combo box. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
No vars found in this namespace.
The default layout manager for Popup menus and menubars. This class is an extension of BoxLayout which adds the UIResource tag so that pluggable L&Fs can distinguish it from user-installed layout managers on menus.
The default layout manager for Popup menus and menubars. This class is an extension of BoxLayout which adds the UIResource tag so that pluggable L&Fs can distinguish it from user-installed layout managers on menus.
Pluggable look and feel interface for JButton.
Pluggable look and feel interface for JButton.
Pluggable look and feel interface for JColorChooser.
Pluggable look and feel interface for JColorChooser.
Pluggable look and feel interface for JComboBox.
Pluggable look and feel interface for JComboBox.
A subclass of javax.swing.ComponentInputMap that implements UIResource. UI classes which provide a ComponentInputMap should use this class.
A subclass of javax.swing.ComponentInputMap that implements UIResource. UI classes which provide a ComponentInputMap should use this class.
The base class for all UI delegate objects in the Swing pluggable look and feel architecture. The UI delegate object for a Swing component is responsible for implementing the aspects of the component that depend on the look and feel. The JComponent class invokes methods from this class in order to delegate operations (painting, layout calculations, etc.) that may vary depending on the look and feel installed. Client programs should not invoke methods on this class directly.
The base class for all UI delegate objects in the Swing pluggable look and feel architecture. The UI delegate object for a Swing component is responsible for implementing the aspects of the component that depend on the look and feel. The JComponent class invokes methods from this class in order to delegate operations (painting, layout calculations, etc.) that may vary depending on the look and feel installed. Client programs should not invoke methods on this class directly.
No vars found in this namespace.
Pluggable look and feel interface for JDesktopIcon.
Pluggable look and feel interface for JDesktopIcon.
Pluggable look and feel interface for JDesktopPane.
Pluggable look and feel interface for JDesktopPane.
Pluggable look and feel interface for JFileChooser.
Pluggable look and feel interface for JFileChooser.
A subclass of java.awt.Font that implements UIResource. UI classes which set default font properties should use this class.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A subclass of java.awt.Font that implements UIResource. UI classes which set default font properties should use this class. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
An Icon wrapper class which implements UIResource. UI classes which set icon properties should use this class to wrap any icons specified as defaults.
This class delegates all method invocations to the Icon "delegate" object specified at construction.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
An Icon wrapper class which implements UIResource. UI classes which set icon properties should use this class to wrap any icons specified as defaults. This class delegates all method invocations to the Icon "delegate" object specified at construction. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A subclass of javax.swing.InputMap that implements UIResource. UI classes which provide a InputMap should use this class.
A subclass of javax.swing.InputMap that implements UIResource. UI classes which provide a InputMap should use this class.
Pluggable look and feel interface for JInternalFrame.
Pluggable look and feel interface for JInternalFrame.
Pluggable look and feel interface for JLabel.
Pluggable look and feel interface for JLabel.
The base class for all JLayer's UI delegates.
paint(java.awt.Graphics, javax.swing.JComponent) method performs the painting of the JLayer and eventDispatched(AWTEvent, JLayer) method is notified about any AWTEvents which have been generated by a JLayer or any of its subcomponents.
The LayerUI differs from the UI delegates of the other components, because it is LookAndFeel independent and is not updated by default when the system LookAndFeel is changed.
The subclasses of LayerUI can either be stateless and shareable by multiple JLayers or not shareable.
The base class for all JLayer's UI delegates. paint(java.awt.Graphics, javax.swing.JComponent) method performs the painting of the JLayer and eventDispatched(AWTEvent, JLayer) method is notified about any AWTEvents which have been generated by a JLayer or any of its subcomponents. The LayerUI differs from the UI delegates of the other components, because it is LookAndFeel independent and is not updated by default when the system LookAndFeel is changed. The subclasses of LayerUI can either be stateless and shareable by multiple JLayers or not shareable.
The JList pluggable look and feel delegate.
The JList pluggable look and feel delegate.
Pluggable look and feel interface for JMenuBar.
Pluggable look and feel interface for JMenuBar.
Pluggable look and feel interface for JMenuItem.
Pluggable look and feel interface for JMenuItem.
No vars found in this namespace.
A concrete implementation of MetalTheme providing the original look of the Java Look and Feel, code-named "Steel". Refer to MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme) for details on changing the default theme.
All colors returned by DefaultMetalTheme are completely opaque.
Font Style
DefaultMetalTheme uses bold fonts for many controls. To make all controls (with the exception of the internal frame title bars and client decorated frame title bars) use plain fonts you can do either of the following:
Set the system property swing.boldMetal to false. For example, java -Dswing.boldMetal=false MyApp. Set the defaults property swing.boldMetal to Boolean.FALSE. For example: UIManager.put("swing.boldMetal", Boolean.FALSE);
The defaults property swing.boldMetal, if set, takes precedence over the system property of the same name. After setting this defaults property you need to re-install MetalLookAndFeel, as well as update the UI of any previously created widgets. Otherwise the results are undefined. The following illustrates how to do this:
// turn off bold fonts UIManager.put("swing.boldMetal", Boolean.FALSE);
// re-install the Metal Look and Feel UIManager.setLookAndFeel(new MetalLookAndFeel());
// Update the ComponentUIs for all Components. This // needs to be invoked for all windows. SwingUtilities.updateComponentTreeUI(rootComponent);
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A concrete implementation of MetalTheme providing the original look of the Java Look and Feel, code-named "Steel". Refer to MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme) for details on changing the default theme. All colors returned by DefaultMetalTheme are completely opaque. Font Style DefaultMetalTheme uses bold fonts for many controls. To make all controls (with the exception of the internal frame title bars and client decorated frame title bars) use plain fonts you can do either of the following: Set the system property swing.boldMetal to false. For example, java -Dswing.boldMetal=false MyApp. Set the defaults property swing.boldMetal to Boolean.FALSE. For example: UIManager.put("swing.boldMetal", Boolean.FALSE); The defaults property swing.boldMetal, if set, takes precedence over the system property of the same name. After setting this defaults property you need to re-install MetalLookAndFeel, as well as update the UI of any previously created widgets. Otherwise the results are undefined. The following illustrates how to do this: // turn off bold fonts UIManager.put("swing.boldMetal", Boolean.FALSE); // re-install the Metal Look and Feel UIManager.setLookAndFeel(new MetalLookAndFeel()); // Update the ComponentUIs for all Components. This // needs to be invoked for all windows. SwingUtilities.updateComponentTreeUI(rootComponent); Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Factory object that can vend Borders appropriate for the metal L & F.
Factory object that can vend Borders appropriate for the metal L & F.
Border for a Palette.
Border for a Palette.
Border for a Table Header
Border for a Table Header
MetalButtonUI implementation
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
MetalButtonUI implementation Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
CheckboxIcon implementation for OrganicCheckBoxUI
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
CheckboxIcon implementation for OrganicCheckBoxUI Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
CheckboxUI implementation for MetalCheckboxUI
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
CheckboxUI implementation for MetalCheckboxUI Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
JButton subclass to help out MetalComboBoxUI
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
JButton subclass to help out MetalComboBoxUI Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The default editor for Metal editable combo boxes
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The default editor for Metal editable combo boxes Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A subclass of BasicComboBoxEditor that implements UIResource. BasicComboBoxEditor doesn't implement UIResource directly so that applications can safely override the cellRenderer property with BasicListCellRenderer subclasses.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A subclass of BasicComboBoxEditor that implements UIResource. BasicComboBoxEditor doesn't implement UIResource directly so that applications can safely override the cellRenderer property with BasicListCellRenderer subclasses. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
This utility class draws the horizontal bars which indicate a MetalComboBox
This utility class draws the horizontal bars which indicate a MetalComboBox
Metal UI for JComboBox
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Metal UI for JComboBox Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Metal desktop icon.
Metal desktop icon.
Metal L&F implementation of a FileChooser.
Metal L&F implementation of a FileChooser.
Factory object that vends Icons for the Java™ look and feel (Metal). These icons are used extensively in Metal via the defaults mechanism. While other look and feels often use GIFs for icons, creating icons in code facilitates switching to other themes.
Each method in this class returns either an Icon or null, where null implies that there is no default icon.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Factory object that vends Icons for the Java™ look and feel (Metal). These icons are used extensively in Metal via the defaults mechanism. While other look and feels often use GIFs for icons, creating icons in code facilitates switching to other themes. Each method in this class returns either an Icon or null, where null implies that there is no default icon. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Defines an icon for Palette close
Defines an icon for Palette close
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Class that manages a JLF title bar
Class that manages a JLF title bar
Metal implementation of JInternalFrame.
Metal implementation of JInternalFrame.
A Windows L&F implementation of LabelUI. This implementation is completely static, i.e. there's only one UIView implementation that's shared by all JLabel objects.
A Windows L&F implementation of LabelUI. This implementation is completely static, i.e. there's only one UIView implementation that's shared by all JLabel objects.
The Java Look and Feel, otherwise known as Metal.
Each of the ComponentUIs provided by MetalLookAndFeel derives its behavior from the defaults table. Unless otherwise noted each of the ComponentUI implementations in this package document the set of defaults they use. Unless otherwise noted the defaults are installed at the time installUI is invoked, and follow the recommendations outlined in LookAndFeel for installing defaults.
MetalLookAndFeel derives it's color palette and fonts from MetalTheme. The default theme is OceanTheme. The theme can be changed using the setCurrentTheme method, refer to it for details on changing the theme. Prior to 1.5 the default theme was DefaultMetalTheme. The system property "swing.metalTheme" can be set to "steel" to indicate the default should be DefaultMetalTheme.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The Java Look and Feel, otherwise known as Metal. Each of the ComponentUIs provided by MetalLookAndFeel derives its behavior from the defaults table. Unless otherwise noted each of the ComponentUI implementations in this package document the set of defaults they use. Unless otherwise noted the defaults are installed at the time installUI is invoked, and follow the recommendations outlined in LookAndFeel for installing defaults. MetalLookAndFeel derives it's color palette and fonts from MetalTheme. The default theme is OceanTheme. The theme can be changed using the setCurrentTheme method, refer to it for details on changing the theme. Prior to 1.5 the default theme was DefaultMetalTheme. The system property "swing.metalTheme" can be set to "steel" to indicate the default should be DefaultMetalTheme. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Metal implementation of MenuBarUI. This class is responsible for providing the metal look and feel for JMenuBars.
Metal implementation of MenuBarUI. This class is responsible for providing the metal look and feel for JMenuBars.
A Metal L&F implementation of PopupMenuSeparatorUI. This implementation is a "combined" view/controller.
A Metal L&F implementation of PopupMenuSeparatorUI. This implementation is a "combined" view/controller.
The Metal implementation of ProgressBarUI.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The Metal implementation of ProgressBarUI. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
RadioButtonUI implementation for MetalRadioButtonUI
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
RadioButtonUI implementation for MetalRadioButtonUI Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the metal look and feel implementation of RootPaneUI.
MetalRootPaneUI provides support for the windowDecorationStyle property of JRootPane. MetalRootPaneUI does this by way of installing a custom LayoutManager, a private Component to render the appropriate widgets, and a private Border. The LayoutManager is always installed, regardless of the value of the windowDecorationStyle property, but the Border and Component are only installed/added if the windowDecorationStyle is other than JRootPane.NONE.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the metal look and feel implementation of RootPaneUI. MetalRootPaneUI provides support for the windowDecorationStyle property of JRootPane. MetalRootPaneUI does this by way of installing a custom LayoutManager, a private Component to render the appropriate widgets, and a private Border. The LayoutManager is always installed, regardless of the value of the windowDecorationStyle property, but the Border and Component are only installed/added if the windowDecorationStyle is other than JRootPane.NONE. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Implementation of ScrollBarUI for the Metal Look and Feel
Implementation of ScrollBarUI for the Metal Look and Feel
JButton object for Metal scrollbar arrows.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
JButton object for Metal scrollbar arrows. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A Metal L&F implementation of ScrollPaneUI.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A Metal L&F implementation of ScrollPaneUI. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A Metal L&F implementation of SeparatorUI. This implementation is a "combined" view/controller.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A Metal L&F implementation of SeparatorUI. This implementation is a "combined" view/controller. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A Java L&F implementation of SliderUI.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A Java L&F implementation of SliderUI. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Metal split pane.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Metal split pane. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The Metal subclass of BasicTabbedPaneUI.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The Metal subclass of BasicTabbedPaneUI. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Basis of a look and feel for a JTextField.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Basis of a look and feel for a JTextField. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
MetalTheme provides the color palette and fonts used by the Java Look and Feel.
MetalTheme is abstract, see DefaultMetalTheme and OceanTheme for concrete implementations.
MetalLookAndFeel maintains the current theme that the the ComponentUI implementations for metal use. Refer to MetalLookAndFeel.setCurrentTheme(MetalTheme) for details on changing the current theme.
MetalTheme provides a number of public methods for getting colors. These methods are implemented in terms of a handful of protected abstract methods. A subclass need only override the protected abstract methods (getPrimary1, getPrimary2, getPrimary3, getSecondary1, getSecondary2, and getSecondary3); although a subclass may override the other public methods for more control over the set of colors that are used.
Concrete implementations of MetalTheme must return non-null values from all methods. While the behavior of returning null is not specified, returning null will result in incorrect behavior.
It is strongly recommended that subclasses return completely opaque colors. To do otherwise may result in rendering problems, such as visual garbage.
MetalTheme provides the color palette and fonts used by the Java Look and Feel. MetalTheme is abstract, see DefaultMetalTheme and OceanTheme for concrete implementations. MetalLookAndFeel maintains the current theme that the the ComponentUI implementations for metal use. Refer to MetalLookAndFeel.setCurrentTheme(MetalTheme) for details on changing the current theme. MetalTheme provides a number of public methods for getting colors. These methods are implemented in terms of a handful of protected abstract methods. A subclass need only override the protected abstract methods (getPrimary1, getPrimary2, getPrimary3, getSecondary1, getSecondary2, and getSecondary3); although a subclass may override the other public methods for more control over the set of colors that are used. Concrete implementations of MetalTheme must return non-null values from all methods. While the behavior of returning null is not specified, returning null will result in incorrect behavior. It is strongly recommended that subclasses return completely opaque colors. To do otherwise may result in rendering problems, such as visual garbage.
MetalToggleButton implementation
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
MetalToggleButton implementation Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A Metal Look and Feel implementation of ToolBarUI. This implementation is a "combined" view/controller.
A Metal Look and Feel implementation of ToolBarUI. This implementation is a "combined" view/controller.
A Metal L&F extension of BasicToolTipUI.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A Metal L&F extension of BasicToolTipUI. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
The metal look and feel implementation of TreeUI.
MetalTreeUI allows for configuring how to visually render the spacing and delineation between nodes. The following hints are supported:
Angled A line is drawn connecting the child to the parent. For handling of the root node refer to JTree.setRootVisible(boolean) and JTree.setShowsRootHandles(boolean).
Horizontal
A horizontal line is drawn dividing the children of the root node.
None
Do not draw any visual indication between nodes.
As it is typically impractical to obtain the TreeUI from the JTree and cast to an instance of MetalTreeUI you enable this property via the client property JTree.lineStyle. For example, to switch to Horizontal style you would do: tree.putClientProperty("JTree.lineStyle", "Horizontal");
The default is Angled.
The metal look and feel implementation of TreeUI. MetalTreeUI allows for configuring how to visually render the spacing and delineation between nodes. The following hints are supported: Angled A line is drawn connecting the child to the parent. For handling of the root node refer to JTree.setRootVisible(boolean) and JTree.setShowsRootHandles(boolean). Horizontal A horizontal line is drawn dividing the children of the root node. None Do not draw any visual indication between nodes. As it is typically impractical to obtain the TreeUI from the JTree and cast to an instance of MetalTreeUI you enable this property via the client property JTree.lineStyle. For example, to switch to Horizontal style you would do: tree.putClientProperty("JTree.lineStyle", "Horizontal"); The default is Angled.
The default theme for the MetalLookAndFeel.
The designers of the Metal Look and Feel strive to keep the default look up to date, possibly through the use of new themes in the future. Therefore, developers should only use this class directly when they wish to customize the "Ocean" look, or force it to be the current theme, regardless of future updates.
All colors returned by OceanTheme are completely opaque.
The default theme for the MetalLookAndFeel. The designers of the Metal Look and Feel strive to keep the default look up to date, possibly through the use of new themes in the future. Therefore, developers should only use this class directly when they wish to customize the "Ocean" look, or force it to be the current theme, regardless of future updates. All colors returned by OceanTheme are completely opaque.
No vars found in this namespace.
A multiplexing UI used to combine ButtonUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ButtonUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ColorChooserUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ColorChooserUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ComboBoxUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ComboBoxUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine DesktopIconUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine DesktopIconUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine DesktopPaneUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine DesktopPaneUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine FileChooserUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine FileChooserUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine InternalFrameUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine InternalFrameUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine LabelUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine LabelUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ListUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ListUIs. This file was automatically generated by AutoMulti.
A multiplexing look and feel that allows more than one UI to be associated with a component at the same time. The primary look and feel is called the default look and feel, and the other look and feels are called auxiliary.
For further information, see Using the Multiplexing Look and Feel.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A multiplexing look and feel that allows more than one UI to be associated with a component at the same time. The primary look and feel is called the default look and feel, and the other look and feels are called auxiliary. For further information, see Using the Multiplexing Look and Feel. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
A multiplexing UI used to combine MenuBarUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine MenuBarUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine MenuItemUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine MenuItemUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine OptionPaneUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine OptionPaneUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine PanelUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine PanelUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine PopupMenuUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine PopupMenuUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ProgressBarUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ProgressBarUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine RootPaneUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine RootPaneUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ScrollBarUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ScrollBarUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ScrollPaneUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ScrollPaneUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine SeparatorUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine SeparatorUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine SliderUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine SliderUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine SpinnerUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine SpinnerUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine SplitPaneUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine SplitPaneUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine TabbedPaneUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine TabbedPaneUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine TableHeaderUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine TableHeaderUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine TableUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine TableUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine TextUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine TextUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ToolBarUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ToolBarUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ToolTipUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ToolTipUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine TreeUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine TreeUIs. This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ViewportUIs.
This file was automatically generated by AutoMulti.
A multiplexing UI used to combine ViewportUIs. This file was automatically generated by AutoMulti.
Convenient base class for defining Painter instances for rendering a region or component in Nimbus.
Convenient base class for defining Painter instances for rendering a region or component in Nimbus.
A class encapsulating state useful when painting. Generally, instances of this class are created once, and reused for each paint request without modification. This class contains values useful when hinting the cache engine, and when decoding control points and bezier curve anchors.
A class encapsulating state useful when painting. Generally, instances of this class are created once, and reused for each paint request without modification. This class contains values useful when hinting the cache engine, and when decoding control points and bezier curve anchors.
No vars found in this namespace.
The NimbusLookAndFeel class.
The NimbusLookAndFeel class.
A SynthStyle implementation used by Nimbus. Each Region that has been registered with the NimbusLookAndFeel will have an associated NimbusStyle. Third party components that are registered with the NimbusLookAndFeel will therefore be handed a NimbusStyle from the look and feel from the #getStyle(JComponent, Region) method.
This class properly reads and retrieves values placed in the UIDefaults according to the standard Nimbus naming conventions. It will create and retrieve painters, fonts, colors, and other data stored there.
NimbusStyle also supports the ability to override settings on a per component basis. NimbusStyle checks the component's client property map for "Nimbus.Overrides". If the value associated with this key is an instance of UIDefaults, then the values in that defaults table will override the standard Nimbus defaults in UIManager, but for that component instance only.
Optionally, you may specify the client property "Nimbus.Overrides.InheritDefaults". If true, this client property indicates that the defaults located in UIManager should first be read, and then replaced with defaults located in the component client properties. If false, then only the defaults located in the component client property map will be used. If not specified, it is assumed to be true.
You must specify "Nimbus.Overrides" for "Nimbus.Overrides.InheritDefaults" to have any effect. "Nimbus.Overrides" indicates whether there are any overrides, while "Nimbus.Overrides.InheritDefaults" indicates whether those overrides should first be initialized with the defaults from UIManager.
The NimbusStyle is reloaded whenever a property change event is fired for a component for "Nimbus.Overrides" or "Nimbus.Overrides.InheritDefaults". So for example, setting a new UIDefaults on a component would cause the style to be reloaded.
The values are only read out of UIManager once, and then cached. If you need to read the values again (for example, if the UI is being reloaded), then discard this NimbusStyle and read a new one from NimbusLookAndFeel using NimbusLookAndFeel.getStyle.
The primary API of interest in this class for 3rd party component authors are the three methods which retrieve painters: #getBackgroundPainter, #getForegroundPainter, and #getBorderPainter.
NimbusStyle allows you to specify custom states, or modify the order of states. Synth (and thus Nimbus) has the concept of a "state". For example, a JButton might be in the "MOUSE_OVER" state, or the "ENABLED" state, or the "DISABLED" state. These are all "standard" states which are defined in synth, and which apply to all synth Regions.
Sometimes, however, you need to have a custom state. For example, you want JButton to render differently if it's parent is a JToolbar. In Nimbus, you specify these custom states by including a special key in UIDefaults. The following UIDefaults entries define three states for this button:
JButton.States = Enabled, Disabled, Toolbar
JButton[Enabled].backgroundPainter = somePainter
JButton[Disabled].background = BLUE
JButton[Toolbar].backgroundPainter = someOtherPaint
As you can see, the JButton.States entry lists the states that the JButton style will support. You then specify the settings for each state. If you do not specify the JButton.States entry, then the standard Synth states will be assumed. If you specify the entry but the list of states is empty or null, then the standard synth states will be assumed.
A SynthStyle implementation used by Nimbus. Each Region that has been registered with the NimbusLookAndFeel will have an associated NimbusStyle. Third party components that are registered with the NimbusLookAndFeel will therefore be handed a NimbusStyle from the look and feel from the #getStyle(JComponent, Region) method. This class properly reads and retrieves values placed in the UIDefaults according to the standard Nimbus naming conventions. It will create and retrieve painters, fonts, colors, and other data stored there. NimbusStyle also supports the ability to override settings on a per component basis. NimbusStyle checks the component's client property map for "Nimbus.Overrides". If the value associated with this key is an instance of UIDefaults, then the values in that defaults table will override the standard Nimbus defaults in UIManager, but for that component instance only. Optionally, you may specify the client property "Nimbus.Overrides.InheritDefaults". If true, this client property indicates that the defaults located in UIManager should first be read, and then replaced with defaults located in the component client properties. If false, then only the defaults located in the component client property map will be used. If not specified, it is assumed to be true. You must specify "Nimbus.Overrides" for "Nimbus.Overrides.InheritDefaults" to have any effect. "Nimbus.Overrides" indicates whether there are any overrides, while "Nimbus.Overrides.InheritDefaults" indicates whether those overrides should first be initialized with the defaults from UIManager. The NimbusStyle is reloaded whenever a property change event is fired for a component for "Nimbus.Overrides" or "Nimbus.Overrides.InheritDefaults". So for example, setting a new UIDefaults on a component would cause the style to be reloaded. The values are only read out of UIManager once, and then cached. If you need to read the values again (for example, if the UI is being reloaded), then discard this NimbusStyle and read a new one from NimbusLookAndFeel using NimbusLookAndFeel.getStyle. The primary API of interest in this class for 3rd party component authors are the three methods which retrieve painters: #getBackgroundPainter, #getForegroundPainter, and #getBorderPainter. NimbusStyle allows you to specify custom states, or modify the order of states. Synth (and thus Nimbus) has the concept of a "state". For example, a JButton might be in the "MOUSE_OVER" state, or the "ENABLED" state, or the "DISABLED" state. These are all "standard" states which are defined in synth, and which apply to all synth Regions. Sometimes, however, you need to have a custom state. For example, you want JButton to render differently if it's parent is a JToolbar. In Nimbus, you specify these custom states by including a special key in UIDefaults. The following UIDefaults entries define three states for this button: JButton.States = Enabled, Disabled, Toolbar JButton[Enabled].backgroundPainter = somePainter JButton[Disabled].background = BLUE JButton[Toolbar].backgroundPainter = someOtherPaint As you can see, the JButton.States entry lists the states that the JButton style will support. You then specify the settings for each state. If you do not specify the JButton.States entry, then the standard Synth states will be assumed. If you specify the entry but the list of states is empty or null, then the standard synth states will be assumed.
Represents a built in, or custom, state in Nimbus.
Synth provides several built in states, which are:
Enabled Mouse Over Pressed Disabled Focused Selected Default
However, there are many more states that could be described in a LookAndFeel, and it would be nice to style components differently based on these different states. For example, a progress bar could be "indeterminate". It would be very convenient to allow this to be defined as a "state".
This class, State, is intended to be used for such situations. Simply implement the abstract #isInState method. It returns true if the given JComponent is "in this state", false otherwise. This method will be called many times in performance sensitive loops. It must execute very quickly.
For example, the following might be an implementation of a custom "Indeterminate" state for JProgressBars:
public final class IndeterminateState extends State<JProgressBar> {
public IndeterminateState() {
super("Indeterminate");
}
@Override
protected boolean isInState(JProgressBar c) {
return c.isIndeterminate();
}
}
Represents a built in, or custom, state in Nimbus. Synth provides several built in states, which are: Enabled Mouse Over Pressed Disabled Focused Selected Default However, there are many more states that could be described in a LookAndFeel, and it would be nice to style components differently based on these different states. For example, a progress bar could be "indeterminate". It would be very convenient to allow this to be defined as a "state". This class, State, is intended to be used for such situations. Simply implement the abstract #isInState method. It returns true if the given JComponent is "in this state", false otherwise. This method will be called many times in performance sensitive loops. It must execute very quickly. For example, the following might be an implementation of a custom "Indeterminate" state for JProgressBars: public final class IndeterminateState extends State<JProgressBar> { public IndeterminateState() { super("Indeterminate"); } @Override protected boolean isInState(JProgressBar c) { return c.isIndeterminate(); } }
Pluggable look and feel interface for JOptionPane.
Pluggable look and feel interface for JOptionPane.
Pluggable look and feel interface for Panel.
Pluggable look and feel interface for Panel.
Pluggable look and feel interface for JPopupMenu.
Pluggable look and feel interface for JPopupMenu.
Pluggable look and feel interface for JProgressBar.
Pluggable look and feel interface for JProgressBar.
Pluggable look and feel interface for JRootPane.
Pluggable look and feel interface for JRootPane.
Pluggable look and feel interface for JScrollBar.
Pluggable look and feel interface for JScrollBar.
Pluggable look and feel interface for JScrollPane.
Pluggable look and feel interface for JScrollPane.
Pluggable look and feel interface for JSeparator.
Pluggable look and feel interface for JSeparator.
Pluggable look and feel interface for JSlider.
Pluggable look and feel interface for JSlider.
Pluggable look and feel interface for JSpinner
Pluggable look and feel interface for JSpinner
Pluggable look and feel interface for JSplitPane.
Pluggable look and feel interface for JSplitPane.
A typesafe enumeration of colors that can be fetched from a style.
Each SynthStyle has a set of ColorTypes that are accessed by way of the SynthStyle.getColor(SynthContext, ColorType) method. SynthStyle's installDefaults will install the FOREGROUND color as the foreground of the Component, and the BACKGROUND color to the background of the component (assuming that you have not explicitly specified a foreground and background color). Some components support more color based properties, for example JList has the property selectionForeground which will be mapped to FOREGROUND with a component state of SynthConstants.SELECTED.
The following example shows a custom SynthStyle that returns a red Color for the DISABLED state, otherwise a black color.
class MyStyle extends SynthStyle { private Color disabledColor = new ColorUIResource(Color.RED); private Color color = new ColorUIResource(Color.BLACK); protected Color getColorForState(SynthContext context, ColorType type){ if (context.getComponentState() == SynthConstants.DISABLED) { return disabledColor; } return color; } }
A typesafe enumeration of colors that can be fetched from a style. Each SynthStyle has a set of ColorTypes that are accessed by way of the SynthStyle.getColor(SynthContext, ColorType) method. SynthStyle's installDefaults will install the FOREGROUND color as the foreground of the Component, and the BACKGROUND color to the background of the component (assuming that you have not explicitly specified a foreground and background color). Some components support more color based properties, for example JList has the property selectionForeground which will be mapped to FOREGROUND with a component state of SynthConstants.SELECTED. The following example shows a custom SynthStyle that returns a red Color for the DISABLED state, otherwise a black color. class MyStyle extends SynthStyle { private Color disabledColor = new ColorUIResource(Color.RED); private Color color = new ColorUIResource(Color.BLACK); protected Color getColorForState(SynthContext context, ColorType type){ if (context.getComponentState() == SynthConstants.DISABLED) { return disabledColor; } return color; } }
No vars found in this namespace.
A distinct rendering area of a Swing component. A component may support one or more regions. Specific component regions are defined by the typesafe enumeration in this class.
Regions are typically used as a way to identify the Components and areas a particular style is to apply to. Synth's file format allows you to bind styles based on the name of a Region. The name is derived from the field name of the constant:
Map all characters to lowercase. Map the first character to uppercase. Map the first character after underscores to uppercase. Remove all underscores.
For example, to identify the SPLIT_PANE Region you would use SplitPane. The following shows a custom SynthStyleFactory that returns a specific style for split panes:
public SynthStyle getStyle(JComponent c, Region id) { if (id == Region.SPLIT_PANE) { return splitPaneStyle; } ... } The following xml accomplishes the same thing:
<style id="splitPaneStyle"> ... </style>
<bind style="splitPaneStyle" type="region" key="SplitPane"/>
A distinct rendering area of a Swing component. A component may support one or more regions. Specific component regions are defined by the typesafe enumeration in this class. Regions are typically used as a way to identify the Components and areas a particular style is to apply to. Synth's file format allows you to bind styles based on the name of a Region. The name is derived from the field name of the constant: Map all characters to lowercase. Map the first character to uppercase. Map the first character after underscores to uppercase. Remove all underscores. For example, to identify the SPLIT_PANE Region you would use SplitPane. The following shows a custom SynthStyleFactory that returns a specific style for split panes: public SynthStyle getStyle(JComponent c, Region id) { if (id == Region.SPLIT_PANE) { return splitPaneStyle; } ... } The following xml accomplishes the same thing: <style id="splitPaneStyle"> ... </style> <bind style="splitPaneStyle" type="region" key="SplitPane"/>
Provides the Synth L&F UI delegate for JButton.
Provides the Synth L&F UI delegate for JButton.
Provides the Synth L&F UI delegate for JCheckBoxMenuItem.
Provides the Synth L&F UI delegate for JCheckBoxMenuItem.
Provides the Synth L&F UI delegate for JCheckBox.
Provides the Synth L&F UI delegate for JCheckBox.
Provides the Synth L&F UI delegate for JColorChooser.
Provides the Synth L&F UI delegate for JColorChooser.
Provides the Synth L&F UI delegate for JComboBox.
Provides the Synth L&F UI delegate for JComboBox.
Constants used by Synth. Not all Components support all states. A Component will at least be in one of the primary states. That is, the return value from SynthContext.getComponentState() will at least be one of ENABLED, MOUSE_OVER, PRESSED or DISABLED, and may also contain FOCUSED, SELECTED or DEFAULT.
Constants used by Synth. Not all Components support all states. A Component will at least be in one of the primary states. That is, the return value from SynthContext.getComponentState() will at least be one of ENABLED, MOUSE_OVER, PRESSED or DISABLED, and may also contain FOCUSED, SELECTED or DEFAULT.
No vars found in this namespace.
An immutable transient object containing contextual information about a Region. A SynthContext should only be considered valid for the duration of the method it is passed to. In other words you should not cache a SynthContext that is passed to you and expect it to remain valid.
An immutable transient object containing contextual information about a Region. A SynthContext should only be considered valid for the duration of the method it is passed to. In other words you should not cache a SynthContext that is passed to you and expect it to remain valid.
Provides the Synth L&F UI delegate for a minimized internal frame on a desktop.
Provides the Synth L&F UI delegate for a minimized internal frame on a desktop.
Provides the Synth L&F UI delegate for JDesktopPane.
Provides the Synth L&F UI delegate for JDesktopPane.
Provides the Synth L&F UI delegate for JEditorPane.
Provides the Synth L&F UI delegate for JEditorPane.
Provides the Synth L&F UI delegate for JFormattedTextField.
Provides the Synth L&F UI delegate for JFormattedTextField.
Wrapper for primitive graphics calls.
Wrapper for primitive graphics calls.
Provides the Synth L&F UI delegate for JInternalFrame.
Provides the Synth L&F UI delegate for JInternalFrame.
Provides the Synth L&F UI delegate for JLabel.
Provides the Synth L&F UI delegate for JLabel.
Provides the Synth L&F UI delegate for JList.
Provides the Synth L&F UI delegate for JList.
SynthLookAndFeel provides the basis for creating a customized look and feel. SynthLookAndFeel does not directly provide a look, all painting is delegated. You need to either provide a configuration file, by way of the load(java.io.InputStream, java.lang.Class<?>) method, or provide your own SynthStyleFactory to setStyleFactory(javax.swing.plaf.synth.SynthStyleFactory). Refer to the package summary for an example of loading a file, and SynthStyleFactory for an example of providing your own SynthStyleFactory to setStyleFactory.
Warning: This class implements Serializable as a side effect of it extending BasicLookAndFeel. It is not intended to be serialized. An attempt to serialize it will result in NotSerializableException.
SynthLookAndFeel provides the basis for creating a customized look and feel. SynthLookAndFeel does not directly provide a look, all painting is delegated. You need to either provide a configuration file, by way of the load(java.io.InputStream, java.lang.Class<?>) method, or provide your own SynthStyleFactory to setStyleFactory(javax.swing.plaf.synth.SynthStyleFactory). Refer to the package summary for an example of loading a file, and SynthStyleFactory for an example of providing your own SynthStyleFactory to setStyleFactory. Warning: This class implements Serializable as a side effect of it extending BasicLookAndFeel. It is not intended to be serialized. An attempt to serialize it will result in NotSerializableException.
Provides the Synth L&F UI delegate for JMenuBar.
Provides the Synth L&F UI delegate for JMenuBar.
Provides the Synth L&F UI delegate for JMenuItem.
Provides the Synth L&F UI delegate for JMenuItem.
Provides the Synth L&F UI delegate for JMenu.
Provides the Synth L&F UI delegate for JMenu.
Provides the Synth L&F UI delegate for JOptionPane.
Provides the Synth L&F UI delegate for JOptionPane.
SynthPainter is used for painting portions of JComponents. At a minimum each JComponent has two paint methods: one for the border and one for the background. Some JComponents have more than one Region, and as a consequence more paint methods.
Instances of SynthPainter are obtained from the SynthStyle.getPainter(javax.swing.plaf.synth.SynthContext) method.
You typically supply a SynthPainter by way of Synth's file format. The following example registers a painter for all JButtons that will render the image myImage.png:
<style id="buttonStyle"> <imagePainter path="myImage.png" sourceInsets="2 2 2 2" paintCenter="true" stretch="true"/> <insets top="2" bottom="2" left="2" right="2"/> </style>
<bind style="buttonStyle" type="REGION" key="button"/>
SynthPainter is abstract in so far as it does no painting, all the methods are empty. While none of these methods are typed to throw an exception, subclasses can assume that valid arguments are passed in, and if not they can throw a NullPointerException or IllegalArgumentException in response to invalid arguments.
SynthPainter is used for painting portions of JComponents. At a minimum each JComponent has two paint methods: one for the border and one for the background. Some JComponents have more than one Region, and as a consequence more paint methods. Instances of SynthPainter are obtained from the SynthStyle.getPainter(javax.swing.plaf.synth.SynthContext) method. You typically supply a SynthPainter by way of Synth's file format. The following example registers a painter for all JButtons that will render the image myImage.png: <style id="buttonStyle"> <imagePainter path="myImage.png" sourceInsets="2 2 2 2" paintCenter="true" stretch="true"/> <insets top="2" bottom="2" left="2" right="2"/> </style> <bind style="buttonStyle" type="REGION" key="button"/> SynthPainter is abstract in so far as it does no painting, all the methods are empty. While none of these methods are typed to throw an exception, subclasses can assume that valid arguments are passed in, and if not they can throw a NullPointerException or IllegalArgumentException in response to invalid arguments.
Provides the Synth L&F UI delegate for JPanel.
Provides the Synth L&F UI delegate for JPanel.
Provides the Synth L&F UI delegate for JPasswordField.
Provides the Synth L&F UI delegate for JPasswordField.
Provides the Synth L&F UI delegate for JPopupMenu.
Provides the Synth L&F UI delegate for JPopupMenu.
Provides the Synth L&F UI delegate for JProgressBar.
Provides the Synth L&F UI delegate for JProgressBar.
Provides the Synth L&F UI delegate for JRadioButtonMenuItem.
Provides the Synth L&F UI delegate for JRadioButtonMenuItem.
Provides the Synth L&F UI delegate for JRadioButton.
Provides the Synth L&F UI delegate for JRadioButton.
Provides the Synth L&F UI delegate for JRootPane.
Provides the Synth L&F UI delegate for JRootPane.
Provides the Synth L&F UI delegate for JScrollBar.
Provides the Synth L&F UI delegate for JScrollBar.
Provides the Synth L&F UI delegate for JScrollPane.
Provides the Synth L&F UI delegate for JScrollPane.
Provides the Synth L&F UI delegate for JSeparator.
Provides the Synth L&F UI delegate for JSeparator.
Provides the Synth L&F UI delegate for JSlider.
Provides the Synth L&F UI delegate for JSlider.
Provides the Synth L&F UI delegate for JSpinner.
Provides the Synth L&F UI delegate for JSpinner.
Provides the Synth L&F UI delegate for JSplitPane.
Provides the Synth L&F UI delegate for JSplitPane.
SynthStyle is a set of style properties. Each SynthUI references at least one SynthStyle that is obtained using a SynthStyleFactory. You typically don't need to interact with this class directly, rather you will load a Synth File Format file into SynthLookAndFeel that will create a set of SynthStyles.
SynthStyle is a set of style properties. Each SynthUI references at least one SynthStyle that is obtained using a SynthStyleFactory. You typically don't need to interact with this class directly, rather you will load a Synth File Format file into SynthLookAndFeel that will create a set of SynthStyles.
Factory used for obtaining SynthStyles. Each of the Synth ComponentUIs will call into the current SynthStyleFactory to obtain a SynthStyle for each of the distinct regions they have.
The following example creates a custom SynthStyleFactory that returns a different style based on the Region:
class MyStyleFactory extends SynthStyleFactory { public SynthStyle getStyle(JComponent c, Region id) { if (id == Region.BUTTON) { return buttonStyle; } else if (id == Region.TREE) { return treeStyle; } return defaultStyle; } } SynthLookAndFeel laf = new SynthLookAndFeel(); UIManager.setLookAndFeel(laf); SynthLookAndFeel.setStyleFactory(new MyStyleFactory());
Factory used for obtaining SynthStyles. Each of the Synth ComponentUIs will call into the current SynthStyleFactory to obtain a SynthStyle for each of the distinct regions they have. The following example creates a custom SynthStyleFactory that returns a different style based on the Region: class MyStyleFactory extends SynthStyleFactory { public SynthStyle getStyle(JComponent c, Region id) { if (id == Region.BUTTON) { return buttonStyle; } else if (id == Region.TREE) { return treeStyle; } return defaultStyle; } } SynthLookAndFeel laf = new SynthLookAndFeel(); UIManager.setLookAndFeel(laf); SynthLookAndFeel.setStyleFactory(new MyStyleFactory());
Provides the Synth L&F UI delegate for JTabbedPane.
Looks up the selectedTabPadInsets property from the Style, which represents additional insets for the selected tab.
Provides the Synth L&F UI delegate for JTabbedPane. Looks up the selectedTabPadInsets property from the Style, which represents additional insets for the selected tab.
Provides the Synth L&F UI delegate for JTableHeader.
Provides the Synth L&F UI delegate for JTableHeader.
Provides the Synth L&F UI delegate for JTable.
Provides the Synth L&F UI delegate for JTable.
Provides the look and feel for a plain text editor in the Synth look and feel. In this implementation the default UI is extended to act as a simple view factory.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the look and feel for a plain text editor in the Synth look and feel. In this implementation the default UI is extended to act as a simple view factory. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the Synth L&F UI delegate for JTextField.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the Synth L&F UI delegate for JTextField. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the look and feel for a styled text editor in the Synth look and feel.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the look and feel for a styled text editor in the Synth look and feel. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the Synth L&F UI delegate for JToggleButton.
Provides the Synth L&F UI delegate for JToggleButton.
Provides the Synth L&F UI delegate for JToolBar.
Provides the Synth L&F UI delegate for JToolBar.
Provides the Synth L&F UI delegate for JToolTip.
Provides the Synth L&F UI delegate for JToolTip.
Provides the Synth L&F UI delegate for JTree.
Provides the Synth L&F UI delegate for JTree.
SynthUI is used to fetch the SynthContext for a particular Component.
SynthUI is used to fetch the SynthContext for a particular Component.
Provides the Synth L&F UI delegate for JViewport.
Provides the Synth L&F UI delegate for JViewport.
Pluggable look and feel interface for JTabbedPane.
Pluggable look and feel interface for JTabbedPane.
Pluggable look and feel interface for JTableHeader.
Pluggable look and feel interface for JTableHeader.
Pluggable look and feel interface for JTable.
Pluggable look and feel interface for JTable.
Text editor user interface
Text editor user interface
Pluggable look and feel interface for JToolBar.
Pluggable look and feel interface for JToolBar.
Pluggable look and feel interface for JToolTip.
Pluggable look and feel interface for JToolTip.
Pluggable look and feel interface for JTree.
Pluggable look and feel interface for JTree.
This interface is used to mark objects created by ComponentUI delegates. The ComponentUI.installUI() and ComponentUI.uninstallUI() methods can use this interface to decide if a properties value has been overridden. For example, the JList cellRenderer property is initialized by BasicListUI.installUI(), only if it's initial value is null:
if (list.getCellRenderer() == null) { list.setCellRenderer((ListCellRenderer)(UIManager.get("List.cellRenderer"))); } At uninstallUI() time we reset the property to null if its value is an instance of UIResource:
if (list.getCellRenderer() instanceof UIResource) { list.setCellRenderer(null); } This pattern applies to all properties except the java.awt.Component properties font, foreground, and background. If one of these properties isn't initialized, or is explicitly set to null, its container provides the value. For this reason the "== null" is unreliable when installUI() is called to dynamically change a components look and feel. So at installUI() time we check to see if the current value is a UIResource:
if (!(list.getFont() instanceof UIResource)) { list.setFont(UIManager.getFont("List.font")); }
This interface is used to mark objects created by ComponentUI delegates. The ComponentUI.installUI() and ComponentUI.uninstallUI() methods can use this interface to decide if a properties value has been overridden. For example, the JList cellRenderer property is initialized by BasicListUI.installUI(), only if it's initial value is null: if (list.getCellRenderer() == null) { list.setCellRenderer((ListCellRenderer)(UIManager.get("List.cellRenderer"))); } At uninstallUI() time we reset the property to null if its value is an instance of UIResource: if (list.getCellRenderer() instanceof UIResource) { list.setCellRenderer(null); } This pattern applies to all properties except the java.awt.Component properties font, foreground, and background. If one of these properties isn't initialized, or is explicitly set to null, its container provides the value. For this reason the "== null" is unreliable when installUI() is called to dynamically change a components look and feel. So at installUI() time we check to see if the current value is a UIResource: if (!(list.getFont() instanceof UIResource)) { list.setFont(UIManager.getFont("List.font")); }
No vars found in this namespace.
Pluggable look and feel interface for JViewport.
Pluggable look and feel interface for JViewport.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close