Package java.awt

Examples of java.awt.Component.invalidate()


    Component c = new Component(){};
    f.add(c);
    f.setSize(100, 100);
    f.setVisible(true);

    c.invalidate();
    h.check(!c.isValid());
    c.validate();
    h.check(c.isValid());
  }
View Full Code Here


  {
    h.checkPoint("notShowing");

    Component c = new Component(){};

    c.invalidate();
    h.check(!c.isValid());
    c.validate();
    h.check(!c.isValid());
  }
}
View Full Code Here

    private void handleComponentChange(ComponentEvent e) {
        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();
        }
    }
View Full Code Here

                // This is just clearing the value, it's like to be set again later to the real value, so do nothing here
                return;
            }
            Component c = ((JComponent)evt.getSource()).getParent();
            if (c != null) {
                c.invalidate();
                c.validate();
            }
        }
    }
}
View Full Code Here

    private void handleComponentChange(ComponentEvent e) {
        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();
        }
    }
View Full Code Here

                // This is just clearing the value, it's like to be set again later to the real value, so do nothing here
                return;
            }
            Component c = ((JComponent)evt.getSource()).getParent();
            if (c != null) {
                c.invalidate();
                c.validate();
            }
        }
    }
}
View Full Code Here

            ((JComponent)comp).setMinimumSize(newSize );
        }
        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

            ((JComponent)comp).setMinimumSize(newSize );
        }
        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

            ((JComponent)comp).setMinimumSize(newSize );
        }
        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

            ((JComponent)comp).setMinimumSize(newSize );
        }
        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

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.