Package org.abego.treelayout.demo.swing
Class SwingDemo
- java.lang.Object
-
- org.abego.treelayout.demo.swing.SwingDemo
-
public class SwingDemo extends Object
Demonstrates how to use theTreeLayout
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:
- Author:
- Udo Borkowski (ub@abego.org)
-
-
Constructor Summary
Constructors Constructor Description SwingDemo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Shows a dialog with a tree in a layout created byTreeLayout
, using the Swing componentTextInBoxTreePane
.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Shows a dialog with a tree in a layout created byTreeLayout
, using the Swing componentTextInBoxTreePane
.- Parameters:
args
- args[0]: treeName (default="")
-
-