1 7 package org.jdesktop.swing; 8 9 import javax.swing.JFrame ; 10 11 import org.jdesktop.swing.treetable.FileSystemModel; 12 import org.jdesktop.swing.treetable.TreeTableModel; 13 14 16 19 public class JXTreeUnitTest extends InteractiveTestCase { 20 21 TreeTableModel treeTableModel; 23 public JXTreeUnitTest() { 24 super("JXTree Test"); 25 } 26 27 33 public void testDummy() { 34 35 } 36 40 public void interactiveTestLineStyle() { 41 JXTree tree = new JXTree(treeTableModel); 42 tree.putClientProperty("JTree.lineStyle", "None"); 43 JFrame frame = wrapWithScrollingInFrame(tree, "LineStyle Test"); 44 frame.setVisible(true); } 46 47 protected void setUp() throws Exception { 48 super.setUp(); 49 treeTableModel = new FileSystemModel(); 50 } 51 52 public static void main(String [] args) { 53 JXTreeUnitTest test = new JXTreeUnitTest(); 55 try { 56 test.runInteractiveTests(); 57 } catch (Exception e) { 58 System.err.println("exception when executing interactive tests:"); 59 e.printStackTrace(); 60 } 61 } 62 } 63 | Popular Tags |