Package java.awt

Examples of java.awt.Component.validate()


        }

        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

    super.sizeColumnsToFit(resizingColumn);
    if (getEditingColumn() != -1 && getColumnClass(editingColumn) == TreeTableModel.class) {
      Rectangle cellRect = getCellRect(realEditingRow(), getEditingColumn(), false);
      Component component = getEditorComponent();
      component.setBounds(cellRect);
      component.validate();
    }
  }

  /**
   * Overridden to pass the new rowHeight to the tree.
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

    final int y = (int) ((getTopBorder() + (StrictGeomUtility.toExternalValue(data.getY()) - bounds.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);

    List<Element> selectedElements = getRenderContext().getSelectionModel().getSelectedElementsOfType(Element.class);
    final Element[] visualElements = selectedElements.toArray(new Element[selectedElements.size()]);
    if (visualElements.length > 0)
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

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.