javax.swing
Class JProgressBar

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.JProgressBar
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

public class JProgressBar
extends JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
implements SwingConstants sample code for javax.swing.SwingConstants definition code for javax.swing.SwingConstants , Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible

A component that, by default, displays an integer value within a bounded interval. A progress bar typically communicates the progress of some work by displaying its percentage of completion and possibly a textual display of this percentage.

To indicate that a task of unknown length is executing, you can put a progress bar into indeterminate mode. While the bar is in indeterminate mode, it animates constantly to show that work is occurring. As soon as you can determine the task's length and amount of progress, you should update the progress bar's value and switch it back to determinate mode.

Here is an example of creating a progress bar, where task is an object that returns information about the progress of some work:

progressBar = new JProgressBar(0, task.getLengthOfTask());
progressBar.setValue(0);
progressBar.setStringPainted(true);
Here is an example of updating the value of the progress bar:
progressBar.setValue(task.getCurrent());
Here is an example of putting a progress bar into indeterminate mode, and then switching back to determinate mode once the length of the task is known:
progressBar = new JProgressBar();
...//when the task of (initially) unknown length begins:
progressBar.setIndeterminate(true);
...//do some work; get length of task...
progressBar.setMaximum(newLength);
progressBar.setValue(newValue);
progressBar.setIndeterminate(false);

For complete examples and further documentation see How to Monitor Progress, a section in The Java Tutorial.

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:
BasicProgressBarUI sample code for javax.swing.plaf.basic.BasicProgressBarUI definition code for javax.swing.plaf.basic.BasicProgressBarUI , Serialized Form

Nested Class Summary
protected  class JProgressBar.AccessibleJProgressBar sample code for javax.swing.JProgressBar.AccessibleJProgressBar definition code for javax.swing.JProgressBar.AccessibleJProgressBar
          This class implements accessibility support for the JProgressBar class.
 
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  ChangeEvent sample code for javax.swing.event.ChangeEvent definition code for javax.swing.event.ChangeEvent changeEvent sample code for javax.swing.JProgressBar.changeEvent definition code for javax.swing.JProgressBar.changeEvent
          Only one ChangeEvent is needed per instance since the event's only interesting property is the immutable source, which is the progress bar.
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener changeListener sample code for javax.swing.JProgressBar.changeListener definition code for javax.swing.JProgressBar.changeListener
          Listens for change events sent by the progress bar's model, redispatching them to change-event listeners registered upon this progress bar.
protected  BoundedRangeModel sample code for javax.swing.BoundedRangeModel definition code for javax.swing.BoundedRangeModel model sample code for javax.swing.JProgressBar.model definition code for javax.swing.JProgressBar.model
          The object that holds the data for the progress bar.
protected  int orientation sample code for javax.swing.JProgressBar.orientation definition code for javax.swing.JProgressBar.orientation
          Whether the progress bar is horizontal or vertical.
protected  boolean paintBorder sample code for javax.swing.JProgressBar.paintBorder definition code for javax.swing.JProgressBar.paintBorder
          Whether to display a border around the progress bar.
protected  boolean paintString sample code for javax.swing.JProgressBar.paintString definition code for javax.swing.JProgressBar.paintString
          Whether to textually display a string on the progress bar.
protected  String sample code for java.lang.String definition code for java.lang.String progressString sample code for javax.swing.JProgressBar.progressString definition code for javax.swing.JProgressBar.progressString
          An optional string that can be displayed on the progress bar.
 
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
JProgressBar sample code for javax.swing.JProgressBar.JProgressBar() definition code for javax.swing.JProgressBar.JProgressBar() ()
          Creates a horizontal progress bar that displays a border but no progress string.
JProgressBar sample code for javax.swing.JProgressBar.JProgressBar(javax.swing.BoundedRangeModel) definition code for javax.swing.JProgressBar.JProgressBar(javax.swing.BoundedRangeModel) (BoundedRangeModel sample code for javax.swing.BoundedRangeModel definition code for javax.swing.BoundedRangeModel  newModel)
          Creates a horizontal progress bar that uses the specified model to hold the progress bar's data.
