Package java.awt

Examples of java.awt.Container.validate()


      contents.add(toolbar, value);
      boolean vertical = value == BorderLayout.WEST || value == BorderLayout.EAST;
      toolbar.setOrientation(vertical ? Toolbar.VERTICAL : Toolbar.HORIZONTAL);
    }
    contents.validate();
  }
 
  public Project getProject() {
    return proj;
  }
View Full Code Here


      setVisible(false);
    } else {
      Container parent = InternalWindow.this.getParent();
      if (parent != null) {
        parent.remove(InternalWindow.this);
        parent.validate();
        parent.repaint();
      }
    }
    // notify listeners
    for (CloseListener listener : closeListeners) {
View Full Code Here

        int ovry = y + iFrameSize.height - rootSize.height;
        x = Math.max((ovrx > 0? x - ovrx: x), 0);
        y = Math.max((ovry > 0? y - ovry: y), 0);
        iFrame.setBounds(x, y, iFrameSize.width, iFrameSize.height);

        parent.validate();
        try {
            iFrame.setSelected(true);
        } catch (java.beans.PropertyVetoException e) {}

        return iFrame;
View Full Code Here

  int ovry = y + iFrameSize.height - rootSize.height;
  x = Math.max((ovrx > 0? x - ovrx: x), 0);
  y = Math.max((ovry > 0? y - ovry: y), 0);
  iFrame.setBounds(x, y, iFrameSize.width, iFrameSize.height);

         parent.validate();
        try {
            iFrame.setSelected(true);
        } catch (java.beans.PropertyVetoException e) {}
        return iFrame;
View Full Code Here

                _picture = new Picture(xSize, ySize);
                _picture.setImage(image);
                _picture.setBackground(null);
                container.add("Center", _picture);
                container.validate();
                container.invalidate();
                container.repaint();
                container.doLayout();

                Container c = container.getParent();
View Full Code Here

                Container c = container.getParent();

                while (c.getParent() != null) {
                    c.invalidate();
                    c.validate();
                    c = c.getParent();

                    if (c instanceof JFrame) {
                        ((JFrame) c).pack();
                    }
View Full Code Here

                //_picture.setImage(image);
                _picture
                        .setImage(_convertBWImageToPackedRGBImage((IntMatrixToken) in));
                _picture.setBackground(null);
                container.add("Center", _picture);
                container.validate();
                container.invalidate();
                container.repaint();
                container.doLayout();

                Container c = container.getParent();
View Full Code Here

                Container c = container.getParent();

                while (c.getParent() != null) {
                    c.invalidate();
                    c.validate();
                    c = c.getParent();

                    if (c instanceof JFrame) {
                        ((JFrame) c).pack();
                    }
View Full Code Here

        int ovry = y + iFrameSize.height - rootSize.height;
        x = Math.max((ovrx > 0? x - ovrx: x), 0);
        y = Math.max((ovry > 0? y - ovry: y), 0);
        iFrame.setBounds(x, y, iFrameSize.width, iFrameSize.height);

        parent.validate();
        try {
            iFrame.setSelected(true);
        } catch (java.beans.PropertyVetoException e) {}

        return iFrame;
View Full Code Here

 
  public void removeSelf(){
    Container c = getParent();
    if (c != null){
      c.remove(this);
      c.validate();
      validate();
      c.repaint(50L);
    }
  }
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.