4849505152535455565758
public void test(TestHarness harness) { // use a known look and feel try { UIManager.setLookAndFeel(new TestLookAndFeel()); } catch (Exception e) { e.printStackTrace(); }
4950515253545556575859
6162636465666768697071
*/ private void testNotEditable(TestHarness harness) { try { UIManager.setLookAndFeel(new TestLookAndFeel()); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); }
114115116117118119120121122123124
*/ private void testEditable(TestHarness harness) { try { UIManager.setLookAndFeel(new TestLookAndFeel()); } catch (UnsupportedLookAndFeelException e) { e.printStackTrace(); }
7071727374757677787980
// set a new look and feel and see if the editor (which doesn't implement // UIResource) gets replaced try { UIManager.setLookAndFeel(new TestLookAndFeel()); } catch (Exception e) { harness.fail("Problem setting TestLookAndFeel"); }