Standard JTree with LookAndFeel like in "TODO" or "Messages" of Ant Build Follow
Hi!
I've just started with plugins and it is interesting whether it possible or not to have LookAnfFeel of JTree like ToolWindows "TODO" or "Messages" of Ant Build have?
I tried to use:
<![CDATA[ DefaultMutableTreeNode topNode = new DefaultMutableTreeNode("Top node"); DefaultMutableTreeNode aNode = new DefaultMutableTreeNode("Folder one"); aNode.add(new DefaultMutableTreeNode("Leaf one")); topNode.add(aNode); final JTree tree = new JTree(topNode); tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); final JScrollPane treeView = new JScrollPane(tree); LookAndFeel.installColorsAndFont(treeView, "Tree.background", "Tree.foreground", "Tree.font"); ]]>
but it dosn't look either nice.
???
Please sign in to leave a comment.