javax.swing.tree
Class DefaultTreeCellRenderer

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.Component sample code for java.awt.Component definition code for java.awt.Component 
      extended by java.awt.Container sample code for java.awt.Container definition code for java.awt.Container 
          extended by javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent 
              extended by javax.swing.JLabel sample code for javax.swing.JLabel definition code for javax.swing.JLabel 
                  extended by javax.swing.tree.DefaultTreeCellRenderer
All Implemented Interfaces:
ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , MenuContainer sample code for java.awt.MenuContainer definition code for java.awt.MenuContainer , Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible , SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants , TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer

public class DefaultTreeCellRenderer
extends JLabel sample code for javax.swing.JLabel definition code for javax.swing.JLabel
implements TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer

Displays an entry in a tree. DefaultTreeCellRenderer is not opaque and unless you subclass paint you should not change this. See How to Use Trees in The Java Tutorial for examples of customizing node display using this class.

Implementation Note: This class overrides invalidate, validate, revalidate, repaint, and firePropertyChange solely to improve performance. If not overridden, these frequently called methods would execute code paths that are unnecessary for the default tree cell renderer. If you write your own renderer, take care to weigh the benefits and drawbacks of overriding these methods.

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 JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JLabel sample code for javax.swing.JLabel definition code for javax.swing.JLabel
JLabel.AccessibleJLabel sample code for javax.swing.JLabel.AccessibleJLabel definition code for javax.swing.JLabel.AccessibleJLabel
 
Nested classes/interfaces inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container
Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent , Component.BltBufferStrategy sample code for java.awt.Component.BltBufferStrategy definition code for java.awt.Component.BltBufferStrategy , Component.FlipBufferStrategy sample code for java.awt.Component.FlipBufferStrategy definition code for java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  Color sample code for java.awt.Color definition code for java.awt.Color backgroundNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.backgroundNonSelectionColor definition code for javax.swing.tree.DefaultTreeCellRenderer.backgroundNonSelectionColor
          Color to use for the background when the node isn't selected.
protected  Color sample code for java.awt.Color definition code for java.awt.Color backgroundSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.backgroundSelectionColor definition code for javax.swing.tree.DefaultTreeCellRenderer.backgroundSelectionColor
          Color to use for the background when a node is selected.
protected  Color sample code for java.awt.Color definition code for java.awt.Color borderSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.borderSelectionColor definition code for javax.swing.tree.DefaultTreeCellRenderer.borderSelectionColor
          Color to use for the focus indicator when the node has focus.
protected  Icon sample code for javax.swing.Icon definition code for javax.swing.Icon closedIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.closedIcon definition code for javax.swing.tree.DefaultTreeCellRenderer.closedIcon
          Icon used to show non-leaf nodes that aren't expanded.
protected  boolean hasFocus sample code for javax.swing.tree.DefaultTreeCellRenderer.hasFocus definition code for javax.swing.tree.DefaultTreeCellRenderer.hasFocus
          True if has focus.
protected  Icon sample code for javax.swing.Icon definition code for javax.swing.Icon leafIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.leafIcon definition code for javax.swing.tree.DefaultTreeCellRenderer.leafIcon
          Icon used to show leaf nodes.
protected  Icon sample code for javax.swing.Icon definition code for javax.swing.Icon openIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.openIcon definition code for javax.swing.tree.DefaultTreeCellRenderer.openIcon
          Icon used to show non-leaf nodes that are expanded.
protected  boolean selected sample code for javax.swing.tree.DefaultTreeCellRenderer.selected definition code for javax.swing.tree.DefaultTreeCellRenderer.selected
          Is the value currently selected.
protected  Color sample code for java.awt.Color definition code for java.awt.Color textNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.textNonSelectionColor definition code for javax.swing.tree.DefaultTreeCellRenderer.textNonSelectionColor
          Color to use for the foreground for non-selected nodes.
protected  Color sample code for java.awt.Color definition code for java.awt.Color textSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.textSelectionColor definition code for javax.swing.tree.DefaultTreeCellRenderer.textSelectionColor
          Color to use for the foreground for selected nodes.
 
Fields inherited from class javax.swing.JLabel sample code for javax.swing.JLabel definition code for javax.swing.JLabel
labelFor sample code for javax.swing.JLabel.labelFor definition code for javax.swing.JLabel.labelFor
 
Fields inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
accessibleContext sample code for javax.swing.JComponent.accessibleContext definition code for javax.swing.JComponent.accessibleContext , listenerList sample code for javax.swing.JComponent.listenerList definition code for javax.swing.JComponent.listenerList , TOOL_TIP_TEXT_KEY sample code for javax.swing.JComponent.TOOL_TIP_TEXT_KEY definition code for javax.swing.JComponent.TOOL_TIP_TEXT_KEY , ui sample code for javax.swing.JComponent.ui definition code for javax.swing.JComponent.ui , UNDEFINED_CONDITION sample code for javax.swing.JComponent.UNDEFINED_CONDITION definition code for javax.swing.JComponent.UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT sample code for javax.swing.JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT definition code for javax.swing.JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED sample code for javax.swing.JComponent.WHEN_FOCUSED definition code for javax.swing.JComponent.WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW sample code for javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW definition code for javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
BOTTOM_ALIGNMENT sample code for java.awt.Component.BOTTOM_ALIGNMENT definition code for java.awt.Component.BOTTOM_ALIGNMENT , CENTER_ALIGNMENT sample code for java.awt.Component.CENTER_ALIGNMENT definition code for java.awt.Component.CENTER_ALIGNMENT , LEFT_ALIGNMENT sample code for java.awt.Component.LEFT_ALIGNMENT definition code for java.awt.Component.LEFT_ALIGNMENT , RIGHT_ALIGNMENT sample code for java.awt.Component.RIGHT_ALIGNMENT definition code for java.awt.Component.RIGHT_ALIGNMENT , TOP_ALIGNMENT sample code for java.awt.Component.TOP_ALIGNMENT definition code for java.awt.Component.TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants
BOTTOM sample code for javax.swing.SwingConstants.BOTTOM definition code for javax.swing.SwingConstants.BOTTOM , CENTER sample code for javax.swing.SwingConstants.CENTER definition code for javax.swing.SwingConstants.CENTER , EAST sample code for javax.swing.SwingConstants.EAST definition code for javax.swing.SwingConstants.EAST , HORIZONTAL sample code for javax.swing.SwingConstants.HORIZONTAL definition code for javax.swing.SwingConstants.HORIZONTAL , LEADING sample code for javax.swing.SwingConstants.LEADING definition code for javax.swing.SwingConstants.LEADING , LEFT sample code for javax.swing.SwingConstants.LEFT definition code for javax.swing.SwingConstants.LEFT , NEXT sample code for javax.swing.SwingConstants.NEXT definition code for javax.swing.SwingConstants.NEXT , NORTH sample code for javax.swing.SwingConstants.NORTH definition code for javax.swing.SwingConstants.NORTH , NORTH_EAST sample code for javax.swing.SwingConstants.NORTH_EAST definition code for javax.swing.SwingConstants.NORTH_EAST , NORTH_WEST sample code for javax.swing.SwingConstants.NORTH_WEST definition code for javax.swing.SwingConstants.NORTH_WEST , PREVIOUS sample code for javax.swing.SwingConstants.PREVIOUS definition code for javax.swing.SwingConstants.PREVIOUS , RIGHT sample code for javax.swing.SwingConstants.RIGHT definition code for javax.swing.SwingConstants.RIGHT , SOUTH sample code for javax.swing.SwingConstants.SOUTH definition code for javax.swing.SwingConstants.SOUTH , SOUTH_EAST sample code for javax.swing.SwingConstants.SOUTH_EAST definition code for javax.swing.SwingConstants.SOUTH_EAST , SOUTH_WEST sample code for javax.swing.SwingConstants.SOUTH_WEST definition code for javax.swing.SwingConstants.SOUTH_WEST , TOP sample code for javax.swing.SwingConstants.TOP definition code for javax.swing.SwingConstants.TOP , TRAILING sample code for javax.swing.SwingConstants.TRAILING definition code for javax.swing.SwingConstants.TRAILING , VERTICAL sample code for javax.swing.SwingConstants.VERTICAL definition code for javax.swing.SwingConstants.VERTICAL , WEST sample code for javax.swing.SwingConstants.WEST definition code for javax.swing.SwingConstants.WEST
 
Fields inherited from interface java.awt.image.ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver
ABORT sample code for java.awt.image.ImageObserver.ABORT definition code for java.awt.image.ImageObserver.ABORT , ALLBITS sample code for java.awt.image.ImageObserver.ALLBITS definition code for java.awt.image.ImageObserver.ALLBITS , ERROR sample code for java.awt.image.ImageObserver.ERROR definition code for java.awt.image.ImageObserver.ERROR , FRAMEBITS sample code for java.awt.image.ImageObserver.FRAMEBITS definition code for java.awt.image.ImageObserver.FRAMEBITS , HEIGHT sample code for java.awt.image.ImageObserver.HEIGHT definition code for java.awt.image.ImageObserver.HEIGHT , PROPERTIES sample code for java.awt.image.ImageObserver.PROPERTIES definition code for java.awt.image.ImageObserver.PROPERTIES , SOMEBITS sample code for java.awt.image.ImageObserver.SOMEBITS definition code for java.awt.image.ImageObserver.SOMEBITS , WIDTH sample code for java.awt.image.ImageObserver.WIDTH definition code for java.awt.image.ImageObserver.WIDTH
 
Constructor Summary
DefaultTreeCellRenderer sample code for javax.swing.tree.DefaultTreeCellRenderer.DefaultTreeCellRenderer() definition code for javax.swing.tree.DefaultTreeCellRenderer.DefaultTreeCellRenderer() ()
          Returns a new instance of DefaultTreeCellRenderer.
 
Method Summary
 void firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, boolean, boolean) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, boolean, boolean) (String sample code for java.lang.String definition code for java.lang.String  propertyName, boolean oldValue, boolean newValue)
          Overridden for performance reasons.
 void firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, byte, byte) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, byte, byte) (String sample code for java.lang.String definition code for java.lang.String  propertyName, byte oldValue, byte newValue)
          Overridden for performance reasons.
 void firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, char, char) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, char, char) (String sample code for java.lang.String definition code for java.lang.String  propertyName, char oldValue, char newValue)
          Overridden for performance reasons.
 void firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, double, double) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, double, double) (String sample code for java.lang.String definition code for java.lang.String  propertyName, double oldValue, double newValue)
          Overridden for performance reasons.
 void firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, float, float) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, float, float) (String sample code for java.lang.String definition code for java.lang.String  propertyName, float oldValue, float newValue)
          Overridden for performance reasons.
 void firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, int, int) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, int, int) (String sample code for java.lang.String definition code for java.lang.String  propertyName, int oldValue, int newValue)
          Overridden for performance reasons.
 void firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, long, long) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, long, long) (String sample code for java.lang.String definition code for java.lang.String  propertyName, long oldValue, long newValue)
          Overridden for performance reasons.
