javax.swing
Class JSlider

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.JSlider
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 JSlider
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 lets the user graphically select a value by sliding a knob within a bounded interval. The slider can show both major tick marks and minor tick marks between them. The number of values between the tick marks is controlled with setMajorTickSpacing and setMinorTickSpacing.

For further information and examples see How to Use Sliders, 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:
Serialized Form

Nested Class Summary
protected  class JSlider.AccessibleJSlider sample code for javax.swing.JSlider.AccessibleJSlider definition code for javax.swing.JSlider.AccessibleJSlider
          This class implements accessibility support for the JSlider 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.JSlider.changeEvent definition code for javax.swing.JSlider.changeEvent
          Only one ChangeEvent is needed per slider instance since the event's only (read-only) state is the source property.
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener changeListener sample code for javax.swing.JSlider.changeListener definition code for javax.swing.JSlider.changeListener
          The changeListener (no suffix) is the listener we add to the Sliders model.
protected  int majorTickSpacing sample code for javax.swing.JSlider.majorTickSpacing definition code for javax.swing.JSlider.majorTickSpacing
          The number of values between the major tick marks -- the larger marks that break up the minor tick marks.
protected  int minorTickSpacing sample code for javax.swing.JSlider.minorTickSpacing definition code for javax.swing.JSlider.minorTickSpacing
          The number of values between the minor tick marks -- the smaller marks that occur between the major tick marks.
protected  int orientation sample code for javax.swing.JSlider.orientation definition code for javax.swing.JSlider.orientation
           
protected  BoundedRangeModel sample code for javax.swing.BoundedRangeModel definition code for javax.swing.BoundedRangeModel sliderModel sample code for javax.swing.JSlider.sliderModel definition code for javax.swing.JSlider.sliderModel
          The data model that handles the numeric maximum value, minimum value, and current-position value for the slider.
protected  boolean snapToTicks sample code for javax.swing.JSlider.snapToTicks definition code for javax.swing.JSlider.snapToTicks
          If true, the knob (and the data value it represents) resolve to the closest tick mark next to where the user positioned the knob.
 
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
JSlider sample code for javax.swing.JSlider.JSlider() definition code for javax.swing.JSlider.JSlider() ()
          Creates a horizontal slider with the range 0 to 100 and an initial value of 50.
JSlider sample code for javax.swing.JSlider.JSlider(javax.swing.BoundedRangeModel) definition code for javax.swing.JSlider.JSlider(javax.swing.BoundedRangeModel) (BoundedRangeModel sample code for javax.swing.BoundedRangeModel definition code for javax.swing.BoundedRangeModel  brm)
          Creates a horizontal slider using the specified BoundedRangeModel.
JSlider sample code for javax.swing.JSlider.JSlider(int) definition code for javax.swing.JSlider.JSlider(int) (int orientation)
          Creates a slider using the specified orientation with the range 0 to 100 and an initial value of 50.
JSlider sample code for javax.swing.JSlider.JSlider(int, int) definition code for javax.swing.JSlider.JSlider(int, int) (int min, int max)
          Creates a horizontal slider using the specified min and max with an initial value equal to the average of the min plus max.
JSlider sample code for javax.swing.JSlider.JSlider(int, int, int) definition code for javax.swing.JSlider.JSlider(int, int, int) (int min, int max, int value)
          Creates a horizontal slider using the specified min, max and value.
JSlider sample code for javax.swing.JSlider.JSlider(int, int, int, int) definition code for javax.swing.JSlider.JSlider(int, int, int, int) (int orientation, int min, int max, int value)
          Creates a slider with the specified orientation and the specified minimum, maximum, and initial values.
 
Method Summary
 void addChangeListener sample code for javax.swing.JSlider.addChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JSlider.addChangeListener(javax.swing.event.ChangeListener) (ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  l)
          Adds a ChangeListener to the slider.
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener createChangeListener sample code for javax.swing.JSlider.createChangeListener() definition code for javax.swing.JSlider.createChangeListener() ()
          Subclasses that want to handle model ChangeEvents differently can override this method to return their own ChangeListener implementation.
 Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable createStandardLabels sample code for javax.swing.JSlider.createStandardLabels(int) definition code for javax.swing.JSlider.createStandardLabels(int) (int increment)
          Creates a hashtable that will draw text labels starting at the slider minimum using the increment specified.
 Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable createStandardLabels sample code for javax.swing.JSlider.createStandardLabels(int, int) definition code for javax.swing.JSlider.createStandardLabels(int, int) (int increment, int start)
          Creates a hashtable that will draw text labels starting at the start point specified using the increment specified.
