Package charva.awt

Examples of charva.awt.Component.minimumSize()


  int width = 0;
  int height = 0;
  Enumeration<Component> e = _tabComponents.elements();
  while (e.hasMoreElements()) {
      Component c = e.nextElement();
      Dimension size = c.minimumSize();
      if (size.width > width)
    width = size.width;
      if (size.height > height)
    height = size.height;
  }
View Full Code Here


        Dimension size = new Dimension(0, 0);

        Component[] components = container_.getComponents();
        for (int i = 0; i < components.length; i++) {
            Component c = components[ i];
            Dimension d = c.minimumSize();
            if (_axis == X_AXIS) {
                size.width += d.width;
                if (d.height > size.height) size.height = d.height;
            } else {
                size.height += d.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.