JProgressBar sample code for javax.swing.JProgressBar.JProgressBar(int) definition code for javax.swing.JProgressBar.JProgressBar(int) (int orient)
          Creates a progress bar with the specified orientation, which can be either JProgressBar.VERTICAL or JProgressBar.HORIZONTAL.
JProgressBar sample code for javax.swing.JProgressBar.JProgressBar(int, int) definition code for javax.swing.JProgressBar.JProgressBar(int, int) (int min, int max)
          Creates a horizontal progress bar with the specified minimum and maximum.
JProgressBar sample code for javax.swing.JProgressBar.JProgressBar(int, int, int) definition code for javax.swing.JProgressBar.JProgressBar(int, int, int) (int orient, int min, int max)
          Creates a progress bar using the specified orientation, minimum, and maximum.
 
Method Summary
 void addChangeListener sample code for javax.swing.JProgressBar.addChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JProgressBar.addChangeListener(javax.swing.event.ChangeListener) (ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  l)
          Adds the specified ChangeListener to the progress bar.
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener createChangeListener sample code for javax.swing.JProgressBar.createChangeListener() definition code for javax.swing.JProgressBar.createChangeListener() ()
          Subclasses that want to handle change events from the model differently can override this to return an instance of a custom ChangeListener implementation.
protected  void fireStateChanged sample code for javax.swing.JProgressBar.fireStateChanged() definition code for javax.swing.JProgressBar.fireStateChanged() ()
          Notifies all listeners that have registered interest in ChangeEvents.
 AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext getAccessibleContext sample code for javax.swing.JProgressBar.getAccessibleContext() definition code for javax.swing.JProgressBar.getAccessibleContext() ()
          Gets the AccessibleContext associated with this JProgressBar.
 ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener [] getChangeListeners sample code for javax.swing.JProgressBar.getChangeListeners() definition code for javax.swing.JProgressBar.getChangeListeners() ()
          Returns an array of all the ChangeListeners added to this progress bar with addChangeListener.
 int getMaximum sample code for javax.swing.JProgressBar.getMaximum() definition code for javax.swing.JProgressBar.getMaximum() ()
          Returns the progress bar's maximum value, which is stored in the progress bar's BoundedRangeModel.
 int getMinimum sample code for javax.swing.JProgressBar.getMinimum() definition code for javax.swing.JProgressBar.getMinimum() ()
          Returns the progress bar's minimum value, which is stored in the progress bar's BoundedRangeModel.
 BoundedRangeModel sample code for javax.swing.BoundedRangeModel definition code for javax.swing.BoundedRangeModel getModel sample code for javax.swing.JProgressBar.getModel() definition code for javax.swing.JProgressBar.getModel() ()
          Returns the data model used by this progress bar.
 int getOrientation sample code for javax.swing.JProgressBar.getOrientation() definition code for javax.swing.JProgressBar.getOrientation() ()
          Returns JProgressBar.VERTICAL or JProgressBar.HORIZONTAL, depending on the orientation of the progress bar.
 double getPercentComplete sample code for javax.swing.JProgressBar.getPercentComplete() definition code for javax.swing.JProgressBar.getPercentComplete() ()
          Returns the percent complete for the progress bar.
 String sample code for java.lang.String definition code for java.lang.String getString sample code for javax.swing.JProgressBar.getString() definition code for javax.swing.JProgressBar.getString() ()
          Returns the current value of the progress string.
 ProgressBarUI sample code for javax.swing.plaf.ProgressBarUI definition code for javax.swing.plaf.ProgressBarUI getUI sample code for javax.swing.JProgressBar.getUI() definition code for javax.swing.JProgressBar.getUI() ()
          Returns the look-and-feel object that renders this component.
 String sample code for java.lang.String definition code for java.lang.String getUIClassID sample code for javax.swing.JProgressBar.getUIClassID() definition code for javax.swing.JProgressBar.getUIClassID() ()
          Returns the name of the look-and-feel class that renders this component.
 int getValue sample code for javax.swing.JProgressBar.getValue() definition code for javax.swing.JProgressBar.getValue() ()
          Returns the progress bar's current value, which is stored in the progress bar's BoundedRangeModel.
 boolean isBorderPainted sample code for javax.swing.JProgressBar.isBorderPainted() definition code for javax.swing.JProgressBar.isBorderPainted() ()
          Returns the borderPainted property.
 boolean isIndeterminate sample code for javax.swing.JProgressBar.isIndeterminate() definition code for javax.swing.JProgressBar.isIndeterminate() ()
          Returns the value of the indeterminate property.
 boolean isStringPainted sample code for javax.swing.JProgressBar.isStringPainted() definition code for javax.swing.JProgressBar.isStringPainted() ()
          Returns the value of the stringPainted property.
