7071727374757677787980
harness.check(ui2.getMaximumThumbSize(), new Dimension(4096, 4096)); // restore a sane look and feel try { UIManager.setLookAndFeel(new MetalLookAndFeel()); } catch (Exception e) { e.printStackTrace(); }
33343536373839
* Runs the test using the specified harness. * * @param harness the test harness (<code>null</code> not permitted). */ public void test(TestHarness harness) { harness.check(new MetalLookAndFeel().getID(), "Metal"); }
5657585960616263646566
{ // test with a known LAF/theme try { MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme()); UIManager.setLookAndFeel(new MetalLookAndFeel()); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); }
7273747576777879808182
new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE)); // restore a sane look and feel try { UIManager.setLookAndFeel(new MetalLookAndFeel()); } catch (Exception e) { e.printStackTrace(); }
5960616263646566676869
public void test1(TestHarness harness) { try { UIManager.setLookAndFeel(new MetalLookAndFeel()); } catch (Exception e) { e.printStackTrace(); }
3435363738394041
* Runs the test using the specified harness. * * @param harness the test harness (<code>null</code> not permitted). */ public void test(TestHarness harness) { harness.check(new MetalLookAndFeel().getDescription(), "The Java(tm) Look and Feel"); }
5859606162636465666768
// set the MetalLookAndFeel and confirm that this icon is used // for 'MenuItem.arrowIcon' try { UIManager.setLookAndFeel(new MetalLookAndFeel()); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); }
8283848586878889909192
harness.check(ui.getThumbBounds(), new Rectangle(16, 0, 8, 20)); // restore a sane look and feel try { UIManager.setLookAndFeel(new MetalLookAndFeel()); } catch (Exception e) { e.printStackTrace(); }
5556575859606162636465
// set the MetalLookAndFeel and confirm that this icon is used // for 'Menu.arrowIcon' try { UIManager.setLookAndFeel(new MetalLookAndFeel()); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); }
6061626364656667686970
testVertical(harness); // restore a sane look and feel try { UIManager.setLookAndFeel(new MetalLookAndFeel()); } catch (Exception e) { e.printStackTrace(); }