Package java.awt

Examples of java.awt.Window.validate()


      {
        final Component component = getComponent();
        if (component instanceof Window)
        {
          final Window w = (Window) component;
          w.validate();
        }
        else if (isOwnPeerConnected())
        {
          final Window w = ComponentDrawable.getWindowAncestor(component);
          if (w != null)
View Full Code Here


        else if (isOwnPeerConnected())
        {
          final Window w = ComponentDrawable.getWindowAncestor(component);
          if (w != null)
          {
            w.validate();
          }
        }
        else
        {
          peerSupply.pack();
View Full Code Here

    Dimension newDim = new Dimension(dimension.width, newHeight);
    window.setSize(newDim);
    window.setMinimumSize(newDim);
    window.setMaximumSize(newDim);

    window.validate();
    window.repaint();
    table.revalidate();
    table.repaint();
  }
View Full Code Here

    Dimension newDim = new Dimension(dimension.width, newHeight);
    window.setSize(newDim);
    window.setMinimumSize(newDim);
    window.setMaximumSize(newDim);

    window.validate();
    window.repaint();
    table.revalidate();
    table.repaint();
  }
View Full Code Here

      {
        final Component component = getComponent();
        if (component instanceof Window)
        {
          final Window w = (Window) component;
          w.validate();
        }
        else if (isOwnPeerConnected())
        {
          final Window w = ComponentDrawable.getWindowAncestor(component);
          if (w != null)
View Full Code Here

        else if (isOwnPeerConnected())
        {
          final Window w = ComponentDrawable.getWindowAncestor(component);
          if (w != null)
          {
            w.validate();
          }
        }
        else
        {
          peerSupply.pack();
View Full Code Here

          int newH = Math.max(1, wind.getHeight()+yDelta);
          wind.setBounds(newPos.x, wind.getY(), newW, newH);
        }
        // invalidate()/validate() needed pre-1.6.
        wind.invalidate();
        wind.validate();
      }
      origPos.setLocation(newPos);
    }

    public void mousePressed(MouseEvent e) {
View Full Code Here

                if (!r.equals(startBounds)) {
                    w.setBounds(r);
                    // Defer repaint/validate on mouseReleased unless dynamic
                    // layout is active.
                    if (Toolkit.getDefaultToolkit().isDynamicLayoutActive()) {
                        w.validate();
                        getRootPane().repaint();
                    }
                }
            }
        }
View Full Code Here

          int newH = Math.max(1, wind.getHeight()+yDelta);
          wind.setBounds(newPos.x, wind.getY(), newW, newH);
        }
        // invalidate()/validate() needed pre-1.6.
        wind.invalidate();
        wind.validate();
      }
      origPos.setLocation(newPos);
    }

    public void mousePressed(MouseEvent e) {
View Full Code Here

      {
        final Component component = getComponent();
        if (component instanceof Window)
        {
          final Window w = (Window) component;
          w.validate();
        }
        else if (isOwnPeerConnected())
        {
          final Window w = ComponentDrawable.getWindowAncestor(component);
          if (w != null)
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.