protected  void firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  propertyName, Object sample code for java.lang.Object definition code for java.lang.Object  oldValue, Object sample code for java.lang.Object definition code for java.lang.Object  newValue)
          Overridden for performance reasons.
 void firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, short, short) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, short, short) (String sample code for java.lang.String definition code for java.lang.String  propertyName, short oldValue, short newValue)
          Overridden for performance reasons.
 Color sample code for java.awt.Color definition code for java.awt.Color getBackgroundNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.getBackgroundNonSelectionColor() definition code for javax.swing.tree.DefaultTreeCellRenderer.getBackgroundNonSelectionColor() ()
          Returns the background color to be used for non selected nodes.
 Color sample code for java.awt.Color definition code for java.awt.Color getBackgroundSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.getBackgroundSelectionColor() definition code for javax.swing.tree.DefaultTreeCellRenderer.getBackgroundSelectionColor() ()
          Returns the color to use for the background if node is selected.
 Color sample code for java.awt.Color definition code for java.awt.Color getBorderSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.getBorderSelectionColor() definition code for javax.swing.tree.DefaultTreeCellRenderer.getBorderSelectionColor() ()
          Returns the color the border is drawn.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getClosedIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getClosedIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getClosedIcon() ()
          Returns the icon used to represent non-leaf nodes that are not expanded.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getDefaultClosedIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultClosedIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultClosedIcon() ()
          Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are not expanded.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getDefaultLeafIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultLeafIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultLeafIcon() ()
          Returns the default icon, for the current laf, that is used to represent leaf nodes.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getDefaultOpenIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultOpenIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultOpenIcon() ()
          Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are expanded.
 Font sample code for java.awt.Font definition code for java.awt.Font getFont sample code for javax.swing.tree.DefaultTreeCellRenderer.getFont() definition code for javax.swing.tree.DefaultTreeCellRenderer.getFont() ()
          Gets the font of this component.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getLeafIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getLeafIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getLeafIcon() ()
          Returns the icon used to represent leaf nodes.
 Icon sample code for javax.swing.Icon definition code for javax.swing.Icon getOpenIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getOpenIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getOpenIcon() ()
          Returns the icon used to represent non-leaf nodes that are expanded.
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getPreferredSize sample code for javax.swing.tree.DefaultTreeCellRenderer.getPreferredSize() definition code for javax.swing.tree.DefaultTreeCellRenderer.getPreferredSize() ()
          Overrides JComponent.getPreferredSize to return slightly wider preferred size value.
 Color sample code for java.awt.Color definition code for java.awt.Color getTextNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.getTextNonSelectionColor() definition code for javax.swing.tree.DefaultTreeCellRenderer.getTextNonSelectionColor() ()
          Returns the color the text is drawn with when the node isn't selected.
 Color sample code for java.awt.Color definition code for java.awt.Color getTextSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.getTextSelectionColor() definition code for javax.swing.tree.DefaultTreeCellRenderer.getTextSelectionColor() ()
          Returns the color the text is drawn with when the node is selected.
 Component sample code for java.awt.Component definition code for java.awt.Component getTreeCellRendererComponent sample code for javax.swing.tree.DefaultTreeCellRenderer.getTreeCellRendererComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int, boolean) definition code for javax.swing.tree.DefaultTreeCellRenderer.getTreeCellRendererComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int, boolean) (JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree, Object sample code for java.lang.Object definition code for java.lang.Object  value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
          Configures the renderer based on the passed in components.
 void invalidate sample code for javax.swing.tree.DefaultTreeCellRenderer.invalidate() definition code for javax.swing.tree.DefaultTreeCellRenderer.invalidate() ()
          Overridden for performance reasons.
 void paint sample code for javax.swing.tree.DefaultTreeCellRenderer.paint(java.awt.Graphics) definition code for javax.swing.tree.DefaultTreeCellRenderer.paint(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
          Paints the value.
 void repaint sample code for javax.swing.tree.DefaultTreeCellRenderer.repaint() definition code for javax.swing.tree.DefaultTreeCellRenderer.repaint() ()
          Overridden for performance reasons.
 void repaint sample code for javax.swing.tree.DefaultTreeCellRenderer.repaint(long, int, int, int, int) definition code for javax.swing.tree.DefaultTreeCellRenderer.repaint(long, int, int, int, int) (long tm, int x, int y, int width, int height)
          Overridden for performance reasons.
 void repaint sample code for javax.swing.tree.DefaultTreeCellRenderer.repaint(java.awt.Rectangle) definition code for javax.swing.tree.DefaultTreeCellRenderer.repaint(java.awt.Rectangle) (Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  r)
          Overridden for performance reasons.
 void revalidate sample code for javax.swing.tree.DefaultTreeCellRenderer.revalidate() definition code for javax.swing.tree.DefaultTreeCellRenderer.revalidate() ()
          Overridden for performance reasons.
 void setBackground sample code for javax.swing.tree.DefaultTreeCellRenderer.setBackground(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setBackground(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  color)
          Subclassed to map ColorUIResources to null.
 void setBackgroundNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.setBackgroundNonSelectionColor(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setBackgroundNonSelectionColor(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  newColor)
          Sets the background color to be used for non selected nodes.
 void setBackgroundSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.setBackgroundSelectionColor(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setBackgroundSelectionColor(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  newColor)
          Sets the color to use for the background if node is selected.
 void setBorderSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.setBorderSelectionColor(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setBorderSelectionColor(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  newColor)
          Sets the color to use for the border.
 void setClosedIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.setClosedIcon(javax.swing.Icon) definition code for javax.swing.tree.DefaultTreeCellRenderer.setClosedIcon(javax.swing.Icon) (Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  newIcon)
          Sets the icon used to represent non-leaf nodes that are not expanded.
 void setFont sample code for javax.swing.tree.DefaultTreeCellRenderer.setFont(java.awt.Font) definition code for javax.swing.tree.DefaultTreeCellRenderer.setFont(java.awt.Font) (Font sample code for java.awt.Font definition code for java.awt.Font  font)
          Subclassed to map FontUIResources to null.
 void setLeafIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.setLeafIcon(javax.swing.Icon) definition code for javax.swing.tree.DefaultTreeCellRenderer.setLeafIcon(javax.swing.Icon) (Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  newIcon)
          Sets the icon used to represent leaf nodes.
 void setOpenIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.setOpenIcon(javax.swing.Icon) definition code for javax.swing.tree.DefaultTreeCellRenderer.setOpenIcon(javax.swing.Icon) (Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  newIcon)
          Sets the icon used to represent non-leaf nodes that are expanded.
 void setTextNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.setTextNonSelectionColor(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setTextNonSelectionColor(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  newColor)
          Sets the color the text is drawn with when the node isn't selected.
 void setTextSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.setTextSelectionColor(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setTextSelectionColor(java.awt.Color) (Color sample code for java.awt.Color definition code for java.awt.Color  newColor)
          Sets the color the text is drawn with when the node is selected.
 void validate sample code for javax.swing.tree.DefaultTreeCellRenderer.validate() definition code for javax.swing.tree.DefaultTreeCellRenderer.validate() ()
          Overridden for performance reasons.
 
Methods inherited from class javax.swing.JLabel sample code for javax.swing.JLabel definition code for javax.swing.JLabel
checkHorizontalKey sample code for javax.swing.JLabel.checkHorizontalKey(int, java.lang.String) definition code for javax.swing.JLabel.checkHorizontalKey(int, java.lang.String) , checkVerticalKey sample code for javax.swing.JLabel.checkVerticalKey(int, java.lang.String) definition code for javax.swing.JLabel.checkVerticalKey(int, java.lang.String) , getAccessibleContext sample code for javax.swing.JLabel.getAccessibleContext() definition code for javax.swing.JLabel.getAccessibleContext() , getDisabledIcon sample code for javax.swing.JLabel.getDisabledIcon() definition code for javax.swing.JLabel.getDisabledIcon() , getDisplayedMnemonic sample code for javax.swing.JLabel.getDisplayedMnemonic() definition code for javax.swing.JLabel.getDisplayedMnemonic() , getDisplayedMnemonicIndex sample code for javax.swing.JLabel.getDisplayedMnemonicIndex() definition code for javax.swing.JLabel.getDisplayedMnemonicIndex() , getHorizontalAlignment sample code for javax.swing.JLabel.getHorizontalAlignment() definition code for javax.swing.JLabel.getHorizontalAlignment() , getHorizontalTextPosition sample code for javax.swing.JLabel.getHorizontalTextPosition() definition code for javax.swing.JLabel.getHorizontalTextPosition() , getIcon sample code for javax.swing.JLabel.getIcon() definition code for javax.swing.JLabel.getIcon() , getIconTextGap sample code for javax.swing.JLabel.getIconTextGap() definition code for javax.swing.JLabel.getIconTextGap() , getLabelFor sample code for javax.swing.JLabel.getLabelFor() definition code for javax.swing.JLabel.getLabelFor() , getText sample code for javax.swing.JLabel.getText() definition code for javax.swing.JLabel.getText() , getUI sample code for javax.swing.JLabel.getUI() definition code for javax.swing.JLabel.getUI() , getUIClassID sample code for javax.swing.JLabel.getUIClassID() definition code for javax.swing.JLabel.getUIClassID() , getVerticalAlignment sample code for javax.swing.JLabel.getVerticalAlignment() definition code for javax.swing.JLabel.getVerticalAlignment() , getVerticalTextPosition sample code for javax.swing.JLabel.getVerticalTextPosition() definition code for javax.swing.JLabel.getVerticalTextPosition() , imageUpdate sample code for javax.swing.JLabel.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for javax.swing.JLabel.imageUpdate(java.awt.Image, int, int, int, int, int) , paramString sample code for javax.swing.JLabel.paramString() definition code for javax.swing.JLabel.paramString() , setDisabledIcon sample code for javax.swing.JLabel.setDisabledIcon(javax.swing.Icon) definition code for javax.swing.JLabel.setDisabledIcon(javax.swing.Icon) , setDisplayedMnemonic sample code for javax.swing.JLabel.setDisplayedMnemonic(char) definition code for javax.swing.JLabel.setDisplayedMnemonic(char) , setDisplayedMnemonic sample code for javax.swing.JLabel.setDisplayedMnemonic(int) definition code for javax.swing.JLabel.setDisplayedMnemonic(int) , setDisplayedMnemonicIndex sample code for javax.swing.JLabel.setDisplayedMnemonicIndex(int) definition code for javax.swing.JLabel.setDisplayedMnemonicIndex(int) , setHorizontalAlignment sample code for javax.swing.JLabel.setHorizontalAlignment(int) definition code for javax.swing.JLabel.setHorizontalAlignment(int) , setHorizontalTextPosition sample code for javax.swing.JLabel.setHorizontalTextPosition(int) definition code for javax.swing.JLabel.setHorizontalTextPosition(int) , setIcon sample code for javax.swing.JLabel.setIcon(javax.swing.Icon) definition code for javax.swing.JLabel.setIcon(javax.swing.Icon) , setIconTextGap sample code for javax.swing.JLabel.setIconTextGap(int) definition code for javax.swing.JLabel.setIconTextGap(int) , setLabelFor sample code for javax.swing.JLabel.setLabelFor(java.awt.Component) definition code for javax.swing.JLabel.setLabelFor(java.awt.Component) , setText sample code for javax.swing.JLabel.setText(java.lang.String) definition code for javax.swing.JLabel.setText(java.lang.String) , setUI sample code for javax.swing.JLabel.setUI(javax.swing.plaf.LabelUI) definition code for javax.swing.JLabel.setUI(javax.swing.plaf.LabelUI) , setVerticalAlignment sample code for javax.swing.JLabel.setVerticalAlignment(int) definition code for javax.swing.JLabel.setVerticalAlignment(int) , setVerticalTextPosition sample code for javax.swing.JLabel.setVerticalTextPosition(int) definition code for javax.swing.JLabel.setVerticalTextPosition(int) , updateUI sample code for javax.swing.JLabel.updateUI() definition code for javax.swing.JLabel.updateUI()
 
Methods inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
addAncestorListener sample code for javax.swing.JComponent.addAncestorListener(javax.swing.event.AncestorListener) definition code for javax.swing.JComponent.addAncestorListener(javax.swing.event.AncestorListener) , addNotify sample code for javax.swing.JComponent.addNotify() definition code for javax.swing.JComponent.addNotify() , addVetoableChangeListener sample code for javax.swing.JComponent.addVetoableChangeListener(java.beans.VetoableChangeListener) definition code for javax.swing.JComponent.addVetoableChangeListener(java.beans.VetoableChangeListener) , computeVisibleRect sample code for javax.swing.JComponent.computeVisibleRect(java.awt.Rectangle) definition code for javax.swing.JComponent.computeVisibleRect(java.awt.Rectangle) , contains sample code for javax.swing.JComponent.contains(int, int) definition code for javax.swing.JComponent.contains(int, int) , createToolTip sample code for javax.swing.JComponent.createToolTip() definition code for javax.swing.JComponent.createToolTip() , disable sample code for javax.swing.JComponent.disable() definition code for javax.swing.JComponent.disable() , enable sample code for javax.swing.JComponent.enable() definition code for javax.swing.JComponent.enable() , fireVetoableChange sample code for javax.swing.JComponent.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for javax.swing.JComponent.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) , getActionForKeyStroke sample code for javax.swing.JComponent.getActionForKeyStroke(javax.swing.KeyStroke) definition code for javax.swing.JComponent.getActionForKeyStroke(javax.swing.KeyStroke) , getActionMap sample code for javax.swing.JComponent.getActionMap() definition code for javax.swing.JComponent.getActionMap() , getAlignmentX sample code for javax.swing.JComponent.getAlignmentX() definition code for javax.swing.JComponent.getAlignmentX() , getAlignmentY sample code for javax.swing.JComponent.getAlignmentY() definition code for javax.swing.JComponent.getAlignmentY() , getAncestorListeners sample code for javax.swing.JComponent.getAncestorListeners() definition code for javax.swing.JComponent.getAncestorListeners() , getAutoscrolls sample code for javax.swing.JComponent.getAutoscrolls() definition code for javax.swing.JComponent.getAutoscrolls() , getBorder sample code for javax.swing.JComponent.getBorder() definition code for javax.swing.JComponent.getBorder() , getBounds sample code for javax.swing.JComponent.getBounds(java.awt.Rectangle) definition code for javax.swing.JComponent.getBounds(java.awt.Rectangle) , getClientProperty sample code for javax.swing.JComponent.getClientProperty(java.lang.Object) definition code for javax.swing.JComponent.getClientProperty(java.lang.Object) , getComponentGraphics sample code for javax.swing.JComponent.getComponentGraphics(java.awt.Graphics) definition code for javax.swing.JComponent.getComponentGraphics(java.awt.Graphics) , getComponentPopupMenu sample code for javax.swing.JComponent.getComponentPopupMenu() definition code for javax.swing.JComponent.getComponentPopupMenu() , getConditionForKeyStroke sample code for javax.swing.JComponent.getConditionForKeyStroke(javax.swing.KeyStroke) definition code for javax.swing.JComponent.getConditionForKeyStroke(javax.swing.KeyStroke) , getDebugGraphicsOptions sample code for javax.swing.JComponent.getDebugGraphicsOptions() definition code for javax.swing.JComponent.getDebugGraphicsOptions() , getDefaultLocale sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale() , getFontMetrics sample code for javax.swing.JComponent.getFontMetrics(java.awt.Font) definition code for javax.swing.JComponent.getFontMetrics(java.awt.Font) , getGraphics sample code for javax.swing.JComponent.getGraphics() definition code for javax.swing.JComponent.getGraphics() , getHeight sample code for javax.swing.JComponent.getHeight() definition code for javax.swing.JComponent.getHeight() , getInheritsPopupMenu sample code for javax.swing.JComponent.getInheritsPopupMenu() definition code for javax.swing.JComponent.getInheritsPopupMenu() , getInputMap sample code for javax.swing.JComponent.getInputMap() definition code for javax.swing.JComponent.getInputMap() , getInputMap sample code for javax.swing.JComponent.getInputMap(int) definition code for javax.swing.JComponent.getInputMap(int) , getInputVerifier sample code for javax.swing.JComponent.getInputVerifier() definition code for javax.swing.JComponent.getInputVerifier() , getInsets sample code for javax.swing.JComponent.getInsets() definition code for javax.swing.JComponent.getInsets() , getInsets sample code for javax.swing.JComponent.getInsets(java.awt.Insets) definition code for javax.swing.JComponent.getInsets(java.awt.Insets) , getListeners sample code for javax.swing.JComponent.getListeners(java.lang.Class) definition code for javax.swing.JComponent.getListeners(java.lang.Class) , getLocation sample code for javax.swing.JComponent.getLocation(java.awt.Point) definition code for javax.swing.JComponent.getLocation(java.awt.Point) , getMaximumSize sample code for javax.swing.JComponent.getMaximumSize() definition code for javax.swing.JComponent.getMaximumSize() , getMinimumSize sample code for javax.swing.JComponent.getMinimumSize() definition code for javax.swing.JComponent.getMinimumSize() , getNextFocusableComponent sample code for javax.swing.JComponent.getNextFocusableComponent() definition code for javax.swing.JComponent.getNextFocusableComponent() , getPopupLocation sample code for javax.swing.JComponent.getPopupLocation(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getPopupLocation(java.awt.event.MouseEvent) , getRegisteredKeyStrokes sample code for javax.swing.JComponent.getRegisteredKeyStrokes() definition code for javax.swing.JComponent.getRegisteredKeyStrokes() , getRootPane sample code for javax.swing.JComponent.getRootPane() definition code for javax.swing.JComponent.getRootPane() , getSize sample code for javax.swing.JComponent.getSize(java.awt.Dimension) definition code for javax.swing.JComponent.getSize(java.awt.Dimension) , getToolTipLocation sample code for javax.swing.JComponent.getToolTipLocation(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getToolTipLocation(java.awt.event.MouseEvent) , getToolTipText sample code for javax.swing.JComponent.getToolTipText() definition code for javax.swing.JComponent.getToolTipText() , getToolTipText sample code for javax.swing.JComponent.getToolTipText(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getToolTipText(java.awt.event.MouseEvent) , getTopLevelAncestor sample code for javax.swing.JComponent.getTopLevelAncestor() definition code for javax.swing.JComponent.getTopLevelAncestor() , getTransferHandler sample code for javax.swing.JComponent.getTransferHandler() definition code for javax.swing.JComponent.getTransferHandler() , getVerifyInputWhenFocusTarget sample code for javax.swing.JComponent.getVerifyInputWhenFocusTarget() definition code for javax.swing.JComponent.getVerifyInputWhenFocusTarget() , getVetoableChangeListeners sample code for javax.swing.JComponent.getVetoableChangeListeners() definition code for javax.swing.JComponent.getVetoableChangeListeners() , getVisibleRect sample code for javax.swing.JComponent.getVisibleRect() definition code for javax.swing.JComponent.getVisibleRect() , getWidth sample code for javax.swing.JComponent.getWidth() definition code for javax.swing.JComponent.getWidth() , getX sample code for javax.swing.JComponent.getX() definition code for javax.swing.JComponent.getX() , getY sample code for javax.swing.JComponent.getY() definition code for javax.swing.JComponent.getY() , grabFocus sample code for javax.swing.JComponent.grabFocus() definition code for javax.swing.JComponent.grabFocus() , isDoubleBuffered sample code for javax.swing.JComponent.isDoubleBuffered() definition code for javax.swing.JComponent.isDoubleBuffered() , isLightweightComponent sample code for javax.swing.JComponent.isLightweightComponent(java.awt.Component) definition code for javax.swing.JComponent.isLightweightComponent(java.awt.Component) , isManagingFocus sample code for javax.swing.JComponent.isManagingFocus() definition code for javax.swing.JComponent.isManagingFocus() , isOpaque sample code for javax.swing.JComponent.isOpaque() definition code for javax.swing.JComponent.isOpaque() , isOptimizedDrawingEnabled sample code for javax.swing.JComponent.isOptimizedDrawingEnabled() definition code for javax.swing.JComponent.isOptimizedDrawingEnabled() , isPaintingTile sample code for javax.swing.JComponent.isPaintingTile() definition code for javax.swing.JComponent.isPaintingTile() , isRequestFocusEnabled sample code for javax.swing.JComponent.isRequestFocusEnabled() definition code for javax.swing.JComponent.isRequestFocusEnabled() , isValidateRoot sample code for javax.swing.JComponent.isValidateRoot() definition code for javax.swing.JComponent.isValidateRoot() , paintBorder sample code for javax.swing.JComponent.paintBorder(java.awt.Graphics) definition code for javax.swing.JComponent.paintBorder(java.awt.Graphics) , paintChildren sample code for javax.swing.JComponent.paintChildren(java.awt.Graphics) definition code for javax.swing.JComponent.paintChildren(java.awt.Graphics) , paintComponent sample code for javax.swing.JComponent.paintComponent(java.awt.Graphics) definition code for javax.swing.JComponent.paintComponent(java.awt.Graphics) , paintImmediately sample code for javax.swing.JComponent.paintImmediately(int, int, int, int) definition code for javax.swing.JComponent.paintImmediately(int, int, int, int) , paintImmediately sample code for javax.swing.JComponent.paintImmediately(java.awt.Rectangle) definition code for javax.swing.JComponent.paintImmediately(java.awt.Rectangle) , print sample code for javax.swing.JComponent.print(java.awt.Graphics) definition code for javax.swing.JComponent.print(java.awt.Graphics) , printAll sample code for javax.swing.JComponent.printAll(java.awt.Graphics) definition code for javax.swing.JComponent.printAll(java.awt.Graphics) , printBorder sample code for javax.swing.JComponent.printBorder(java.awt.Graphics) definition code for javax.swing.JComponent.printBorder(java.awt.Graphics) , printChildren sample code for javax.swing.JComponent.printChildren(java.awt.Graphics) definition code for javax.swing.JComponent.printChildren(java.awt.Graphics) , printComponent sample code for javax.swing.JComponent.printComponent(java.awt.Graphics) definition code for javax.swing.JComponent.printComponent(java.awt.Graphics) , processComponentKeyEvent sample code for javax.swing.JComponent.processComponentKeyEvent(java.awt.event.KeyEvent) definition code for javax.swing.JComponent.processComponentKeyEvent(java.awt.event.KeyEvent) , processKeyBinding sample code for javax.swing.JComponent.processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean) definition code for javax.swing.JComponent.processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean) , processKeyEvent sample code for javax.swing.JComponent.processKeyEvent(java.awt.event.KeyEvent) definition code for javax.swing.JComponent.processKeyEvent(java.awt.event.KeyEvent) , processMouseEvent sample code for javax.swing.JComponent.processMouseEvent(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.processMouseEvent(java.awt.event.MouseEvent) , processMouseMotionEvent sample code for javax.swing.JComponent.processMouseMotionEvent(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.processMouseMotionEvent(java.awt.event.MouseEvent) , putClientProperty sample code for javax.swing.JComponent.putClientProperty(java.lang.Object, java.lang.Object) definition code for javax.swing.JComponent.putClientProperty(java.lang.Object, java.lang.Object) , registerKeyboardAction sample code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int) definition code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int) , registerKeyboardAction sample code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int) definition code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int) , removeAncestorListener sample code for javax.swing.JComponent.removeAncestorListener(javax.swing.event.AncestorListener) definition code for javax.swing.JComponent.removeAncestorListener(javax.swing.event.AncestorListener) , removeNotify sample code for javax.swing.JComponent.removeNotify() definition code for javax.swing.JComponent.removeNotify() , removeVetoableChangeListener sample code for javax.swing.JComponent.removeVetoableChangeListener(java.beans.VetoableChangeListener) definition code for javax.swing.JComponent.removeVetoableChangeListener(java.beans.VetoableChangeListener) , requestDefaultFocus sample code for javax.swing.JComponent.requestDefaultFocus() definition code for javax.swing.JComponent.requestDefaultFocus() , requestFocus sample code for javax.swing.JComponent.requestFocus() definition code for javax.swing.JComponent.requestFocus() , requestFocus sample code for javax.swing.JComponent.requestFocus(boolean) definition code for javax.swing.JComponent.requestFocus(boolean) , requestFocusInWindow sample code for javax.swing.JComponent.requestFocusInWindow() definition code for javax.swing.JComponent.requestFocusInWindow() , requestFocusInWindow sample code for javax.swing.JComponent.requestFocusInWindow(boolean) definition code for javax.swing.JComponent.requestFocusInWindow(boolean) , resetKeyboardActions sample code for javax.swing.JComponent.resetKeyboardActions() definition code for javax.swing.JComponent.resetKeyboardActions() , reshape sample code for javax.swing.JComponent.reshape(int, int, int, int) definition code for javax.swing.JComponent.reshape(int, int, int, int) , scrollRectToVisible sample code for javax.swing.JComponent.scrollRectToVisible(java.awt.Rectangle) definition code for javax.swing.JComponent.scrollRectToVisible(java.awt.Rectangle) , setActionMap sample code for javax.swing.JComponent.setActionMap(javax.swing.ActionMap) definition code for javax.swing.JComponent.setActionMap(javax.swing.ActionMap) , setAlignmentX sample code for javax.swing.JComponent.setAlignmentX(float) definition code for javax.swing.JComponent.setAlignmentX(float) , setAlignmentY sample code for javax.swing.JComponent.setAlignmentY(float) definition code for javax.swing.JComponent.setAlignmentY(float) , setAutoscrolls sample code for javax.swing.JComponent.setAutoscrolls(boolean) definition code for javax.swing.JComponent.setAutoscrolls(boolean) , setBorder sample code for javax.swing.JComponent.setBorder(javax.swing.border.Border) definition code for javax.swing.JComponent.setBorder(javax.swing.border.Border) , setComponentPopupMenu sample code for javax.swing.JComponent.setComponentPopupMenu(javax.swing.JPopupMenu) definition code for javax.swing.JComponent.setComponentPopupMenu(javax.swing.JPopupMenu) , setDebugGraphicsOptions sample code for javax.swing.JComponent.setDebugGraphicsOptions(int) definition code for javax.swing.JComponent.setDebugGraphicsOptions(int) , setDefaultLocale sample code for javax.swing.JComponent.setDefaultLocale(java.util.Locale) definition code for javax.swing.JComponent.setDefaultLocale(java.util.Locale) , setDoubleBuffered sample code for javax.swing.JComponent.setDoubleBuffered(boolean) definition code for javax.swing.JComponent.setDoubleBuffered(boolean) , setEnabled sample code for javax.swing.JComponent.setEnabled(boolean) definition code for javax.swing.JComponent.setEnabled(boolean) , setFocusTraversalKeys sample code for javax.swing.JComponent.setFocusTraversalKeys(int, java.util.Set) definition code for javax.swing.JComponent.setFocusTraversalKeys(int, java.util.Set) , setForeground sample code for javax.swing.JComponent.setForeground(java.awt.Color) definition code for javax.swing.JComponent.setForeground(java.awt.Color) , setInheritsPopupMenu sample code for javax.swing.JComponent.setInheritsPopupMenu(boolean) definition code for javax.swing.JComponent.setInheritsPopupMenu(boolean) , setInputMap sample code for javax.swing.JComponent.setInputMap(int, javax.swing.InputMap) definition code for javax.swing.JComponent.setInputMap(int, javax.swing.InputMap) , setInputVerifier sample code for javax.swing.JComponent.setInputVerifier(javax.swing.InputVerifier) definition code for javax.swing.JComponent.setInputVerifier(javax.swing.InputVerifier) , setMaximumSize sample code for javax.swing.JComponent.setMaximumSize(java.awt.Dimension) definition code for javax.swing.JComponent.setMaximumSize(java.awt.Dimension) , setMinimumSize sample code for javax.swing.JComponent.setMinimumSize(java.awt.Dimension) definition code for javax.swing.JComponent.setMinimumSize(java.awt.Dimension) , setNextFocusableComponent sample code for javax.swing.JComponent.setNextFocusableComponent(java.awt.Component) definition code for javax.swing.JComponent.setNextFocusableComponent(java.awt.Component) , setOpaque sample code for javax.swing.JComponent.setOpaque(boolean) definition code for javax.swing.JComponent.setOpaque(boolean) , setPreferredSize sample code for javax.swing.JComponent.setPreferredSize(java.awt.Dimension) definition code for javax.swing.JComponent.setPreferredSize(java.awt.Dimension) , setRequestFocusEnabled sample code for javax.swing.JComponent.setRequestFocusEnabled(boolean) definition code for javax.swing.JComponent.setRequestFocusEnabled(boolean) , setToolTipText sample code for javax.swing.JComponent.setToolTipText(java.lang.String) definition code for javax.swing.JComponent.setToolTipText(java.lang.String) , setTransferHandler sample code for javax.swing.JComponent.setTransferHandler(javax.swing.TransferHandler) definition code for javax.swing.JComponent.setTransferHandler(javax.swing.TransferHandler) , setUI sample code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) definition code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) , setVerifyInputWhenFocusTarget sample code for javax.swing.JComponent.setVerifyInputWhenFocusTarget(boolean) definition code for javax.swing.JComponent.setVerifyInputWhenFocusTarget(boolean) , setVisible sample code for javax.swing.JComponent.setVisible(boolean) definition code for javax.swing.JComponent.setVisible(boolean) , unregisterKeyboardAction sample code for javax.swing.JComponent.unregisterKeyboardAction(javax.swing.KeyStroke) definition code for javax.swing.JComponent.unregisterKeyboardAction(javax.swing.KeyStroke) , update sample code for javax.swing.JComponent.update(java.awt.Graphics) definition code for javax.swing.JComponent.update(java.awt.Graphics)
 
Methods inherited from class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container
add sample code for java.awt.Container.add(java.awt.Component) definition code for java.awt.Container.add(java.awt.Component) , add sample code for java.awt.Container.add(java.awt.Component, int) definition code for java.awt.Container.add(java.awt.Component, int) , add sample code for java.awt.Container.add(java.awt.Component, java.lang.Object) definition code for java.awt.Container.add(java.awt.Component, java.lang.Object) , add sample code for java.awt.Container.add(java.awt.Component, java.lang.Object, int) definition code for java.awt.Container.add(java.awt.Component, java.lang.Object, int) , add sample code for java.awt.Container.add(java.lang.String, java.awt.Component) definition code for java.awt.Container.add(java.lang.String, java.awt.Component) , addContainerListener sample code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) , addImpl sample code for java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int) definition code for java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int) , addPropertyChangeListener sample code for java.awt.Container.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Container.addPropertyChangeListener(java.beans.PropertyChangeListener) , addPropertyChangeListener sample code for java.awt.Container.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.Container.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , applyComponentOrientation sample code for java.awt.Container.applyComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Container.applyComponentOrientation(java.awt.ComponentOrientation) , areFocusTraversalKeysSet sample code for java.awt.Container.areFocusTraversalKeysSet(int) definition code for java.awt.Container.areFocusTraversalKeysSet(int) , countComponents sample code for java.awt.Container.countComponents() definition code for java.awt.Container.countComponents() , deliverEvent sample code for java.awt.Container.deliverEvent(java.awt.Event) definition code for java.awt.Container.deliverEvent(java.awt.Event) , doLayout sample code for java.awt.Container.doLayout() definition code for java.awt.Container.doLayout() , findComponentAt sample code for java.awt.Container.findComponentAt(int, int) definition code for java.awt.Container.findComponentAt(int, int) , findComponentAt sample code for java.awt.Container.findComponentAt(java.awt.Point) definition code for java.awt.Container.findComponentAt(java.awt.Point) , getComponent sample code for java.awt.Container.getComponent(int) definition code for java.awt.Container.getComponent(int) , getComponentAt sample code for java.awt.Container.getComponentAt(int, int) definition code for java.awt.Container.getComponentAt(int, int) , getComponentAt sample code for java.awt.Container.getComponentAt(java.awt.Point) definition code for java.awt.Container.getComponentAt(java.awt.Point) , getComponentCount sample code for java.awt.Container.getComponentCount() definition code for java.awt.Container.getComponentCount() , getComponents sample code for java.awt.Container.getComponents() definition code for java.awt.Container.getComponents() , getComponentZOrder sample code for java.awt.Container.getComponentZOrder(java.awt.Component) definition code for java.awt.Container.getComponentZOrder(java.awt.Component) , getContainerListeners sample code for java.awt.Container.getContainerListeners() definition code for java.awt.Container.getContainerListeners() , getFocusTraversalKeys sample code for java.awt.Container.getFocusTraversalKeys(int) definition code for java.awt.Container.getFocusTraversalKeys(int) , getFocusTraversalPolicy sample code for java.awt.Container.getFocusTraversalPolicy() definition code for java.awt.Container.getFocusTraversalPolicy() , getLayout sample code for java.awt.Container.getLayout() definition code for java.awt.Container.getLayout() , getMousePosition sample code for java.awt.Container.getMousePosition(boolean) definition code for java.awt.Container.getMousePosition(boolean) , insets sample code for java.awt.Container.insets() definition code for java.awt.Container.insets() , isAncestorOf sample code for java.awt.Container.isAncestorOf(java.awt.Component) definition code for java.awt.Container.isAncestorOf(java.awt.Component) , isFocusCycleRoot sample code for java.awt.Container.isFocusCycleRoot() definition code for java.awt.Container.isFocusCycleRoot() , isFocusCycleRoot sample code for java.awt.Container.isFocusCycleRoot(java.awt.Container) definition code for java.awt.Container.isFocusCycleRoot(java.awt.Container) , isFocusTraversalPolicyProvider sample code for java.awt.Container.isFocusTraversalPolicyProvider() definition code for java.awt.Container.isFocusTraversalPolicyProvider() , isFocusTraversalPolicySet sample code for java.awt.Container.isFocusTraversalPolicySet() definition code for java.awt.Container.isFocusTraversalPolicySet() , layout sample code for java.awt.Container.layout() definition code for java.awt.Container.layout() , list sample code for java.awt.Container.list(java.io.PrintStream, int) definition code for java.awt.Container.list(java.io.PrintStream, int) , list sample code for java.awt.Container.list(java.io.PrintWriter, int) definition code for java.awt.Container.list(java.io.PrintWriter, int) , locate sample code for java.awt.Container.locate(int, int) definition code for java.awt.Container.locate(int, int) , minimumSize sample code for java.awt.Container.minimumSize() definition code for java.awt.Container.minimumSize() , paintComponents sample code for java.awt.Container.paintComponents(java.awt.Graphics) definition code for java.awt.Container.paintComponents(java.awt.Graphics) , preferredSize sample code for java.awt.Container.preferredSize() definition code for java.awt.Container.preferredSize() , printComponents sample code for java.awt.Container.printComponents(java.awt.Graphics) definition code for java.awt.Container.printComponents(java.awt.Graphics) , processContainerEvent sample code for java.awt.Container.processContainerEvent(java.awt.event.ContainerEvent) definition code for java.awt.Container.processContainerEvent(java.awt.event.ContainerEvent) , processEvent sample code for java.awt.Container.processEvent(java.awt.AWTEvent) definition code for java.awt.Container.processEvent(java.awt.AWTEvent) , remove sample code for java.awt.Container.remove(java.awt.Component) definition code for java.awt.Container.remove(java.awt.Component) , remove sample code for java.awt.Container.remove(int) definition code for java.awt.Container.remove(int) , removeAll sample code for java.awt.Container.removeAll() definition code for java.awt.Container.removeAll() , removeContainerListener sample code for java.awt.Container.removeContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.removeContainerListener(java.awt.event.ContainerListener) , setComponentZOrder sample code for java.awt.Container.setComponentZOrder(java.awt.Component, int) definition code for java.awt.Container.setComponentZOrder(java.awt.Component, int) , setFocusCycleRoot sample code for java.awt.Container.setFocusCycleRoot(boolean) definition code for java.awt.Container.setFocusCycleRoot(boolean) , setFocusTraversalPolicy sample code for java.awt.Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy) definition code for java.awt.Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy) , setFocusTraversalPolicyProvider sample code for java.awt.Container.setFocusTraversalPolicyProvider(boolean) definition code for java.awt.Container.setFocusTraversalPolicyProvider(boolean) , setLayout sample code for java.awt.Container.setLayout(java.awt.LayoutManager) definition code for java.awt.Container.setLayout(java.awt.LayoutManager) , transferFocusBackward sample code for java.awt.Container.transferFocusBackward() definition code for java.awt.Container.transferFocusBackward() , transferFocusDownCycle sample code for java.awt.Container.transferFocusDownCycle() definition code for java.awt.Container.transferFocusDownCycle() , validateTree sample code for java.awt.Container.validateTree() definition code for java.awt.Container.validateTree()
 