protected  void fireStateChanged sample code for javax.swing.JSlider.fireStateChanged() definition code for javax.swing.JSlider.fireStateChanged() ()
          Send a ChangeEvent, whose source is this Slider, to each listener.
 AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext getAccessibleContext sample code for javax.swing.JSlider.getAccessibleContext() definition code for javax.swing.JSlider.getAccessibleContext() ()
          Gets the AccessibleContext associated with this JSlider.
 ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener [] getChangeListeners sample code for javax.swing.JSlider.getChangeListeners() definition code for javax.swing.JSlider.getChangeListeners() ()
          Returns an array of all the ChangeListeners added to this JSlider with addChangeListener().
 int getExtent sample code for javax.swing.JSlider.getExtent() definition code for javax.swing.JSlider.getExtent() ()
          Returns the "extent" -- the range of values "covered" by the knob.
 boolean getInverted sample code for javax.swing.JSlider.getInverted() definition code for javax.swing.JSlider.getInverted() ()
          Returns true if the value-range shown for the slider is reversed,
 Dictionary sample code for java.util.Dictionary definition code for java.util.Dictionary getLabelTable sample code for javax.swing.JSlider.getLabelTable() definition code for javax.swing.JSlider.getLabelTable() ()
          Returns the dictionary of what labels to draw at which values.
 int getMajorTickSpacing sample code for javax.swing.JSlider.getMajorTickSpacing() definition code for javax.swing.JSlider.getMajorTickSpacing() ()
          This method returns the major tick spacing.
 int getMaximum sample code for javax.swing.JSlider.getMaximum() definition code for javax.swing.JSlider.getMaximum() ()
          Returns the maximum value supported by the slider.
 int getMinimum sample code for javax.swing.JSlider.getMinimum() definition code for javax.swing.JSlider.getMinimum() ()
          Returns the minimum value supported by the slider.
 int getMinorTickSpacing sample code for javax.swing.JSlider.getMinorTickSpacing() definition code for javax.swing.JSlider.getMinorTickSpacing() ()
          This method returns the minor tick spacing.
 BoundedRangeModel sample code for javax.swing.BoundedRangeModel definition code for javax.swing.BoundedRangeModel getModel sample code for javax.swing.JSlider.getModel() definition code for javax.swing.JSlider.getModel() ()
          Returns data model that handles the sliders three fundamental properties: minimum, maximum, value.
 int getOrientation sample code for javax.swing.JSlider.getOrientation() definition code for javax.swing.JSlider.getOrientation() ()
          Return this slider's vertical or horizontal orientation.
 boolean getPaintLabels sample code for javax.swing.JSlider.getPaintLabels() definition code for javax.swing.JSlider.getPaintLabels() ()
          Tells if labels are to be painted.
 boolean getPaintTicks sample code for javax.swing.JSlider.getPaintTicks() definition code for javax.swing.JSlider.getPaintTicks() ()
          Tells if tick marks are to be painted.
 boolean getPaintTrack sample code for javax.swing.JSlider.getPaintTrack() definition code for javax.swing.JSlider.getPaintTrack() ()
          Tells if the track (area the slider slides in) is to be painted.
 boolean getSnapToTicks sample code for javax.swing.JSlider.getSnapToTicks() definition code for javax.swing.JSlider.getSnapToTicks() ()
          Returns true if the knob (and the data value it represents) resolve to the closest tick mark next to where the user positioned the knob.
 SliderUI sample code for javax.swing.plaf.SliderUI definition code for javax.swing.plaf.SliderUI getUI sample code for javax.swing.JSlider.getUI() definition code for javax.swing.JSlider.getUI() ()
          Gets the UI object which implements the L&F for this component.
 String sample code for java.lang.String definition code for java.lang.String getUIClassID sample code for javax.swing.JSlider.getUIClassID() definition code for javax.swing.JSlider.getUIClassID() ()
          Returns the name of the L&F class that renders this component.
 int getValue sample code for javax.swing.JSlider.getValue() definition code for javax.swing.JSlider.getValue() ()
          Returns the sliders value.
 boolean getValueIsAdjusting sample code for javax.swing.JSlider.getValueIsAdjusting() definition code for javax.swing.JSlider.getValueIsAdjusting() ()
          True if the slider knob is being dragged.
