Package javax.swing

Examples of javax.swing.JScrollPane.addComponentListener()


    scrollpane.setComponentOrientation(chooser.getComponentOrientation());
    scrollpane.getViewport().setBackground(SkyTheme.COLOR_BACKGROUND_LIGHT_LIGHT);

    // Adjust width of first column so the table fills the viewport when
    // first displayed (temporary listener).
    scrollpane.addComponentListener(new ComponentAdapter()
    {
      public void componentResized(ComponentEvent e)
      {
        JScrollPane sp = (JScrollPane) e.getComponent();
        fixNameColumnWidth(sp.getViewport().getSize().width);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.