Methods inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
action sample code for java.awt.Component.action(java.awt.Event, java.lang.Object) definition code for java.awt.Component.action(java.awt.Event, java.lang.Object) , add sample code for java.awt.Component.add(java.awt.PopupMenu) definition code for java.awt.Component.add(java.awt.PopupMenu) , addComponentListener sample code for java.awt.Component.addComponentListener(java.awt.event.ComponentListener) definition code for java.awt.Component.addComponentListener(java.awt.event.ComponentListener) , addFocusListener sample code for java.awt.Component.addFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.addFocusListener(java.awt.event.FocusListener) , addHierarchyBoundsListener sample code for java.awt.Component.addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) definition code for java.awt.Component.addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) , addHierarchyListener sample code for java.awt.Component.addHierarchyListener(java.awt.event.HierarchyListener) definition code for java.awt.Component.addHierarchyListener(java.awt.event.HierarchyListener) , addInputMethodListener sample code for java.awt.Component.addInputMethodListener(java.awt.event.InputMethodListener) definition code for java.awt.Component.addInputMethodListener(java.awt.event.InputMethodListener) , addKeyListener sample code for java.awt.Component.addKeyListener(java.awt.event.KeyListener) definition code for java.awt.Component.addKeyListener(java.awt.event.KeyListener) , addMouseListener sample code for java.awt.Component.addMouseListener(java.awt.event.MouseListener) definition code for java.awt.Component.addMouseListener(java.awt.event.MouseListener) , addMouseMotionListener sample code for java.awt.Component.addMouseMotionListener(java.awt.event.MouseMotionListener) definition code for java.awt.Component.addMouseMotionListener(java.awt.event.MouseMotionListener) , addMouseWheelListener sample code for java.awt.Component.addMouseWheelListener(java.awt.event.MouseWheelListener) definition code for java.awt.Component.addMouseWheelListener(java.awt.event.MouseWheelListener) , bounds sample code for java.awt.Component.bounds() definition code for java.awt.Component.bounds() , checkImage sample code for java.awt.Component.checkImage(java.awt.Image, java.awt.image.ImageObserver) definition code for java.awt.Component.checkImage(java.awt.Image, java.awt.image.ImageObserver) , checkImage sample code for java.awt.Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver) , coalesceEvents sample code for java.awt.Component.coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent) definition code for java.awt.Component.coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent) , contains sample code for java.awt.Component.contains(java.awt.Point) definition code for java.awt.Component.contains(java.awt.Point) , createImage sample code for java.awt.Component.createImage(java.awt.image.ImageProducer) definition code for java.awt.Component.createImage(java.awt.image.ImageProducer) , createImage sample code for java.awt.Component.createImage(int, int) definition code for java.awt.Component.createImage(int, int) , createVolatileImage sample code for java.awt.Component.createVolatileImage(int, int) definition code for java.awt.Component.createVolatileImage(int, int) , createVolatileImage sample code for java.awt.Component.createVolatileImage(int, int, java.awt.ImageCapabilities) definition code for java.awt.Component.createVolatileImage(int, int, java.awt.ImageCapabilities) , disableEvents sample code for java.awt.Component.disableEvents(long) definition code for java.awt.Component.disableEvents(long) , dispatchEvent sample code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) , enable sample code for java.awt.Component.enable(boolean) definition code for java.awt.Component.enable(boolean) , enableEvents sample code for java.awt.Component.enableEvents(long) definition code for java.awt.Component.enableEvents(long) , enableInputMethods sample code for java.awt.Component.enableInputMethods(boolean) definition code for java.awt.Component.enableInputMethods(boolean) , getBackground sample code for java.awt.Component.getBackground() definition code for java.awt.Component.getBackground() , getBounds sample code for java.awt.Component.getBounds() definition code for java.awt.Component.getBounds() , getColorModel sample code for java.awt.Component.getColorModel() definition code for java.awt.Component.getColorModel() , getComponentListeners sample code for java.awt.Component.getComponentListeners() definition code for java.awt.Component.getComponentListeners() , getComponentOrientation sample code for java.awt.Component.getComponentOrientation() definition code for java.awt.Component.getComponentOrientation() , getCursor sample code for java.awt.Component.getCursor() definition code for java.awt.Component.getCursor() , getDropTarget sample code for java.awt.Component.getDropTarget() definition code for java.awt.Component.getDropTarget() , getFocusCycleRootAncestor sample code for java.awt.Component.getFocusCycleRootAncestor() definition code for java.awt.Component.getFocusCycleRootAncestor() , getFocusListeners sample code for java.awt.Component.getFocusListeners() definition code for java.awt.Component.getFocusListeners() , getFocusTraversalKeysEnabled sample code for java.awt.Component.getFocusTraversalKeysEnabled() definition code for java.awt.Component.getFocusTraversalKeysEnabled() , getForeground sample code for java.awt.Component.getForeground() definition code for java.awt.Component.getForeground() , getGraphicsConfiguration sample code for java.awt.Component.getGraphicsConfiguration() definition code for java.awt.Component.getGraphicsConfiguration() , getHierarchyBoundsListeners sample code for java.awt.Component.getHierarchyBoundsListeners() definition code for java.awt.Component.getHierarchyBoundsListeners() , getHierarchyListeners sample code for java.awt.Component.getHierarchyListeners() definition code for java.awt.Component.getHierarchyListeners() , getIgnoreRepaint sample code for java.awt.Component.getIgnoreRepaint() definition code for java.awt.Component.getIgnoreRepaint() , getInputContext sample code for java.awt.Component.getInputContext() definition code for java.awt.Component.getInputContext() , getInputMethodListeners sample code for java.awt.Component.getInputMethodListeners() definition code for java.awt.Component.getInputMethodListeners() , getInputMethodRequests sample code for java.awt.Component.getInputMethodRequests() definition code for java.awt.Component.getInputMethodRequests() , getKeyListeners sample code for java.awt.Component.getKeyListeners() definition code for java.awt.Component.getKeyListeners() , getLocale sample code for java.awt.Component.getLocale() definition code for java.awt.Component.getLocale() , getLocation sample code for java.awt.Component.getLocation() definition code for java.awt.Component.getLocation() , getLocationOnScreen sample code for java.awt.Component.getLocationOnScreen() definition code for java.awt.Component.getLocationOnScreen() , getMouseListeners sample code for java.awt.Component.getMouseListeners() definition code for java.awt.Component.getMouseListeners() , getMouseMotionListeners sample code for java.awt.Component.getMouseMotionListeners() definition code for java.awt.Component.getMouseMotionListeners() , getMousePosition sample code for java.awt.Component.getMousePosition() definition code for java.awt.Component.getMousePosition() , getMouseWheelListeners sample code for java.awt.Component.getMouseWheelListeners() definition code for java.awt.Component.getMouseWheelListeners() , getName sample code for java.awt.Component.getName() definition code for java.awt.Component.getName() , getParent sample code for java.awt.Component.getParent() definition code for java.awt.Component.getParent() , getPeer sample code for java.awt.Component.getPeer() definition code for java.awt.Component.getPeer() , getPropertyChangeListeners sample code for java.awt.Component.getPropertyChangeListeners() definition code for java.awt.Component.getPropertyChangeListeners() , getPropertyChangeListeners sample code for java.awt.Component.getPropertyChangeListeners(java.lang.String) definition code for java.awt.Component.getPropertyChangeListeners(java.lang.String) , getSize sample code for java.awt.Component.getSize() definition code for java.awt.Component.getSize() , getToolkit sample code for java.awt.Component.getToolkit() definition code for java.awt.Component.getToolkit() , getTreeLock sample code for java.awt.Component.getTreeLock() definition code for java.awt.Component.getTreeLock() , gotFocus sample code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) , handleEvent sample code for java.awt.Component.handleEvent(java.awt.Event) definition code for java.awt.Component.handleEvent(java.awt.Event) , hasFocus sample code for java.awt.Component.hasFocus() definition code for java.awt.Component.hasFocus() , hide sample code for java.awt.Component.hide() definition code for java.awt.Component.hide() , inside sample code for java.awt.Component.inside(int, int) definition code for java.awt.Component.inside(int, int) , isBackgroundSet sample code for java.awt.Component.isBackgroundSet() definition code for java.awt.Component.isBackgroundSet() , isCursorSet sample code for java.awt.Component.isCursorSet() definition code for java.awt.Component.isCursorSet() , isDisplayable sample code for java.awt.Component.isDisplayable() definition code for java.awt.Component.isDisplayable() , isEnabled sample code for java.awt.Component.isEnabled() definition code for java.awt.Component.isEnabled() , isFocusable sample code for java.awt.Component.isFocusable() definition code for java.awt.Component.isFocusable() , isFocusOwner sample code for java.awt.Component.isFocusOwner() definition code for java.awt.Component.isFocusOwner() , isFocusTraversable sample code for java.awt.Component.isFocusTraversable() definition code for java.awt.Component.isFocusTraversable() , isFontSet sample code for java.awt.Component.isFontSet() definition code for java.awt.Component.isFontSet() , isForegroundSet sample code for java.awt.Component.isForegroundSet() definition code for java.awt.Component.isForegroundSet() , isLightweight sample code for java.awt.Component.isLightweight() definition code for java.awt.Component.isLightweight() , isMaximumSizeSet sample code for java.awt.Component.isMaximumSizeSet() definition code for java.awt.Component.isMaximumSizeSet() , isMinimumSizeSet sample code for java.awt.Component.isMinimumSizeSet() definition code for java.awt.Component.isMinimumSizeSet() , isPreferredSizeSet sample code for java.awt.Component.isPreferredSizeSet() definition code for java.awt.Component.isPreferredSizeSet() , isShowing sample code for java.awt.Component.isShowing() definition code for java.awt.Component.isShowing() , isValid sample code for java.awt.Component.isValid() definition code for java.awt.Component.isValid() , isVisible sample code for java.awt.Component.isVisible() definition code for java.awt.Component.isVisible() , keyDown sample code for java.awt.Component.keyDown(java.awt.Event, int) definition code for java.awt.Component.keyDown(java.awt.Event, int) , keyUp sample code for java.awt.Component.keyUp(java.awt.Event, int) definition code for java.awt.Component.keyUp(java.awt.Event, int) , list sample code for java.awt.Component.list() definition code for java.awt.Component.list() , list sample code for java.awt.Component.list(java.io.PrintStream) definition code for java.awt.Component.list(java.io.PrintStream) , list sample code for java.awt.Component.list(java.io.PrintWriter) definition code for java.awt.Component.list(java.io.PrintWriter) , location sample code for java.awt.Component.location() definition code for java.awt.Component.location() , lostFocus sample code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) , mouseDown sample code for java.awt.Component.mouseDown(java.awt.Event, int, int) definition code for java.awt.Component.mouseDown(java.awt.Event, int, int) , mouseDrag sample code for java.awt.Component.mouseDrag(java.awt.Event, int, int) definition code for java.awt.Component.mouseDrag(java.awt.Event, int, int) , mouseEnter sample code for java.awt.Component.mouseEnter(java.awt.Event, int, int) definition code for java.awt.Component.mouseEnter(java.awt.Event, int, int) , mouseExit sample code for java.awt.Component.mouseExit(java.awt.Event, int, int) definition code for java.awt.Component.mouseExit(java.awt.Event, int, int) , mouseMove sample code for java.awt.Component.mouseMove(java.awt.Event, int, int) definition code for java.awt.Component.mouseMove(java.awt.Event, int, int) , mouseUp sample code for java.awt.Component.mouseUp(java.awt.Event, int, int) definition code for java.awt.Component.mouseUp(java.awt.Event, int, int) , move sample code for java.awt.Component.move(int, int) definition code for java.awt.Component.move(int, int) , nextFocus sample code for java.awt.Component.nextFocus() definition code for java.awt.Component.nextFocus() , paintAll sample code for java.awt.Component.paintAll(java.awt.Graphics) definition code for java.awt.Component.paintAll(java.awt.Graphics) , postEvent sample code for java.awt.Component.postEvent(java.awt.Event) definition code for java.awt.Component.postEvent(java.awt.Event) , prepareImage sample code for java.awt.Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver) definition code for java.awt.Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver) , prepareImage sample code for java.awt.Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver) , processComponentEvent sample code for java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent) definition code for java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent) , processFocusEvent sample code for java.awt.Component.processFocusEvent(java.awt.event.FocusEvent) definition code for java.awt.Component.processFocusEvent(java.awt.event.FocusEvent) , processHierarchyBoundsEvent sample code for java.awt.Component.processHierarchyBoundsEvent(java.awt.event.HierarchyEvent) definition code for java.awt.Component.processHierarchyBoundsEvent(java.awt.event.HierarchyEvent) , processHierarchyEvent sample code for java.awt.Component.processHierarchyEvent(java.awt.event.HierarchyEvent) definition code for java.awt.Component.processHierarchyEvent(java.awt.event.HierarchyEvent) , processInputMethodEvent sample code for java.awt.Component.processInputMethodEvent(java.awt.event.InputMethodEvent) definition code for java.awt.Component.processInputMethodEvent(java.awt.event.InputMethodEvent) , processMouseWheelEvent sample code for java.awt.Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent) definition code for java.awt.Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent) , remove sample code for java.awt.Component.remove(java.awt.MenuComponent) definition code for java.awt.Component.remove(java.awt.MenuComponent) , removeComponentListener sample code for java.awt.Component.removeComponentListener(java.awt.event.ComponentListener) definition code for java.awt.Component.removeComponentListener(java.awt.event.ComponentListener) , removeFocusListener sample code for java.awt.Component.removeFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.removeFocusListener(java.awt.event.FocusListener) , removeHierarchyBoundsListener sample code for java.awt.Component.removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) definition code for java.awt.Component.removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) , removeHierarchyListener sample code for java.awt.Component.removeHierarchyListener(java.awt.event.HierarchyListener) definition code for java.awt.Component.removeHierarchyListener(java.awt.event.HierarchyListener) , removeInputMethodListener sample code for java.awt.Component.removeInputMethodListener(java.awt.event.InputMethodListener) definition code for java.awt.Component.removeInputMethodListener(java.awt.event.InputMethodListener) , removeKeyListener sample code for java.awt.Component.removeKeyListener(java.awt.event.KeyListener) definition code for java.awt.Component.removeKeyListener(java.awt.event.KeyListener) , removeMouseListener sample code for java.awt.Component.removeMouseListener(java.awt.event.MouseListener) definition code for java.awt.Component.removeMouseListener(java.awt.event.MouseListener) , removeMouseMotionListener sample code for java.awt.Component.removeMouseMotionListener(java.awt.event.MouseMotionListener) definition code for java.awt.Component.removeMouseMotionListener(java.awt.event.MouseMotionListener) , removeMouseWheelListener sample code for java.awt.Component.removeMouseWheelListener(java.awt.event.MouseWheelListener) definition code for java.awt.Component.removeMouseWheelListener(java.awt.event.MouseWheelListener) , removePropertyChangeListener sample code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) , removePropertyChangeListener sample code for java.awt.Component.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , repaint sample code for java.awt.Component.repaint(int, int, int, int) definition code for java.awt.Component.repaint(int, int, int, int) , repaint sample code for java.awt.Component.repaint(long) definition code for java.awt.Component.repaint(long) , resize sample code for java.awt.Component.resize(java.awt.Dimension) definition code for java.awt.Component.resize(java.awt.Dimension) , resize sample code for java.awt.Component.resize(int, int) definition code for java.awt.Component.resize(int, int) , setBounds sample code for java.awt.Component.setBounds(int, int, int, int) definition code for java.awt.Component.setBounds(int, int, int, int) , setBounds sample code for java.awt.Component.setBounds(java.awt.Rectangle) definition code for java.awt.Component.setBounds(java.awt.Rectangle) , setComponentOrientation sample code for java.awt.Component.setComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Component.setComponentOrientation(java.awt.ComponentOrientation) , setCursor sample code for java.awt.Component.setCursor(java.awt.Cursor) definition code for java.awt.Component.setCursor(java.awt.Cursor) , setDropTarget sample code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) definition code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) , setFocusable sample code for java.awt.Component.setFocusable(boolean) definition code for java.awt.Component.setFocusable(boolean) , setFocusTraversalKeysEnabled sample code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) definition code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) , setIgnoreRepaint sample code for java.awt.Component.setIgnoreRepaint(boolean) definition code for java.awt.Component.setIgnoreRepaint(boolean) , setLocale sample code for java.awt.Component.setLocale(java.util.Locale) definition code for java.awt.Component.setLocale(java.util.Locale) , setLocation sample code for java.awt.Component.setLocation(int, int) definition code for java.awt.Component.setLocation(int, int) , setLocation sample code for java.awt.Component.setLocation(java.awt.Point) definition code for java.awt.Component.setLocation(java.awt.Point) , setName sample code for java.awt.Component.setName(java.lang.String) definition code for java.awt.Component.setName(java.lang.String) , setSize sample code for java.awt.Component.setSize(java.awt.Dimension) definition code for java.awt.Component.setSize(java.awt.Dimension) , setSize sample code for java.awt.Component.setSize(int, int) definition code for java.awt.Component.setSize(int, int) , show sample code for java.awt.Component.show() definition code for java.awt.Component.show() , show sample code for java.awt.Component.show(boolean) definition code for java.awt.Component.show(boolean) , size sample code for java.awt.Component.size() definition code for java.awt.Component.size() , toString sample code for java.awt.Component.toString() definition code for java.awt.Component.toString() , transferFocus sample code for java.awt.Component.transferFocus() definition code for java.awt.Component.transferFocus() , transferFocusUpCycle sample code for java.awt.Component.transferFocusUpCycle() definition code for java.awt.Component.transferFocusUpCycle()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

