Package java.awt

Examples of java.awt.Component.validate()


                                                       expanded,
                                                       treeModel.isLeaf(cell),
                                                       row, false);
          // Make sure the layout is valid.
          rendererPane.add(rend);
          rend.validate();
          prefSize = rend.getPreferredSize();
        }
      if (size != null)
        {
          size.x = getRowX(row, depth);
View Full Code Here


        }
        if (parent instanceof JComponent) {
            ((JComponent) parent).revalidate();
        } else {
            parent.invalidate();
            parent.validate();
        }
        parent.repaint();
    }

View Full Code Here

        // Only ever removed when UI changes, this is OK!
        Component component = view.getRendererComponent(graph, focus,
            false, false);
        if (component != null) {
          graph.add(component);
          component.validate();
          Dimension d = component.getPreferredSize();
          int inset = 2 * GraphConstants.getInset(view
              .getAllAttributes());
          d.width += inset;
          d.height += inset;
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

    {
      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);
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.