public class SwingDemo
extends java.lang.Object
TreeLayout
to render a tree in a Swing
application.
Intentionally the sample code is kept simple. I.e. it does not include stuff like anti-aliasing and other stuff one would add to make the output look nice.
Screenshot:
Constructor and Description |
---|
SwingDemo() |
Modifier and Type | Method and Description |
---|---|
private static TreeForTreeLayout<TextInBox> |
getSampleTree(java.lang.String treeName) |
static void |
main(java.lang.String[] args)
Shows a dialog with a tree in a layout created by
TreeLayout ,
using the Swing component TextInBoxTreePane . |
private static void |
showInDialog(javax.swing.JComponent panel) |
private static void showInDialog(javax.swing.JComponent panel)
private static TreeForTreeLayout<TextInBox> getSampleTree(java.lang.String treeName)
public static void main(java.lang.String[] args)
TreeLayout
,
using the Swing component TextInBoxTreePane
.args
- args[0]: treeName (default="")