selected sample code for javax.swing.tree.DefaultTreeCellRenderer.selected

protected boolean selected
Is the value currently selected.


hasFocus sample code for javax.swing.tree.DefaultTreeCellRenderer.hasFocus

protected boolean hasFocus
True if has focus.


closedIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.closedIcon

protected transient Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  closedIcon
Icon used to show non-leaf nodes that aren't expanded.


leafIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.leafIcon

protected transient Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  leafIcon
Icon used to show leaf nodes.


openIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.openIcon

protected transient Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  openIcon
Icon used to show non-leaf nodes that are expanded.


textSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.textSelectionColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  textSelectionColor
Color to use for the foreground for selected nodes.


textNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.textNonSelectionColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  textNonSelectionColor
Color to use for the foreground for non-selected nodes.


backgroundSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.backgroundSelectionColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  backgroundSelectionColor
Color to use for the background when a node is selected.


backgroundNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.backgroundNonSelectionColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  backgroundNonSelectionColor
Color to use for the background when the node isn't selected.


borderSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.borderSelectionColor

protected Color sample code for java.awt.Color definition code for java.awt.Color  borderSelectionColor
Color to use for the focus indicator when the node has focus.

Constructor Detail

DefaultTreeCellRenderer sample code for javax.swing.tree.DefaultTreeCellRenderer() definition code for javax.swing.tree.DefaultTreeCellRenderer()

