ActionListener
, ComponentListener
, EventListener
BasicTreeUI
public class BasicTreeUI.ComponentHandler extends ComponentAdapter implements ActionListener
Modifier and Type | Field | Description |
---|---|---|
protected JScrollBar |
scrollBar |
ScrollBar that is being adjusted. |
protected Timer |
timer |
Timer used when inside a scrollpane and the scrollbar is adjusting. |
Constructor | Description |
---|---|
ComponentHandler() |
Constructs a ComponentHandler . |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed |
Public as a result of Timer. |
protected JScrollPane |
getScrollPane() |
Returns the JScrollPane housing the JTree , or null if one isn't found. |
protected void |
startTimer() |
Creates, if necessary, and starts a Timer to check if need to resize the bounds. |
componentHidden, componentMoved, componentResized, componentShown
protected Timer timer
protected JScrollBar scrollBar
public ComponentHandler()
ComponentHandler
.protected void startTimer()
protected JScrollPane getScrollPane()
JScrollPane
housing the JTree
, or null if one isn't found.JScrollPane
housing the JTree
public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
ae
- the event to be processed
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/basic/BasicTreeUI.ComponentHandler.html