javax.swing.plaf.basic
Class BasicScrollPaneUI

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI 
      extended by javax.swing.plaf.ScrollPaneUI sample code for javax.swing.plaf.ScrollPaneUI definition code for javax.swing.plaf.ScrollPaneUI 
          extended by javax.swing.plaf.basic.BasicScrollPaneUI
All Implemented Interfaces:
ScrollPaneConstants sample code for javax.swing.ScrollPaneConstants definition code for javax.swing.ScrollPaneConstants
Direct Known Subclasses:
MetalScrollPaneUI sample code for javax.swing.plaf.metal.MetalScrollPaneUI definition code for javax.swing.plaf.metal.MetalScrollPaneUI

public class BasicScrollPaneUI
extends ScrollPaneUI sample code for javax.swing.plaf.ScrollPaneUI definition code for javax.swing.plaf.ScrollPaneUI
implements ScrollPaneConstants sample code for javax.swing.ScrollPaneConstants definition code for javax.swing.ScrollPaneConstants

A default L&F implementation of ScrollPaneUI.


Nested Class Summary
 class BasicScrollPaneUI.HSBChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.HSBChangeListener definition code for javax.swing.plaf.basic.BasicScrollPaneUI.HSBChangeListener
          Horizontal scrollbar listener.
protected  class BasicScrollPaneUI.MouseWheelHandler sample code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler definition code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler
          MouseWheelHandler is an inner class which implements the MouseWheelListener interface.
 class BasicScrollPaneUI.PropertyChangeHandler sample code for javax.swing.plaf.basic.BasicScrollPaneUI.PropertyChangeHandler definition code for javax.swing.plaf.basic.BasicScrollPaneUI.PropertyChangeHandler
           
 class BasicScrollPaneUI.ViewportChangeHandler sample code for javax.swing.plaf.basic.BasicScrollPaneUI.ViewportChangeHandler definition code for javax.swing.plaf.basic.BasicScrollPaneUI.ViewportChangeHandler
          Listener for viewport events.
 class BasicScrollPaneUI.VSBChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.VSBChangeListener definition code for javax.swing.plaf.basic.BasicScrollPaneUI.VSBChangeListener
          Vertical scrollbar listener.
 
Field Summary
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener hsbChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.hsbChangeListener definition code for javax.swing.plaf.basic.BasicScrollPaneUI.hsbChangeListener
           
protected  JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane scrollpane sample code for javax.swing.plaf.basic.BasicScrollPaneUI.scrollpane definition code for javax.swing.plaf.basic.BasicScrollPaneUI.scrollpane
           
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener spPropertyChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.spPropertyChangeListener definition code for javax.swing.plaf.basic.BasicScrollPaneUI.spPropertyChangeListener
           
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener viewportChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.viewportChangeListener definition code for javax.swing.plaf.basic.BasicScrollPaneUI.viewportChangeListener
           
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener vsbChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.vsbChangeListener definition code for javax.swing.plaf.basic.BasicScrollPaneUI.vsbChangeListener
           
 
Fields inherited from interface javax.swing.ScrollPaneConstants sample code for javax.swing.ScrollPaneConstants definition code for javax.swing.ScrollPaneConstants
COLUMN_HEADER sample code for javax.swing.ScrollPaneConstants.COLUMN_HEADER definition code for javax.swing.ScrollPaneConstants.COLUMN_HEADER , HORIZONTAL_SCROLLBAR sample code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR definition code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR , HORIZONTAL_SCROLLBAR_ALWAYS sample code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS definition code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS , HORIZONTAL_SCROLLBAR_AS_NEEDED sample code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED definition code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED , HORIZONTAL_SCROLLBAR_NEVER sample code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER definition code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER , HORIZONTAL_SCROLLBAR_POLICY sample code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_POLICY definition code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_POLICY , LOWER_LEADING_CORNER sample code for javax.swing.ScrollPaneConstants.LOWER_LEADING_CORNER definition code for javax.swing.ScrollPaneConstants.LOWER_LEADING_CORNER , LOWER_LEFT_CORNER sample code for javax.swing.ScrollPaneConstants.LOWER_LEFT_CORNER definition code for javax.swing.ScrollPaneConstants.LOWER_LEFT_CORNER , LOWER_RIGHT_CORNER sample code for javax.swing.ScrollPaneConstants.LOWER_RIGHT_CORNER definition code for javax.swing.ScrollPaneConstants.LOWER_RIGHT_CORNER , LOWER_TRAILING_CORNER sample code for javax.swing.ScrollPaneConstants.LOWER_TRAILING_CORNER definition code for javax.swing.ScrollPaneConstants.LOWER_TRAILING_CORNER , ROW_HEADER sample code for javax.swing.ScrollPaneConstants.ROW_HEADER definition code for javax.swing.ScrollPaneConstants.ROW_HEADER , UPPER_LEADING_CORNER sample code for javax.swing.ScrollPaneConstants.UPPER_LEADING_CORNER definition code for javax.swing.ScrollPaneConstants.UPPER_LEADING_CORNER , UPPER_LEFT_CORNER sample code for javax.swing.ScrollPaneConstants.UPPER_LEFT_CORNER definition code for javax.swing.ScrollPaneConstants.UPPER_LEFT_CORNER , UPPER_RIGHT_CORNER sample code for javax.swing.ScrollPaneConstants.UPPER_RIGHT_CORNER definition code for javax.swing.ScrollPaneConstants.UPPER_RIGHT_CORNER , UPPER_TRAILING_CORNER sample code for javax.swing.ScrollPaneConstants.UPPER_TRAILING_CORNER definition code for javax.swing.ScrollPaneConstants.UPPER_TRAILING_CORNER , VERTICAL_SCROLLBAR sample code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR definition code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR , VERTICAL_SCROLLBAR_ALWAYS sample code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS definition code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS , VERTICAL_SCROLLBAR_AS_NEEDED sample code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED definition code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED , VERTICAL_SCROLLBAR_NEVER sample code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER definition code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER , VERTICAL_SCROLLBAR_POLICY sample code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_POLICY definition code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_POLICY , VIEWPORT sample code for javax.swing.ScrollPaneConstants.VIEWPORT definition code for javax.swing.ScrollPaneConstants.VIEWPORT
 
