Package javax.swing

Examples of javax.swing.JInternalFrame.addPropertyChangeListener()


  }
 
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame("Title");
    f.addPropertyChangeListener(this);
    Icon icon = MetalIconFactory.getHorizontalSliderThumbIcon();
    f.setFrameIcon(icon);
    harness.check(f.getFrameIcon(), icon);
    harness.check(lastEvent.getPropertyName(),
            JInternalFrame.FRAME_ICON_PROPERTY);
View Full Code Here


   */
  private void testBoundProperty(TestHarness h)
  {
    h.checkPoint("testBoundProperty");
    JInternalFrame t = new JInternalFrame();
    t.addPropertyChangeListener(new TestPropertyChangeHandler());
    try
      {
       
        JFrame fr = new JFrame();
        fr.getContentPane().add(t);
View Full Code Here

  }
 
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame("F1");
    f.addPropertyChangeListener(this);
    harness.check(f.getDefaultCloseOperation(),
            JInternalFrame.DISPOSE_ON_CLOSE);
    f.setDefaultCloseOperation(JInternalFrame.DO_NOTHING_ON_CLOSE);
    harness.check(f.getDefaultCloseOperation(),
            JInternalFrame.DO_NOTHING_ON_CLOSE);
View Full Code Here

  }
 
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame("Title");
    f.addPropertyChangeListener(this);
    JDesktopIcon icon = new JDesktopIcon(f);
    f.setDesktopIcon(icon);
    harness.check(f.getDesktopIcon(), icon);
    harness.check(lastEvent.getPropertyName(), "desktopIcon");
    harness.check(lastEvent.getSource(), f);
View Full Code Here

   */
  private void testBoundProperty(TestHarness h)
  {
    h.checkPoint("testBoundProperty");
    JInternalFrame t = new JInternalFrame();
    t.addPropertyChangeListener(new TestPropertyChangeHandler());
    try
      {
        t.setClosed(false);
        propertyChanged = null;
        t.setClosed(true);
View Full Code Here

    f.setVisible(true);
    fr.pack();
    fr.setVisible(true);

    f.addVetoableChangeListener(this);
    f.addPropertyChangeListener(this);
    f.addInternalFrameListener(this);
    try
      {
        f.setSelected(true);
      }
View Full Code Here

   */
  private void testBoundProperty(TestHarness h)
  {
    h.checkPoint("testBoundProperty");
    JInternalFrame t = new JInternalFrame();
    t.addPropertyChangeListener(new TestPropertyChangeHandler());
    t.setMaximizable(false);
    propertyChanged = null;
    t.setMaximizable(true);
    h.check(propertyChanged, "maximizable");
  }
View Full Code Here

 
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame("F1");
    harness.check(!f.isIconifiable());
    f.addPropertyChangeListener(this);
    f.setIconifiable(true);
    harness.check(f.isIconifiable());
    harness.check(lastEvent.getPropertyName(), "iconable");
    harness.check(lastEvent.getSource(), f);
    harness.check(lastEvent.getOldValue(), Boolean.FALSE);
View Full Code Here

  public void test(TestHarness harness)
  {
    JDesktopPane desktop = new JDesktopPane();
    JInternalFrame f = new JInternalFrame("Title");
    desktop.add(f);
    f.addPropertyChangeListener(this);
    harness.check(f.getNormalBounds(), new Rectangle());
    f.setBounds(4, 3, 2, 1);
    harness.check(f.getNormalBounds(), new Rectangle(4, 3, 2, 1));
   
    Rectangle normalBounds = new Rectangle(1, 2, 3, 4);
View Full Code Here

 
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame("F1");
    harness.check(!f.isResizable());
    f.addPropertyChangeListener(this);
    f.setResizable(true);
    harness.check(f.isResizable());
    harness.check(lastEvent.getPropertyName(), "resizable");
    harness.check(lastEvent.getSource(), f);
    harness.check(lastEvent.getOldValue(), Boolean.FALSE);
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.