Package java.awt

Examples of java.awt.Container.validate()


      return node;
    }
    removeChildComponents(parentComponent, node);
    ((DefaultMutableTreeNode) node.getParent()).remove(node);
    if (parentComponent.isShowing()) {
      parentComponent.validate();
      parentComponent.repaint();
    }
    return node;
  }
}
View Full Code Here


    main.validate();

    // add everything to the content pane
    Container con = this.getContentPane();
    con.add(main);
    con.validate();
    pack();
    this.setSize(300, 400);
  }

  /**
 
View Full Code Here

    Container con = this.getContentPane();
    con.setLayout(new BorderLayout());
    con.add(choicePanel, BorderLayout.NORTH);
    con.add(colorChooserPanel, BorderLayout.CENTER);
    con.add(buttonPanel, BorderLayout.SOUTH);
    con.validate();
    pack();
  }

  public static DiscreteOrGradientColor showDialog(Component component,
      String[] parameterNames) {
View Full Code Here

    main.validate();

    // add everything to the content pane
    Container con = this.getContentPane();
    con.add(main);
    con.validate();
    pack();
  }

  /**
   * Creates an instance of the organizer, but it's the responsibility of
View Full Code Here

          Container c = vizPanel;
          c.add(tpl);
         
          if (ui) {
            c.repaint();
            c.validate();
          }
        }
      }
    });
  }
View Full Code Here

  //when components are updated
  private void forceRepaint()
  {
    final Container contentPane = getContentPane();
    contentPane.invalidate();
    contentPane.validate();
    contentPane.repaint();
  }

  public void valueChanged(TreeSelectionEvent event)
  {
View Full Code Here

            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

            if (oldParent instanceof JComponent) {
                ((JComponent) oldParent).revalidate();
            } else {
                // not sure... never have non-j comps
                oldParent.invalidate();
                oldParent.validate();
            }
        }
    }

    protected void stopSearching() {
View Full Code Here

        JComponent parent = (JComponent) getParent();
       
        if (parent != null) {
            Container toplevel = parent.getTopLevelAncestor();
            parent.remove(this);
            toplevel.validate();
            toplevel.repaint();
        }
    }

    /**
 
View Full Code Here

        setBounds(x, y, width, height);
        glassPane.add(this);
        glassPane.setVisible(true);

        Container topLevel = getTopLevel();
        topLevel.validate();
        topLevel.repaint();
    }

}
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.