Constructor Summary
BasicScrollPaneUI sample code for javax.swing.plaf.basic.BasicScrollPaneUI.BasicScrollPaneUI() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.BasicScrollPaneUI() ()
           
 
Method Summary
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener createHSBChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createHSBChangeListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createHSBChangeListener() ()
           
protected  MouseWheelListener sample code for java.awt.event.MouseWheelListener definition code for java.awt.event.MouseWheelListener createMouseWheelListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createMouseWheelListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createMouseWheelListener() ()
          Creates an instance of MouseWheelListener, which is added to the JScrollPane by installUI().
protected  PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createPropertyChangeListener() ()
          Creates an instance of PropertyChangeListener that's added to the JScrollPane by installUI().
static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI createUI sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  x)
           
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener createViewportChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createViewportChangeListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createViewportChangeListener() ()
           
protected  ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener createVSBChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createVSBChangeListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createVSBChangeListener() ()
           
 Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension getMaximumSize sample code for javax.swing.plaf.basic.BasicScrollPaneUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.getMaximumSize(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Returns the specified component's maximum size appropriate for the look and feel.
protected  void installDefaults sample code for javax.swing.plaf.basic.BasicScrollPaneUI.installDefaults(javax.swing.JScrollPane) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.installDefaults(javax.swing.JScrollPane) (JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  scrollpane)
           
protected  void installKeyboardActions sample code for javax.swing.plaf.basic.BasicScrollPaneUI.installKeyboardActions(javax.swing.JScrollPane) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.installKeyboardActions(javax.swing.JScrollPane) (JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  c)
           
protected  void installListeners sample code for javax.swing.plaf.basic.BasicScrollPaneUI.installListeners(javax.swing.JScrollPane) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.installListeners(javax.swing.JScrollPane) (JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  c)
           
 void installUI sample code for javax.swing.plaf.basic.BasicScrollPaneUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.installUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  x)
          Configures the specified component appropriate for the look and feel.
 void paint sample code for javax.swing.plaf.basic.BasicScrollPaneUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.paint(java.awt.Graphics, javax.swing.JComponent) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g, JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Paints the specified component appropriate for the look and feel.
protected  void syncScrollPaneWithViewport sample code for javax.swing.plaf.basic.BasicScrollPaneUI.syncScrollPaneWithViewport() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.syncScrollPaneWithViewport() ()
           
protected  void uninstallDefaults sample code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallDefaults(javax.swing.JScrollPane) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallDefaults(javax.swing.JScrollPane) (JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  c)
           
protected  void uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallKeyboardActions(javax.swing.JScrollPane) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallKeyboardActions(javax.swing.JScrollPane) (JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  c)
           
