Package javax.swing.plaf.basic

Examples of javax.swing.plaf.basic.BasicSeparatorUI


   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    BasicSeparatorUI ui = new BasicSeparatorUI();
    JSeparator h = new JSeparator(JSeparator.HORIZONTAL);
    harness.check(ui.getMaximumSize(h), null);
    JSeparator v = new JSeparator(JSeparator.VERTICAL);
    harness.check(ui.getMaximumSize(v), null);
  }
View Full Code Here


   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    BasicSeparatorUI ui = new BasicSeparatorUI();
    JSeparator h = new JSeparator(JSeparator.HORIZONTAL);
    harness.check(ui.getMinimumSize(h), null);
    JSeparator v = new JSeparator(JSeparator.VERTICAL);
    harness.check(ui.getMinimumSize(v), null);
  }
View Full Code Here

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    BasicSeparatorUI ui = new BasicSeparatorUI();
    JSeparator h = new JSeparator(JSeparator.HORIZONTAL);
    harness.check(ui.getPreferredSize(h), new Dimension(0, 2));
    JSeparator v = new JSeparator(JSeparator.VERTICAL);
    harness.check(ui.getPreferredSize(v), new Dimension(2, 0));
  }
View Full Code Here

    /*
     * Test method for 'javax.swing.JSeparator.setUI(SeparatorUI)'
     */
    public void testSetUISeparatorUI() {
        SeparatorUI ui1 = new BasicSeparatorUI();
        SeparatorUI ui2 = new BasicSeparatorUI();
        separator.setUI(ui1);
        assertEquals(ui1, separator.ui);
        assertEquals(ui1, separator.getUI());
        separator.setUI(ui2);
        assertEquals(ui2, separator.ui);
View Full Code Here

TOP

Related Classes of javax.swing.plaf.basic.BasicSeparatorUI

Copyright © 2018 www.massapicom. 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.