Java JScrollPane bindHorizontalScrolling(JScrollPane jScrollPane1, JScrollPane jScrollPane2)

Here you can find the source of bindHorizontalScrolling(JScrollPane jScrollPane1, JScrollPane jScrollPane2)

Description

bind Horizontal Scrolling

License

Open Source License

Declaration

public static void bindHorizontalScrolling(JScrollPane jScrollPane1,
            JScrollPane jScrollPane2) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.JScrollPane;

public class Main {
    public static void bindHorizontalScrolling(JScrollPane jScrollPane1,
            JScrollPane jScrollPane2) {
        jScrollPane2.getHorizontalScrollBar().setModel(
                jScrollPane1.getHorizontalScrollBar().getModel());
    }//from  ww  w  .j a va2  s  . com
}

Related

  1. addStyle(JScrollPane jScrollPane, String labelName)
  2. applyCorrectViewPosition(JComponent targetComponent, JScrollPane scrollPane)
  3. buildLabeledScroller(String label, Component contents)
  4. createJScrollPane(JComponent component)
  5. createScrollPane(JComponent content)
  6. createSelfManagedScrollPane(final Component view, final JComponent parentToRevalidate)