Package java.awt

Examples of java.awt.Component.validate()


        }
        else {
            comp.setSize(this.value, comp.getHeight());
            // Force a layout
            comp.invalidate();
            comp.validate();
        }
    }
    public static void set(Component comp, int value){
        ActionMgr.addAction(new WidthInPixels(comp, value));
    }
View Full Code Here


        }
        else {
            comp.setSize(this.value, comp.getHeight());
            // Force a layout
            comp.invalidate();
            comp.validate();
        }
    }
    public static void set(Component comp, int value){
        ActionMgr.addAction(new WidthInPixels(comp, value));
    }
View Full Code Here

        Component c = e.getComponent().getParent();
        if (c != null && !this.isAdjusting) {
          // TF:03/11/2008:Added in an invalidate, because our parent wasn't necessarily getting
          // laid out properly because it might still be valid.
          c.invalidate();
            c.validate();
            e.getComponent().validate();
        }
    }

    public void componentHidden(ComponentEvent e) {
View Full Code Here

                return;
            }
            Component c = ((JComponent)evt.getSource()).getParent();
            if (c != null) {
                c.invalidate();
                c.validate();
            }
        }
    }
}
View Full Code Here

        }
        else {
            comp.setSize(comp.getWidth(), this.value);
            // Force a layout
            comp.invalidate();
            comp.validate();
        }
    }
    public static void set(Component comp, int value){
        ActionMgr.addAction(new HeightInPixels(comp, value));
    }
View Full Code Here

    final int y = (int) ((getTopBorder() + StrictGeomUtility.toExternalValue(data.getY())) * zoomFactor);
    final int width = (int) (StrictGeomUtility.toExternalValue(data.getWidth()) * zoomFactor);
    final int height = (int) (StrictGeomUtility.toExternalValue(data.getHeight()) * zoomFactor);
    editorComponent.setBounds(x, y, width, height);
    add(editorComponent);
    editorComponent.validate();
    inlineEditor.addCellEditorListener(this);

    final Element[] visualElements = getRenderContext().getSelectionModel().getSelectedVisualElements();
    if (visualElements.length > 0)
    {
View Full Code Here

  if (graduations != null)
      currentGraduation = graduations[0];
  setVisible(true);
  Component parent = getParent();
  if (parent != null)
      parent.validate();
    }

    /**
     * Constructs an invisible Slider.
     * use initialize to define it.
View Full Code Here

    }

    void updateParent() {
  Component parent = getParent();
  if (parent != null)
      parent.validate();
    }

    /**
     * ActionListener
     */
 
View Full Code Here

            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();
        }
        return this;
    }   
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.