public DefaultTreeCellRenderer()
Returns a new instance of DefaultTreeCellRenderer. Alignment is set to left aligned. Icons and text color are determined from the UIManager.

Method Detail

getDefaultOpenIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultOpenIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultOpenIcon()

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getDefaultOpenIcon()
Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are expanded.


getDefaultClosedIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultClosedIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultClosedIcon()

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getDefaultClosedIcon()
Returns the default icon, for the current laf, that is used to represent non-leaf nodes that are not expanded.


getDefaultLeafIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultLeafIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getDefaultLeafIcon()

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getDefaultLeafIcon()
Returns the default icon, for the current laf, that is used to represent leaf nodes.


setOpenIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.setOpenIcon(javax.swing.Icon) definition code for javax.swing.tree.DefaultTreeCellRenderer.setOpenIcon(javax.swing.Icon)

public void setOpenIcon(Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  newIcon)
Sets the icon used to represent non-leaf nodes that are expanded.


getOpenIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getOpenIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getOpenIcon()

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getOpenIcon()
Returns the icon used to represent non-leaf nodes that are expanded.


setClosedIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.setClosedIcon(javax.swing.Icon) definition code for javax.swing.tree.DefaultTreeCellRenderer.setClosedIcon(javax.swing.Icon)

public void setClosedIcon(Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  newIcon)
Sets the icon used to represent non-leaf nodes that are not expanded.


getClosedIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getClosedIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getClosedIcon()

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getClosedIcon()
Returns the icon used to represent non-leaf nodes that are not expanded.


setLeafIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.setLeafIcon(javax.swing.Icon) definition code for javax.swing.tree.DefaultTreeCellRenderer.setLeafIcon(javax.swing.Icon)

public void setLeafIcon(Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  newIcon)
Sets the icon used to represent leaf nodes.


getLeafIcon sample code for javax.swing.tree.DefaultTreeCellRenderer.getLeafIcon() definition code for javax.swing.tree.DefaultTreeCellRenderer.getLeafIcon()

public Icon sample code for javax.swing.Icon definition code for javax.swing.Icon  getLeafIcon()
Returns the icon used to represent leaf nodes.


setTextSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.setTextSelectionColor(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setTextSelectionColor(java.awt.Color)

public void setTextSelectionColor(Color sample code for java.awt.Color definition code for java.awt.Color  newColor)
Sets the color the text is drawn with when the node is selected.


getTextSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.getTextSelectionColor() definition code for javax.swing.tree.DefaultTreeCellRenderer.getTextSelectionColor()

public Color sample code for java.awt.Color definition code for java.awt.Color  getTextSelectionColor()
Returns the color the text is drawn with when the node is selected.


setTextNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.setTextNonSelectionColor(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setTextNonSelectionColor(java.awt.Color)

public void setTextNonSelectionColor(Color sample code for java.awt.Color definition code for java.awt.Color  newColor)
Sets the color the text is drawn with when the node isn't selected.


getTextNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.getTextNonSelectionColor() definition code for javax.swing.tree.DefaultTreeCellRenderer.getTextNonSelectionColor()

public Color sample code for java.awt.Color definition code for java.awt.Color  getTextNonSelectionColor()
Returns the color the text is drawn with when the node isn't selected.


setBackgroundSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.setBackgroundSelectionColor(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setBackgroundSelectionColor(java.awt.Color)

public void setBackgroundSelectionColor(Color sample code for java.awt.Color definition code for java.awt.Color  newColor)
Sets the color to use for the background if node is selected.


getBackgroundSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.getBackgroundSelectionColor() definition code for javax.swing.tree.DefaultTreeCellRenderer.getBackgroundSelectionColor()

public Color sample code for java.awt.Color definition code for java.awt.Color  getBackgroundSelectionColor()
Returns the color to use for the background if node is selected.


setBackgroundNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.setBackgroundNonSelectionColor(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setBackgroundNonSelectionColor(java.awt.Color)

public void setBackgroundNonSelectionColor(Color sample code for java.awt.Color definition code for java.awt.Color  newColor)
Sets the background color to be used for non selected nodes.


getBackgroundNonSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.getBackgroundNonSelectionColor() definition code for javax.swing.tree.DefaultTreeCellRenderer.getBackgroundNonSelectionColor()

public Color sample code for java.awt.Color definition code for java.awt.Color  getBackgroundNonSelectionColor()
Returns the background color to be used for non selected nodes.


setBorderSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.setBorderSelectionColor(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setBorderSelectionColor(java.awt.Color)

public void setBorderSelectionColor(Color sample code for java.awt.Color definition code for java.awt.Color  newColor)
Sets the color to use for the border.


getBorderSelectionColor sample code for javax.swing.tree.DefaultTreeCellRenderer.getBorderSelectionColor() definition code for javax.swing.tree.DefaultTreeCellRenderer.getBorderSelectionColor()

public Color sample code for java.awt.Color definition code for java.awt.Color  getBorderSelectionColor()
Returns the color the border is drawn.


setFont sample code for javax.swing.tree.DefaultTreeCellRenderer.setFont(java.awt.Font) definition code for javax.swing.tree.DefaultTreeCellRenderer.setFont(java.awt.Font)

public void setFont(Font sample code for java.awt.Font definition code for java.awt.Font  font)
Subclassed to map FontUIResources to null. If font is null, or a FontUIResource, this has the effect of letting the font of the JTree show through. On the other hand, if font is non-null, and not a FontUIResource, the font becomes font.

Overrides:
setFont sample code for javax.swing.JComponent.setFont(java.awt.Font) definition code for javax.swing.JComponent.setFont(java.awt.Font) in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Parameters:
font - the desired Font for this component
See Also:
Component.getFont() sample code for java.awt.Component.getFont() definition code for java.awt.Component.getFont()

getFont sample code for javax.swing.tree.DefaultTreeCellRenderer.getFont() definition code for javax.swing.tree.DefaultTreeCellRenderer.getFont()

public Font sample code for java.awt.Font definition code for java.awt.Font  getFont()
Gets the font of this component.

Specified by:
getFont sample code for java.awt.MenuContainer.getFont() definition code for java.awt.MenuContainer.getFont() in interface MenuContainer sample code for java.awt.MenuContainer definition code for java.awt.MenuContainer
Overrides:
getFont sample code for java.awt.Component.getFont() definition code for java.awt.Component.getFont() in class Component sample code for java.awt.Component definition code for java.awt.Component
Returns:
this component's font; if a font has not been set for this component, the font of its parent is returned
See Also:
Component.setFont(java.awt.Font) sample code for java.awt.Component.setFont(java.awt.Font) definition code for java.awt.Component.setFont(java.awt.Font)

setBackground sample code for javax.swing.tree.DefaultTreeCellRenderer.setBackground(java.awt.Color) definition code for javax.swing.tree.DefaultTreeCellRenderer.setBackground(java.awt.Color)

public void setBackground(Color sample code for java.awt.Color definition code for java.awt.Color  color)
Subclassed to map ColorUIResources to null. If color is null, or a ColorUIResource, this has the effect of letting the background color of the JTree show through. On the other hand, if color is non-null, and not a ColorUIResource, the background becomes color.

Overrides:
setBackground sample code for javax.swing.JComponent.setBackground(java.awt.Color) definition code for javax.swing.JComponent.setBackground(java.awt.Color) in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Parameters:
color - the desired background Color
See Also:
Component.getBackground() sample code for java.awt.Component.getBackground() definition code for java.awt.Component.getBackground()

getTreeCellRendererComponent sample code for javax.swing.tree.DefaultTreeCellRenderer.getTreeCellRendererComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int, boolean) definition code for javax.swing.tree.DefaultTreeCellRenderer.getTreeCellRendererComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int, boolean)

public Component sample code for java.awt.Component definition code for java.awt.Component  getTreeCellRendererComponent(JTree sample code for javax.swing.JTree definition code for javax.swing.JTree  tree,
                                              Object sample code for java.lang.Object definition code for java.lang.Object  value,
                                              boolean sel,
                                              boolean expanded,
                                              boolean leaf,
                                              int row,
                                              boolean hasFocus)
Configures the renderer based on the passed in components. The value is set from messaging the tree with convertValueToText, which ultimately invokes toString on value. The foreground color is set based on the selection and the icon is set based on on leaf and expanded.

Specified by:
getTreeCellRendererComponent sample code for javax.swing.tree.TreeCellRenderer.getTreeCellRendererComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int, boolean) definition code for javax.swing.tree.TreeCellRenderer.getTreeCellRendererComponent(javax.swing.JTree, java.lang.Object, boolean, boolean, boolean, int, boolean) in interface TreeCellRenderer sample code for javax.swing.tree.TreeCellRenderer definition code for javax.swing.tree.TreeCellRenderer
Returns:
the Component that the renderer uses to draw the value

paint sample code for javax.swing.tree.DefaultTreeCellRenderer.paint(java.awt.Graphics) definition code for javax.swing.tree.DefaultTreeCellRenderer.paint(java.awt.Graphics)

public void paint(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
Paints the value. The background is filled based on selected.

Overrides:
paint sample code for javax.swing.JComponent.paint(java.awt.Graphics) definition code for javax.swing.JComponent.paint(java.awt.Graphics) in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Parameters:
g - the Graphics context in which to paint
See Also:
JComponent.paintComponent(java.awt.Graphics) sample code for javax.swing.JComponent.paintComponent(java.awt.Graphics) definition code for javax.swing.JComponent.paintComponent(java.awt.Graphics) , JComponent.paintBorder(java.awt.Graphics) sample code for javax.swing.JComponent.paintBorder(java.awt.Graphics) definition code for javax.swing.JComponent.paintBorder(java.awt.Graphics) , JComponent.paintChildren(java.awt.Graphics) sample code for javax.swing.JComponent.paintChildren(java.awt.Graphics) definition code for javax.swing.JComponent.paintChildren(java.awt.Graphics) , JComponent.getComponentGraphics(java.awt.Graphics) sample code for javax.swing.JComponent.getComponentGraphics(java.awt.Graphics) definition code for javax.swing.JComponent.getComponentGraphics(java.awt.Graphics) , JComponent.repaint(long, int, int, int, int) sample code for javax.swing.JComponent.repaint(long, int, int, int, int) definition code for javax.swing.JComponent.repaint(long, int, int, int, int)

getPreferredSize sample code for javax.swing.tree.DefaultTreeCellRenderer.getPreferredSize() definition code for javax.swing.tree.DefaultTreeCellRenderer.getPreferredSize()

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getPreferredSize()
Overrides JComponent.getPreferredSize to return slightly wider preferred size value.

Overrides:
getPreferredSize sample code for javax.swing.JComponent.getPreferredSize() definition code for javax.swing.JComponent.getPreferredSize() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
the value of the preferredSize property
See Also:
JComponent.setPreferredSize(java.awt.Dimension) sample code for javax.swing.JComponent.setPreferredSize(java.awt.Dimension) definition code for javax.swing.JComponent.setPreferredSize(java.awt.Dimension) , ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI

validate sample code for javax.swing.tree.DefaultTreeCellRenderer.validate() definition code for javax.swing.tree.DefaultTreeCellRenderer.validate()

public void validate()
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
validate sample code for java.awt.Container.validate() definition code for java.awt.Container.validate() in class Container sample code for java.awt.Container definition code for java.awt.Container
See Also:
Container.add(java.awt.Component) sample code for java.awt.Container.add(java.awt.Component) definition code for java.awt.Container.add(java.awt.Component) , Component.invalidate() sample code for java.awt.Component.invalidate() definition code for java.awt.Component.invalidate() , JComponent.revalidate() sample code for javax.swing.JComponent.revalidate() definition code for javax.swing.JComponent.revalidate()

invalidate sample code for javax.swing.tree.DefaultTreeCellRenderer.invalidate() definition code for javax.swing.tree.DefaultTreeCellRenderer.invalidate()

public void invalidate()
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
invalidate sample code for java.awt.Container.invalidate() definition code for java.awt.Container.invalidate() in class Container sample code for java.awt.Container definition code for java.awt.Container
Since:
1.5
See Also:
Container.validate() sample code for java.awt.Container.validate() definition code for java.awt.Container.validate() , Container.layout() sample code for java.awt.Container.layout() definition code for java.awt.Container.layout() , LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager

revalidate sample code for javax.swing.tree.DefaultTreeCellRenderer.revalidate() definition code for javax.swing.tree.DefaultTreeCellRenderer.revalidate()

public void revalidate()
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
revalidate sample code for javax.swing.JComponent.revalidate() definition code for javax.swing.JComponent.revalidate() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
See Also:
Component.invalidate() sample code for java.awt.Component.invalidate() definition code for java.awt.Component.invalidate() , Container.validate() sample code for java.awt.Container.validate() definition code for java.awt.Container.validate() , JComponent.isValidateRoot() sample code for javax.swing.JComponent.isValidateRoot() definition code for javax.swing.JComponent.isValidateRoot() , RepaintManager.addInvalidComponent(javax.swing.JComponent) sample code for javax.swing.RepaintManager.addInvalidComponent(javax.swing.JComponent) definition code for javax.swing.RepaintManager.addInvalidComponent(javax.swing.JComponent)

repaint sample code for javax.swing.tree.DefaultTreeCellRenderer.repaint(long, int, int, int, int) definition code for javax.swing.tree.DefaultTreeCellRenderer.repaint(long, int, int, int, int)

public void repaint(long tm,
                    int x,
                    int y,
                    int width,
                    int height)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
repaint sample code for javax.swing.JComponent.repaint(long, int, int, int, int) definition code for javax.swing.JComponent.repaint(long, int, int, int, int) in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Parameters:
tm - this parameter is not used
x - the x value of the dirty region
y - the y value of the dirty region
width - the width of the dirty region
height - the height of the dirty region
See Also:
Component.isShowing() sample code for java.awt.Component.isShowing() definition code for java.awt.Component.isShowing() , RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int) sample code for javax.swing.RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int) definition code for javax.swing.RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int)

