1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.xulux.guilayer.swing.extensions;
17
18 import java.awt.Point;
19 import java.awt.event.MouseEvent;
20 import java.util.Hashtable;
21 import java.util.Vector;
22
23 import javax.swing.JTree;
24 import javax.swing.tree.TreeModel;
25 import javax.swing.tree.TreeNode;
26
27
28
29
30
31
32 public class XuluxJTree extends JTree {
33
34
35
36
37 public XuluxJTree() {
38 super();
39
40 }
41
42
43
44
45 public XuluxJTree(Object[] value) {
46 super(value);
47
48 }
49
50
51
52
53 public XuluxJTree(Vector value) {
54 super(value);
55
56 }
57
58
59
60
61 public XuluxJTree(Hashtable value) {
62 super(value);
63
64 }
65
66
67
68
69 public XuluxJTree(TreeNode root) {
70 super(root);
71
72 }
73
74
75
76
77
78 public XuluxJTree(TreeNode root, boolean asksAllowsChildren) {
79 super(root, asksAllowsChildren);
80
81 }
82
83
84
85
86 public XuluxJTree(TreeModel newModel) {
87 super(newModel);
88
89 }
90
91
92
93
94 public Point getToolTipLocation(MouseEvent event) {
95 if (getToolTipText(event) == null) {
96 Point point = new Point(event.getX(), event.getY());
97 return point;
98 }
99 return super.getToolTipLocation(event);
100 }
101
102 }