public class SwingDemo extends 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 | Description |
---|---|
SwingDemo() |
Modifier and Type | Method | Description |
---|---|---|
static void |
main(String[] args) |
Shows a dialog with a tree in a layout created by
TreeLayout ,
using the Swing component TextInBoxTreePane . |
public static void main(String[] args)
TreeLayout
,
using the Swing component TextInBoxTreePane
.args
- args[0]: treeName (default="")Copyright © 2019. All rights reserved.