Package java.awt

Examples of java.awt.Component.validate()


            Rectangle cellRect, int row, int column) {
        if (table.isEditing() && table.getEditingRow()==row &&
                                 table.getEditingColumn()==column) {
            Component component = table.getEditorComponent();
            component.setBounds(cellRect);
            component.validate();
        }
        else {
            TableCellRenderer renderer = table.getCellRenderer(row, column);
            Component component = table.prepareRenderer(renderer, row, column);
            Color b = component.getBackground();
View Full Code Here


//                setIcon(m_oPropertyValueIcon);
                } else if (sLabelText.equals(XUnoFacetteNode.SSERVICEDESCRIPTION)){
//                setIcon(m_oServiceIcon);
                } else{
                    setText(sLabelText);
                    rc.validate();
                }
                setSize(getPreferredSize()); //fm.stringWidth(sLabelText), (int) getSize().getHeight());
                rc.validate();
//            nWidth = (int) rc.getPreferredSize().getWidth();
                doLayout();
View Full Code Here

                } else{
                    setText(sLabelText);
                    rc.validate();
                }
                setSize(getPreferredSize()); //fm.stringWidth(sLabelText), (int) getSize().getHeight());
                rc.validate();
//            nWidth = (int) rc.getPreferredSize().getWidth();
                doLayout();
            }
        } catch (RuntimeException e) {
            System.out.println("Sorry, icon for treecell could not be displayed.");
View Full Code Here

        }

        component.setBounds
            ((int) area.getX(), (int) area.getY(),
                (int) area.getWidth(), (int) area.getHeight());
        component.validate();
        component.paint(graphics);
      }
      finally
      {
        cleanUp();
View Full Code Here

        if (component instanceof Window == false && isOwnPeerConnected() == false)
        {
          peerSupply.pack();
          contentPane.add(component);
          contentPane.validate();
          component.validate();
        }
        else if (isOwnPeerConnected())
        {
          retval = component.getSize();
          return;
View Full Code Here

          retval = component.getSize();
          return;
        }
        else
        {
          component.validate();
        }
        retval = component.getPreferredSize();
      }
      finally
      {
View Full Code Here

    if (controller.getMap() != nodeModel.getMap()) {
      return;
    }
    final IMapViewManager viewController = controller.getMapViewManager();
    final Component map = viewController.getMapViewComponent();
    map.validate();
    map.invalidate();
    final Component node = viewController.getComponent(nodeModel);
    if (node == null) {
      return;
    }
View Full Code Here

    final int maxWidth = ncs.getMaxWidth(view.getModel());
    int y = 0;
    for (int i = 0; i < componentCount; i++) {
      final Component component = parent.getComponent(i);
      if (component.isVisible()) {
        component.validate();
        final Dimension preferredCompSize;
        if( width == 0)
          preferredCompSize = new Dimension();
        else if (component instanceof ZoomableLabel){
          preferredCompSize=  ((ZoomableLabel)component).getPreferredSize(maxWidth);
View Full Code Here

    final Dimension prefSize = new Dimension(0, 0);
    final int componentCount = parent.getComponentCount();
    for (int i = 0; i < componentCount; i++) {
      final Component component = parent.getComponent(i);
      if (component.isVisible()) {
        component.validate();
        final Dimension preferredCompSize;
        if(component instanceof ZoomableLabel)
          preferredCompSize = ((ZoomableLabel)component).getPreferredSize(width);
        else
          preferredCompSize = component.getPreferredSize();
View Full Code Here

        component.invalidate();

        Component parent = component;
        while( parent.getParent() != null )
            parent = parent.getParent();
        parent.validate();
       
       
        Dimension size = component.getSize();
        Dimension preferred = component.getPreferredSize();
       
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.