All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.JSeparator
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JSeparator
- public class JSeparator
- extends JComponent
- implements Accessible
An implementation of a Menu Separator -- a divider between menu items
that breaks them up into logical groupings.
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 Swing1.0 applications. It will
not be possible to load serialized Swing1.0 objects with future releases
of Swing. The JDK1.2 release of Swing will be the compatibility
baseline for the serialized form of Swing objects.
-
JSeparator()
- Create a new separator
-
getAccessibleContext()
- Get the AccessibleContext associated with this JComponent
-
getUI()
- /**
Returns the L&F object that renders this component.
-
getUIClassID()
- Returns the name of the L&F class that renders this component.
-
setUI(SeparatorUI)
- Sets the L&F object that renders this component.
-
updateUI()
- Notification from the UIFactory that the L&F has changed.
JSeparator
public JSeparator()
- Create a new separator
getUI
public SeparatorUI getUI()
- /**
Returns the L&F object that renders this component.
- Returns:
- the SeparatorUI object that renders this component
setUI
public void setUI(SeparatorUI ui)
- Sets the L&F object that renders this component.
- Parameters:
- ui - the SeparatorUI L&F object
- See Also:
- getUI
updateUI
public void updateUI()
- Notification from the UIFactory that the L&F has changed.
Called to replace the UI with the latest version from the
UIFactory.
- Overrides:
- updateUI in class JComponent
- See Also:
- updateUI
getUIClassID
public String getUIClassID()
- Returns the name of the L&F class that renders this component.
- Returns:
- "SeparatorUI"
- Overrides:
- getUIClassID in class JComponent
- See Also:
- getUIClassID, getUI
getAccessibleContext
public AccessibleContext getAccessibleContext()
- Get the AccessibleContext associated with this JComponent
- Returns:
- the AccessibleContext of this JComponent
- Overrides:
- getAccessibleContext in class JComponent
All Packages Class Hierarchy This Package Previous Next Index