Package javax.swing

Examples of javax.swing.JScrollPane.revalidate()


        Dimension spDim = new Dimension(
            viewportSize.width + ins.left + ins.right + scrollBarWidth,
            viewportSize.height + ins.top + ins.bottom + ((header != null) ? header.getPreferredSize().height : 0));
        if (!(sp.isMinimumSizeSet() && spDim.equals(sp.getMinimumSize()))) {
          sp.setMinimumSize(spDim);               
          sp.revalidate();
        }
      }
      else {
        // The array field is not parented onto a scroll pane, set the minimum size to allow
        // proper layout to occur.
View Full Code Here


        Dimension spDim = new Dimension(
            viewportSize.width + ins.left + ins.right + scrollBarWidth,
            viewportSize.height + ins.top + ins.bottom + ((header != null) ? header.getPreferredSize().height : 0));
        if (!(sp.isMinimumSizeSet() && spDim.equals(sp.getMinimumSize()))) {
          sp.setMinimumSize(spDim);               
          sp.revalidate();
        }
      }
      else {
        // The array field is not parented onto a scroll pane, set the minimum size to allow
        // proper layout to occur.
View Full Code Here

        Dimension spDim = new Dimension(
            viewportSize.width + ins.left + ins.right + scrollBarWidth,
            viewportSize.height + ins.top + ins.bottom + ((header != null) ? header.getPreferredSize().height : 0));
        if (!(sp.isMinimumSizeSet() && spDim.equals(sp.getMinimumSize()))) {
          sp.setMinimumSize(spDim);               
          sp.revalidate();
        }
      }
      else {
        // The array field is not parented onto a scroll pane, set the minimum size to allow
        // proper layout to occur.
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.