protected  void paintBorder sample code for javax.swing.JProgressBar.paintBorder(java.awt.Graphics) definition code for javax.swing.JProgressBar.paintBorder(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
          Paints the progress bar's border if the borderPainted property is true.
protected  String sample code for java.lang.String definition code for java.lang.String paramString sample code for javax.swing.JProgressBar.paramString() definition code for javax.swing.JProgressBar.paramString() ()
          Returns a string representation of this JProgressBar.
 void removeChangeListener sample code for javax.swing.JProgressBar.removeChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JProgressBar.removeChangeListener(javax.swing.event.ChangeListener) (ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  l)
          Removes a ChangeListener from the progress bar.
 void setBorderPainted sample code for javax.swing.JProgressBar.setBorderPainted(boolean) definition code for javax.swing.JProgressBar.setBorderPainted(boolean) (boolean b)
          Sets the borderPainted property, which is true if the progress bar should paint its border.
 void setIndeterminate sample code for javax.swing.JProgressBar.setIndeterminate(boolean) definition code for javax.swing.JProgressBar.setIndeterminate(boolean) (boolean newValue)
          Sets the indeterminate property of the progress bar, which determines whether the progress bar is in determinate or indeterminate mode.
 void setMaximum sample code for javax.swing.JProgressBar.setMaximum(int) definition code for javax.swing.JProgressBar.setMaximum(int) (int n)
          Sets the progress bar's maximum value (stored in the progress bar's data model) to n.
 void setMinimum sample code for javax.swing.JProgressBar.setMinimum(int) definition code for javax.swing.JProgressBar.setMinimum(int) (int n)
          Sets the progress bar's minimum value (stored in the progress bar's data model) to n.
 void setModel sample code for javax.swing.JProgressBar.setModel(javax.swing.BoundedRangeModel) definition code for javax.swing.JProgressBar.setModel(javax.swing.BoundedRangeModel) (BoundedRangeModel sample code for javax.swing.BoundedRangeModel definition code for javax.swing.BoundedRangeModel  newModel)
          Sets the data model used by the JProgressBar.
 void setOrientation sample code for javax.swing.JProgressBar.setOrientation(int) definition code for javax.swing.JProgressBar.setOrientation(int) (int newOrientation)
          Sets the progress bar's orientation to newOrientation, which must be JProgressBar.VERTICAL or JProgressBar.HORIZONTAL.
 void setString sample code for javax.swing.JProgressBar.setString(java.lang.String) definition code for javax.swing.JProgressBar.setString(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  s)
          Sets the value of the progress string.
 void setStringPainted sample code for javax.swing.JProgressBar.setStringPainted(boolean) definition code for javax.swing.JProgressBar.setStringPainted(boolean) (boolean b)
          Sets the value of the stringPainted property, which determines whether the progress bar should render a progress string.
 void setUI sample code for javax.swing.JProgressBar.setUI(javax.swing.plaf.ProgressBarUI) definition code for javax.swing.JProgressBar.setUI(javax.swing.plaf.ProgressBarUI) (ProgressBarUI sample code for javax.swing.plaf.ProgressBarUI definition code for javax.swing.plaf.ProgressBarUI  ui)
          Sets the look-and-feel object that renders this component.
 void setValue sample code for javax.swing.JProgressBar.setValue(int) definition code for javax.swing.JProgressBar.setValue(int) (int n)
          Sets the progress bar's current value (stored in the progress bar's data model) to n.
 void updateUI sample code for javax.swing.JProgressBar.updateUI() definition code for javax.swing.JProgressBar.updateUI() ()
          Resets the UI property to a value from the current look and feel.
 
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() , 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) , 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) , 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) , 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)