src/TestUnit/commonTest/TreeDemo.java
private static void createAndShowGUI() {
		if (useSystemLookAndFeel) {
			try {
				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			} catch (Exception e) {
				System.err.println("Couldn 't   use   system   look   and   feel. ");
			}
		}

		// Make sure we have nice window decorations.
		JFrame.setDefaultLookAndFeelDecorated(true);

		// Create and set up the window.
		JFrame frame = new JFrame("TreeDemo ");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		// Create and set up the content pane.
		TreeDemo newContentPane = new TreeDemo();
		newContentPane.setOpaque(true); // content panes must be opaque
		frame.setContentPane(newContentPane);

		// Display the window.
		frame.pack();
		frame.setVisible(true);
	}
/**
	 * Create the GUI and show it. For thread safety, this method should be
	 * invoked from the event-dispatching thread.
	 */
Create the GUI and show it. For thread safety, this method should be
invoked from the event-dispatching thread.
Create the GUI and show it . For thread safety this method should be invoked from the event - dispatching thread .
private static void createAndShowGUI() {
		if (useSystemLookAndFeel) {
			try {
				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
			} catch (Exception e) {
				System.err.println("Couldn 't   use   system   look   and   feel. ");
			}
		}
		JFrame.setDefaultLookAndFeelDecorated(true);
		JFrame frame = new JFrame("TreeDemo ");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		TreeDemo newContentPane = new TreeDemo();
		newContentPane.setOpaque(true); 
		frame.setContentPane(newContentPane);
		frame.pack();
		frame.setVisible(true);
	}
private static void createAndShowGUI ( ) { if ( useSystemLookAndFeel ) { try { UIManager . setLookAndFeel ( UIManager . getSystemLookAndFeelClassName ( ) ) ; } catch ( Exception e ) { System . err . println ( "Couldn 't   use   system   look   and   feel. " ) ; } } JFrame . setDefaultLookAndFeelDecorated ( true ) ; JFrame frame = new JFrame ( "TreeDemo " ) ; frame . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; TreeDemo newContentPane = new TreeDemo ( ) ; newContentPane . setOpaque ( true ) ; frame . setContentPane ( newContentPane ) ; frame . pack ( ) ; frame . setVisible ( true ) ; }
Create the GUI and show it.
Create the GUI and show it .
// Make sure we have nice window decorations. // Create and set up the window. // Create and set up the content pane. // content panes must be opaque // Display the window.