Package javax.swing

Examples of javax.swing.JFrame.dispose()


        final String expected = "net.entropysoft.transmorph.ConverterException: Could not convert given object with class 'java.lang.String' to object with type signature 'int'";
        Assert.assertEquals("conversion error was not detected", expected, widget.getData().trim());

        widget.stop();
        jf.dispose();

    }

    private JTextField getTextField(final CommandScalarField widget) {
View Full Code Here


        widget = new CommandDeviceCombo.Builder(m_deviceName).commands(commandList).jframe(jf)
                .build();
        Sleeper.SECONDS.sleep(4);
        commandListTest(widget, commandList);

        jf.dispose();
    }

    private void commandListTest(final CommandDeviceCombo widget, final String[] commandList) {
        // test list of command is correct
        final String[] elements = getCommands(widget);
View Full Code Here

            Assert.assertTrue("reject confirmation failed", m_deviceProxy.read_attribute(attr)
                    .extractBoolean());
        }

        // clean
        jf.dispose();
        widget.stop();
    }

    @Deprecated
    protected Color getColor(final CommandDeviceCombo widget) {
View Full Code Here

        // test with no element selected
        toolTiptest(userToolTip, widget);
        // test change selected command
        toolTipTestOn2Commands(userToolTip, widget, 0, 1);

        jf.dispose();
    }

    private void toolTipTestOn2Commands(final String expectedToolTip,
            final CommandDeviceCombo widget, final int indexFirstCommand,
            final int indexSecondCommand) {
View Full Code Here

    Assert.assertTrue("Listener should not be called",listenerTest.getNotifyCount() == 0);

        // clear
        widget.stop();
        jf.remove(widget);
        jf.dispose();
  }
}
View Full Code Here

      //

      widgetAfterStart = new CommandCombo.Builder(commands).jframe(jfAfterStart).build();
      Sleeper.SECONDS.sleep(5);
      controlStringAndNumberValueChange(widgetAfterStart, 1);
      jfAfterStart.dispose();

      helpTextTest();

  }
View Full Code Here

    // test color is correct
    Assert.assertTrue("invalid Color", Color.RED.equals(getColor(widget)));

    // clean
    widget.stop();
    jf.dispose();
  }

  @Override
  protected void componentNotWritableTest() throws DevFailed {
View Full Code Here

      Sleeper.SECONDS.sleep(2);
      Assert.assertTrue("reject confirmation failed", m_deviceProxy.read_attribute(attr).extractBoolean());
    }

    // clean
    jf.dispose();
    widget.stop();
  }

  @Deprecated
  protected Color getColor(final CommandCombo widget) {
View Full Code Here

    // test with another command selected
    tth.enterIndexForCombo(widget, 1);
    toolTiptest(userToolTip, widget);

    jf.dispose();
  }

  private void inputListenerTest() throws DevFailed
  {
    final JFrame jf = new JFrame();
View Full Code Here

    Assert.assertTrue("Listener should not be called",listenerTest.getNotifyCount() == 0);

        // clear
        widget.stop();
        jf.remove(widget);
        jf.dispose();
  }
}
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.