repaint sample code for javax.swing.tree.DefaultTreeCellRenderer.repaint(java.awt.Rectangle) definition code for javax.swing.tree.DefaultTreeCellRenderer.repaint(java.awt.Rectangle)

public void repaint(Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  r)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
repaint sample code for javax.swing.JComponent.repaint(java.awt.Rectangle) definition code for javax.swing.JComponent.repaint(java.awt.Rectangle) in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Parameters:
r - a Rectangle containing the dirty region
See Also:
Component.isShowing() sample code for java.awt.Component.isShowing() definition code for java.awt.Component.isShowing() , RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int) sample code for javax.swing.RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int) definition code for javax.swing.RepaintManager.addDirtyRegion(javax.swing.JComponent, int, int, int, int)

repaint sample code for javax.swing.tree.DefaultTreeCellRenderer.repaint() definition code for javax.swing.tree.DefaultTreeCellRenderer.repaint()

public void repaint()
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
repaint sample code for java.awt.Component.repaint() definition code for java.awt.Component.repaint() in class Component sample code for java.awt.Component definition code for java.awt.Component
Since:
1.5
See Also:
Component.update(Graphics) sample code for java.awt.Component.update(java.awt.Graphics) definition code for java.awt.Component.update(java.awt.Graphics)

firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

