Java Code Examples for javax.swing.JScrollPane#addPropertyChangeListener()
The following examples show how to use
javax.swing.JScrollPane#addPropertyChangeListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SeaGlassScrollPaneUI.java From seaglass with Apache License 2.0 | 5 votes |
protected void installListeners(JScrollPane c) { vsbChangeListener = createVSBChangeListener(); vsbPropertyChangeListener = createVSBPropertyChangeListener(); hsbChangeListener = createHSBChangeListener(); hsbPropertyChangeListener = createHSBPropertyChangeListener(); viewportChangeListener = createViewportChangeListener(); spPropertyChangeListener = createPropertyChangeListener(); JViewport viewport = scrollpane.getViewport(); JScrollBar vsb = scrollpane.getVerticalScrollBar(); JScrollBar hsb = scrollpane.getHorizontalScrollBar(); if (viewport != null) { viewport.addChangeListener(viewportChangeListener); } if (vsb != null) { vsb.getModel().addChangeListener(vsbChangeListener); vsb.addPropertyChangeListener(vsbPropertyChangeListener); } if (hsb != null) { hsb.getModel().addChangeListener(hsbChangeListener); hsb.addPropertyChangeListener(hsbPropertyChangeListener); } scrollpane.addPropertyChangeListener(spPropertyChangeListener); mouseScrollListener = createMouseWheelListener(); scrollpane.addMouseWheelListener(mouseScrollListener); // From SynthScrollPaneUI. c.addPropertyChangeListener(this); if (UIManager.getBoolean("ScrollPane.useChildTextComponentFocus")) { viewportViewFocusHandler = new ViewportViewFocusHandler(); c.getViewport().addContainerListener(viewportViewFocusHandler); Component view = c.getViewport().getView(); if (view instanceof JTextComponent) { view.addFocusListener(viewportViewFocusHandler); } } }
Example 2
Source File: XTextAreaPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 3
Source File: XTextAreaPeer.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 4
Source File: XTextAreaPeer.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 5
Source File: XTextAreaPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 6
Source File: DocumentViewOp.java From netbeans with Apache License 2.0 | 4 votes |
MouseWheelDelegator(JScrollPane scrollPane) { this.scrollPane = scrollPane; scrollPane.addPropertyChangeListener(this); updateListeners(); }
Example 7
Source File: XTextAreaPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 8
Source File: XTextAreaPeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 9
Source File: XTextAreaPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 10
Source File: XTextAreaPeer.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 11
Source File: XTextAreaPeer.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 12
Source File: XTextAreaPeer.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 13
Source File: XTextAreaPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 14
Source File: XTextAreaPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }
Example 15
Source File: XTextAreaPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
@Override protected void installListeners(JScrollPane scrollPane) { super.installListeners(scrollPane); propertyChangeHandler = createPropertyChangeHandler(); scrollPane.addPropertyChangeListener(propertyChangeHandler); }