git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PMD code sweep, #6 don't add MyWindow twice to MyApplication
[fanfix.git]
/
src
/
jexer
/
demos
/
DemoTreeViewWindow.java
diff --git
a/src/jexer/demos/DemoTreeViewWindow.java
b/src/jexer/demos/DemoTreeViewWindow.java
index 7697981c015bb8b0db59874b0091ee3697ba8332..a4bcbe25ef04ee854d85f99bd4ed3f9a54dbd27e 100644
(file)
--- a/
src/jexer/demos/DemoTreeViewWindow.java
+++ b/
src/jexer/demos/DemoTreeViewWindow.java
@@
-32,6
+32,7
@@
import java.io.IOException;
import jexer.*;
import jexer.event.*;
import jexer.*;
import jexer.event.*;
+import jexer.ttree.*;
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
import static jexer.TCommand.*;
import static jexer.TKeypress.*;
@@
-43,7
+44,7
@@
public class DemoTreeViewWindow extends TWindow {
/**
* Hang onto my TTreeView so I can resize it with the window.
*/
/**
* Hang onto my TTreeView so I can resize it with the window.
*/
- private TTreeView treeView;
+ private TTreeView
Widget
treeView;
/**
* Public constructor.
/**
* Public constructor.
@@
-55,7
+56,7
@@
public class DemoTreeViewWindow extends TWindow {
super(parent, "Tree View", 0, 0, 44, 16, TWindow.RESIZABLE);
// Load the treeview with "stuff"
super(parent, "Tree View", 0, 0, 44, 16, TWindow.RESIZABLE);
// Load the treeview with "stuff"
- treeView = addTreeView(1, 1, 40, 12);
+ treeView = addTreeView
Widget
(1, 1, 40, 12);
new TDirectoryTreeItem(treeView, ".", true);
statusBar = newStatusBar("Treeview demonstration");
new TDirectoryTreeItem(treeView, ".", true);
statusBar = newStatusBar("Treeview demonstration");