protected  void uninstallListeners sample code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallListeners(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallListeners(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
           
 void uninstallUI sample code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Reverses configuration which was done on the specified component during installUI.
protected  void updateColumnHeader sample code for javax.swing.plaf.basic.BasicScrollPaneUI.updateColumnHeader(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.updateColumnHeader(java.beans.PropertyChangeEvent) (PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)
           
protected  void updateRowHeader sample code for javax.swing.plaf.basic.BasicScrollPaneUI.updateRowHeader(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.updateRowHeader(java.beans.PropertyChangeEvent) (PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)
           
protected  void updateScrollBarDisplayPolicy sample code for javax.swing.plaf.basic.BasicScrollPaneUI.updateScrollBarDisplayPolicy(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.updateScrollBarDisplayPolicy(java.beans.PropertyChangeEvent) (PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)
           
protected  void updateViewport sample code for javax.swing.plaf.basic.BasicScrollPaneUI.updateViewport(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.updateViewport(java.beans.PropertyChangeEvent) (PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
contains sample code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) definition code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) , getAccessibleChild sample code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) definition code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) , getAccessibleChildrenCount sample code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) , getMinimumSize sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) , getPreferredSize sample code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) , update sample code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
 
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() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , 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

scrollpane sample code for javax.swing.plaf.basic.BasicScrollPaneUI.scrollpane

protected JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  scrollpane

vsbChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.vsbChangeListener

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  vsbChangeListener

hsbChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.hsbChangeListener

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  hsbChangeListener

viewportChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.viewportChangeListener

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  viewportChangeListener

spPropertyChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.spPropertyChangeListener

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  spPropertyChangeListener
Constructor Detail

BasicScrollPaneUI sample code for javax.swing.plaf.basic.BasicScrollPaneUI() definition code for javax.swing.plaf.basic.BasicScrollPaneUI()

public BasicScrollPaneUI()
Method Detail

createUI sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createUI(javax.swing.JComponent)

public static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI  createUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  x)

paint sample code for javax.swing.plaf.basic.BasicScrollPaneUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.paint(java.awt.Graphics, javax.swing.JComponent)

public void paint(Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g,
                  JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)
Paints the specified component appropriate for the look and feel. This method is invoked from the ComponentUI.update method when the specified component is being painted. Subclasses should override this method and use the specified Graphics object to render the content of the component.

Overrides:
paint sample code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
g - the Graphics context in which to paint
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)

getMaximumSize sample code for javax.swing.plaf.basic.BasicScrollPaneUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.getMaximumSize(javax.swing.JComponent)

public Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  getMaximumSize(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent)
Returns the specified component's maximum size appropriate for the look and feel. If null is returned, the maximum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.

Overrides:
getMaximumSize sample code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
Returns:
new Dimension(Short.MAX_VALUE, Short.MAX_VALUE)
See Also:
JComponent.getMaximumSize() sample code for javax.swing.JComponent.getMaximumSize() definition code for javax.swing.JComponent.getMaximumSize() , LayoutManager2.maximumLayoutSize(java.awt.Container) sample code for java.awt.LayoutManager2.maximumLayoutSize(java.awt.Container) definition code for java.awt.LayoutManager2.maximumLayoutSize(java.awt.Container)

installDefaults sample code for javax.swing.plaf.basic.BasicScrollPaneUI.installDefaults(javax.swing.JScrollPane) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.installDefaults(javax.swing.JScrollPane)

protected void installDefaults(JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  scrollpane)

installListeners sample code for javax.swing.plaf.basic.BasicScrollPaneUI.installListeners(javax.swing.JScrollPane) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.installListeners(javax.swing.JScrollPane)

protected void installListeners(JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  c)

installKeyboardActions sample code for javax.swing.plaf.basic.BasicScrollPaneUI.installKeyboardActions(javax.swing.JScrollPane) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.installKeyboardActions(javax.swing.JScrollPane)

protected void installKeyboardActions(JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  c)

installUI sample code for javax.swing.plaf.basic.BasicScrollPaneUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.installUI(javax.swing.JComponent)

public void installUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  x)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent)
Configures the specified component appropriate for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:
  1. Install any default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
  2. Install a LayoutManager on the component if necessary.
  3. Create/add any required sub-components to the component.
  4. Create/install event listeners on the component.
  5. Create/install a PropertyChangeListener on the component in order to detect and respond to component property changes appropriately.
  6. Install keyboard UI (mnemonics, traversal, etc.) on the component.
  7. Initialize any appropriate instance data.

Overrides:
installUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
x - the component where this UI delegate is being installed
See Also:
ComponentUI.uninstallUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) , JComponent.setUI(javax.swing.plaf.ComponentUI) sample code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) definition code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

