Package javax.swing

Examples of javax.swing.ScrollPaneLayout.minimumLayoutSize()


    view.setMinimumSize(new Dimension(100, 100));
    Insets i = sp.getInsets();
    Component[] c = sp.getComponents();
    // Check ScrollPane size < view size.
    sp.setSize(50, 50);
    h.check(l.minimumLayoutSize(sp),
            new Dimension(i.left + i.right + c[0].getMinimumSize().width,
                          i.top + i.bottom + c[0].getMinimumSize().height));
    // Check ScrollPane size > view size.
    sp.setSize(150, 150);
    h.check(l.minimumLayoutSize(sp),
View Full Code Here


    h.check(l.minimumLayoutSize(sp),
            new Dimension(i.left + i.right + c[0].getMinimumSize().width,
                          i.top + i.bottom + c[0].getMinimumSize().height));
    // Check ScrollPane size > view size.
    sp.setSize(150, 150);
    h.check(l.minimumLayoutSize(sp),
            new Dimension(i.left + i.right + c[0].getMinimumSize().width,
                          i.top + i.bottom + c[0].getMinimumSize().height));
  }
}
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.