Package java.awt

Examples of java.awt.Component.validate()


//                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

            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

            Component underMouse = umInfo.underMouse;
            if (dropEvent.isDropAccepted()) {
                if (underMouse instanceof JComponent) {
                    ((JComponent) underMouse).revalidate();
                } else if (underMouse instanceof Component) {
                    underMouse.validate();
                    underMouse.repaint();
                }

                fireDockingActionEvent();
                return true;
View Full Code Here

                processingRoots = new ArrayList(invalidRoots);
                invalidRoots.clear();
            }
            for (Iterator it = processingRoots.iterator(); it.hasNext(); ) {
                Component c = (Component)it.next();
                c.validate();
            }
        }
    }

    public void addDirtyRegion(final JComponent c, final int x, final int y, final int w, final int h) {
View Full Code Here

                processingRoots = new ArrayList(invalidRoots);
                invalidRoots.clear();
            }
            for (Iterator it = processingRoots.iterator(); it.hasNext(); ) {
                Component c = (Component)it.next();
                c.validate();
            }
        }
    }

    public void addDirtyRegion(final JComponent c, final int x, final int y, final int w, final int h) {
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

                processingRoots = new ArrayList(invalidRoots);
                invalidRoots.clear();
            }
            for (Iterator it = processingRoots.iterator(); it.hasNext(); ) {
                Component c = (Component)it.next();
                c.validate();
            }
        }
    }

    public void addDirtyRegion(final JComponent c, final int x, final int y, final int w, final int h) {
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

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.