uninstallDefaults sample code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallDefaults(javax.swing.JScrollPane) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallDefaults(javax.swing.JScrollPane)

protected void uninstallDefaults(JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  c)

uninstallListeners sample code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallListeners(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallListeners(javax.swing.JComponent)

protected void uninstallListeners(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)

uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallKeyboardActions(javax.swing.JScrollPane) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallKeyboardActions(javax.swing.JScrollPane)

protected void uninstallKeyboardActions(JScrollPane sample code for javax.swing.JScrollPane definition code for javax.swing.JScrollPane  c)

uninstallUI sample code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.uninstallUI(javax.swing.JComponent)

public void uninstallUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent)
Reverses configuration which was done on the specified component during installUI. This method is invoked when this UIComponent instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in installUI, being careful to leave the JComponent instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:
  1. Remove any UI-set borders from the component.
  2. Remove any UI-set layout managers on the component.
  3. Remove any UI-added sub-components from the component.
  4. Remove any UI-added event/property listeners from the component.
  5. Remove any UI-installed keyboard UI from the component.
  6. Nullify any allocated instance data objects to allow for GC.

Overrides:
uninstallUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.installUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

syncScrollPaneWithViewport sample code for javax.swing.plaf.basic.BasicScrollPaneUI.syncScrollPaneWithViewport() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.syncScrollPaneWithViewport()

protected void syncScrollPaneWithViewport()

createViewportChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createViewportChangeListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createViewportChangeListener()

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  createViewportChangeListener()

createHSBChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createHSBChangeListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createHSBChangeListener()

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  createHSBChangeListener()

createVSBChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createVSBChangeListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createVSBChangeListener()

protected ChangeListener sample code for javax.swing.event.ChangeListener definition code for javax.swing.event.ChangeListener  createVSBChangeListener()

createMouseWheelListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createMouseWheelListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createMouseWheelListener()

protected MouseWheelListener sample code for java.awt.event.MouseWheelListener definition code for java.awt.event.MouseWheelListener  createMouseWheelListener()
Creates an instance of MouseWheelListener, which is added to the JScrollPane by installUI(). The returned MouseWheelListener is used to handle mouse wheel-driven scrolling.

Returns:
MouseWheelListener which implements wheel-driven scrolling
Since:
1.4
See Also:
installUI(javax.swing.JComponent) sample code for javax.swing.plaf.basic.BasicScrollPaneUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.installUI(javax.swing.JComponent) , BasicScrollPaneUI.MouseWheelHandler sample code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler definition code for javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler

updateScrollBarDisplayPolicy sample code for javax.swing.plaf.basic.BasicScrollPaneUI.updateScrollBarDisplayPolicy(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.updateScrollBarDisplayPolicy(java.beans.PropertyChangeEvent)

protected void updateScrollBarDisplayPolicy(PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)

updateViewport sample code for javax.swing.plaf.basic.BasicScrollPaneUI.updateViewport(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.updateViewport(java.beans.PropertyChangeEvent)

protected void updateViewport(PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)

updateRowHeader sample code for javax.swing.plaf.basic.BasicScrollPaneUI.updateRowHeader(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.updateRowHeader(java.beans.PropertyChangeEvent)

protected void updateRowHeader(PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)

updateColumnHeader sample code for javax.swing.plaf.basic.BasicScrollPaneUI.updateColumnHeader(java.beans.PropertyChangeEvent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.updateColumnHeader(java.beans.PropertyChangeEvent)

protected void updateColumnHeader(PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  e)

createPropertyChangeListener sample code for javax.swing.plaf.basic.BasicScrollPaneUI.createPropertyChangeListener() definition code for javax.swing.plaf.basic.BasicScrollPaneUI.createPropertyChangeListener()

protected PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  createPropertyChangeListener()
Creates an instance of PropertyChangeListener that's added to the JScrollPane by installUI(). Subclasses can override this method to return a custom PropertyChangeListener, e.g.
 class MyScrollPaneUI extends BasicScrollPaneUI {
    protected PropertyChangeListener createPropertyChangeListener() {
        return new MyPropertyChangeListener();
    }
    public class MyPropertyChangeListener extends PropertyChangeListener {
        public void propertyChange(PropertyChangeEvent e) {
            if (e.getPropertyName().equals("viewport")) {
                // do some extra work when the viewport changes
            }
            super.propertyChange(e);
        }
    }
 }
 

See Also:
PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener , installUI(javax.swing.JComponent) sample code for javax.swing.plaf.basic.BasicScrollPaneUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicScrollPaneUI.installUI(javax.swing.JComponent)