protected  String sample code for java.lang.String definition code for java.lang.String paramString sample code for javax.swing.JSlider.paramString() definition code for javax.swing.JSlider.paramString() ()
          Returns a string representation of this JSlider.
 void removeChangeListener sample code for javax.swing.JSlider.removeChangeListener(javax.swing.event.ChangeListener) definition code for javax.swing.JSlider.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 slider.
 void setExtent sample code for javax.swing.JSlider.setExtent(int) definition code for javax.swing.JSlider.setExtent(int) (int extent)
          Sets the size of the range "covered" by the knob.
 void setInverted sample code for javax.swing.JSlider.setInverted(boolean) definition code for javax.swing.JSlider.setInverted(boolean) (boolean b)
          Specify true to reverse the value-range shown for the slider and false to put the value range in the normal order.
 void setLabelTable sample code for javax.swing.JSlider.setLabelTable(java.util.Dictionary) definition code for javax.swing.JSlider.setLabelTable(java.util.Dictionary) (Dictionary sample code for java.util.Dictionary definition code for java.util.Dictionary  labels)
          Used to specify what label will be drawn at any given value.
 void setMajorTickSpacing sample code for javax.swing.JSlider.setMajorTickSpacing(int) definition code for javax.swing.JSlider.setMajorTickSpacing(int) (int n)
          This method sets the major tick spacing.
 void setMaximum sample code for javax.swing.JSlider.setMaximum(int) definition code for javax.swing.JSlider.setMaximum(int) (int maximum)
          Sets the models maximum property.
 void setMinimum sample code for javax.swing.JSlider.setMinimum(int) definition code for javax.swing.JSlider.setMinimum(int) (int minimum)
          Sets the models minimum property.
 void setMinorTickSpacing sample code for javax.swing.JSlider.setMinorTickSpacing(int) definition code for javax.swing.JSlider.setMinorTickSpacing(int) (int n)
          This method sets the minor tick spacing.
 void setModel sample code for javax.swing.JSlider.setModel(javax.swing.BoundedRangeModel) definition code for javax.swing.JSlider.setModel(javax.swing.BoundedRangeModel) (BoundedRangeModel sample code for javax.swing.BoundedRangeModel definition code for javax.swing.BoundedRangeModel  newModel)
          Sets the model that handles the sliders three fundamental properties: minimum, maximum, value.
 void setOrientation sample code for javax.swing.JSlider.setOrientation(int) definition code for javax.swing.JSlider.setOrientation(int) (int orientation)
          Set the scrollbars orientation to either VERTICAL or HORIZONTAL.
 void setPaintLabels sample code for javax.swing.JSlider.setPaintLabels(boolean) definition code for javax.swing.JSlider.setPaintLabels(boolean) (boolean b)
          Determines whether labels are painted on the slider.
 void setPaintTicks sample code for javax.swing.JSlider.setPaintTicks(boolean) definition code for javax.swing.JSlider.setPaintTicks(boolean) (boolean b)
          Determines whether tick marks are painted on the slider.
 void setPaintTrack sample code for javax.swing.JSlider.setPaintTrack(boolean) definition code for javax.swing.JSlider.setPaintTrack(boolean) (boolean b)
          Determines whether the track is painted on the slider.
 void setSnapToTicks sample code for javax.swing.JSlider.setSnapToTicks(boolean) definition code for javax.swing.JSlider.setSnapToTicks(boolean) (boolean b)
          Specifying true makes the knob (and the data value it represents) resolve to the closest tick mark next to where the user positioned the knob.
 void setUI sample code for javax.swing.JSlider.setUI(javax.swing.plaf.SliderUI) definition code for javax.swing.JSlider.setUI(javax.swing.plaf.SliderUI) (SliderUI sample code for javax.swing.plaf.SliderUI definition code for javax.swing.plaf.SliderUI  ui)
          Sets the UI object which implements the L&F for this component.
 void setValue sample code for javax.swing.JSlider.setValue(int) definition code for javax.swing.JSlider.setValue(int) (int n)
          Sets the sliders current value.
 void setValueIsAdjusting sample code for javax.swing.JSlider.setValueIsAdjusting(boolean) definition code for javax.swing.JSlider.setValueIsAdjusting(boolean) (boolean b)
          Sets the models valueIsAdjusting property.
protected  void updateLabelUIs sample code for javax.swing.JSlider.updateLabelUIs() definition code for javax.swing.JSlider.updateLabelUIs() ()
          Resets the UI property to a value from the current look and feel.
 void updateUI sample code for javax.swing.JSlider.updateUI() definition code for javax.swing.JSlider.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() , getAlignm