protected void firePropertyChange(String sample code for java.lang.String definition code for java.lang.String  propertyName,
                                  Object sample code for java.lang.Object definition code for java.lang.Object  oldValue,
                                  Object sample code for java.lang.Object definition code for java.lang.Object  newValue)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) in class Component sample code for java.awt.Component definition code for java.awt.Component
Parameters:
propertyName - the property whose value has changed
oldValue - the property's previous value
newValue - the property's new value

firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, byte, byte) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, byte, byte)

public void firePropertyChange(String sample code for java.lang.String definition code for java.lang.String  propertyName,
                               byte oldValue,
                               byte newValue)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, byte, byte) definition code for java.awt.Component.firePropertyChange(java.lang.String, byte, byte) in class Component sample code for java.awt.Component definition code for java.awt.Component
Parameters:
propertyName - the programmatic name of the property that was changed
oldValue - the old value of the property (as a byte)
newValue - the new value of the property (as a byte)
See Also:
Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, char, char) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, char, char)

public void firePropertyChange(String sample code for java.lang.String definition code for java.lang.String  propertyName,
                               char oldValue,
                               char newValue)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, char, char) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, char, char) in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Parameters:
propertyName - the programmatic name of the property that was changed
oldValue - the old value of the property (as a char)
newValue - the new value of the property (as a char)
See Also:
Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, short, short) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, short, short)

public void firePropertyChange(String sample code for java.lang.String definition code for java.lang.String  propertyName,
                               short oldValue,
                               short newValue)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, short, short) definition code for java.awt.Component.firePropertyChange(java.lang.String, short, short) in class Component sample code for java.awt.Component definition code for java.awt.Component
Parameters:
propertyName - the programmatic name of the property that was changed
oldValue - the old value of the property (as a short)
newValue - the old value of the property (as a short)
See Also:
Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, int, int) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, int, int)

public void firePropertyChange(String sample code for java.lang.String definition code for java.lang.String  propertyName,
                               int oldValue,
                               int newValue)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, int, int) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, int, int) in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Parameters:
propertyName - the property whose value has changed
oldValue - the property's previous value
newValue - the property's new value

firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, long, long) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, long, long)

public void firePropertyChange(String sample code for java.lang.String definition code for java.lang.String  propertyName,
                               long oldValue,
                               long newValue)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, long, long) definition code for java.awt.Component.firePropertyChange(java.lang.String, long, long) in class Component sample code for java.awt.Component definition code for java.awt.Component
Parameters:
propertyName - the programmatic name of the property that was changed
oldValue - the old value of the property (as a long)
newValue - the new value of the property (as a long)
See Also:
Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, float, float) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, float, float)

public void firePropertyChange(String sample code for java.lang.String definition code for java.lang.String  propertyName,
                               float oldValue,
                               float newValue)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, float, float) definition code for java.awt.Component.firePropertyChange(java.lang.String, float, float) in class Component sample code for java.awt.Component definition code for java.awt.Component
Parameters:
propertyName - the programmatic name of the property that was changed
oldValue - the old value of the property (as a float)
newValue - the new value of the property (as a float)
See Also:
Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, double, double) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, double, double)

public void firePropertyChange(String sample code for java.lang.String definition code for java.lang.String  propertyName,
                               double oldValue,
                               double newValue)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, double, double) definition code for java.awt.Component.firePropertyChange(java.lang.String, double, double) in class Component sample code for java.awt.Component definition code for java.awt.Component
Parameters:
propertyName - the programmatic name of the property that was changed
oldValue - the old value of the property (as a double)
newValue - the new value of the property (as a double)
See Also:
Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

firePropertyChange sample code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, boolean, boolean) definition code for javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(java.lang.String, boolean, boolean)

public void firePropertyChange(String sample code for java.lang.String definition code for java.lang.String  propertyName,
                               boolean oldValue,
                               boolean newValue)
Overridden for performance reasons. See the Implementation Note for more information.

Overrides:
firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, boolean, boolean) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, boolean, boolean) in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Parameters:
propertyName - the property whose value has changed
oldValue - the property's previous value
newValue - the property's new value