java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
- All Implemented Interfaces:
- Serializable, Cloneable, MutableTreeNode, TreeNode
- Direct Known Subclasses:
- JTree.DynamicUtilTreeNode
- See Also:
- Top Examples, Source Code,
XMLEncoder
public void add(MutableTreeNode newChild)
- See Also:
insert(javax.swing.tree.MutableTreeNode, int)
, IllegalStateException, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1290]Create and populate a JTree
By Anonymous on 2005/02/01 17:42:54 Rate
import javax.swing.*;
import javax.swing.tree.*;
public class boom extends JApplet {
private JTree binboom;
private DefaultTreeModel treeModel;
public void init ( ) {
DefaultMutableTreeNode wortel, kind1, kind2, kleinkind1, kleinkind2;
wortel = new DefaultMutableTreeNode ( "root" ) ;
kind1 = new DefaultMutableTreeNode ( "levelA" ) ;
kind2 = new DefaultMutableTreeNode ( "levelB" ) ;
kleinkind1 = new DefaultMutableTreeNode ( "level1A" ) ;
kleinkind2 = new DefaultMutableTreeNode ( "level1B" ) ;
wortel.add ( kind1 ) ;
wortel.add ( kind2 ) ;
kind1.add ( kleinkind1 ) ;
kind1.add ( kleinkind2 ) ;
treeModel = new DefaultTreeModel ( wortel ) ;
binboom = new JTree ( treeModel ) ;
getContentPane ( ) .add ( binboom ) ;
}
}
protected boolean allowsChildren
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Enumeration breadthFirstEnumeration()
- See Also:
depthFirstEnumeration()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1824]PaPer
By siri27 { at } nate { dot } com on 2006/09/23 01:08:23 Rate
import com.hp.hpl.jena.rdf.model.* ;
import com.hp.hpl.jena.rdql.* ;
import java.util.* ;
import java.io.* ;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import javax.swing.tree.*;
public class ODPLoaderAndNodeOfSearchContextSelector extends JPanel
{
JLabel Introduction;
JScrollPane jsp;
JTree ODPTree;
JLabel SelectedNodeAndPath;
JButton SearchWordNet;
public static String SelectedNodeAndPathFromODP = null;
public void buildConstraints ( GridBagConstraints gbc, int gx, int gy, int gw, int gh, int wx, int wy )
{
gbc.gridx = gx;
gbc.gridy = gy;
gbc.gridwidth = gw;
gbc.gridheight = gh;
gbc.weightx = wx;
gbc.weighty = wy;
}
public ODPLoaderAndNodeOfSearchContextSelector ( String bbb )
{
}
public ODPLoaderAndNodeOfSearchContextSelector ( )
{
GridBagLayout gridbag = new GridBagLayout ( ) ;
GridBagConstraints constraints = new GridBagConstraints ( ) ;
JPanel contentPane = new JPanel ( ) ;
contentPane.setLayout ( new BorderLayout ( ) ) ;
contentPane.setPreferredSize ( new Dimension ( 300,200 ) ) ;
//?????? ??? Introduction
buildConstraints ( constraints, 0, 0, 1, 1, 100, 10 ) ;
constraints.fill = GridBagConstraints.NONE;
constraints.anchor = GridBagConstraints.CENTER;
Introduction = new JLabel ( "Select Intent Node" ) ;
gridbag.setConstraints ( Introduction, constraints ) ;
add ( Introduction ) ;
//?????? ???????????? ??????
//0 step. ?????? ?????????, ?????? ??????
String Child = "";
Vector Children1 = new Vector ( ) ;
Vector Children2 = new Vector ( ) ;
Vector Children3 = new Vector ( ) ;
Vector Children4 = new Vector ( ) ;
Vector Children5 = new Vector ( ) ;
//???????????? ????????? ?????? ????????? ??? ??????????????? receiving
StartODPLoad SODPL = new StartODPLoad ( ) ;
StartODPLoad.StartODPLoadListener uuu = SODPL.new StartODPLoadListener ( ) ;
String OName = uuu.OntologyName ( ) ;
System.out.println ( "from ODPLoaderAndNodeOfSearchContextSelector : OntologyName = "+OName ) ;
String prefix = "";
//??????????????? ?????????.
if ( OName.indexOf ( "amazon" ) !=-1 )
{
prefix = "amazon";
}
else if ( OName.indexOf ( "Buy" ) !=-1 )
{
prefix = "buy";
}
else if ( OName.indexOf ( "ebay" ) !=-1 )
{
prefix = "ebay";
}
else if ( OName.indexOf ( "dmoz" ) !=-1 )
{
prefix = "dmoz";
}
System.out.println ( "from ODPLoaderAndNodeOfSearchContextSelector : prefix = "+prefix ) ;
//1 step. ???????????? ??????
String uri = "http://www."+prefix+".com/";
String fileLocation = "C:\\OntMapper\\SampleOntology\\CoreOntology\\"+prefix+".owl";
String Parent = "Product";
Model model = ModelFactory.createDefaultModel ( ) ;
//2 step. ???????????? ????????? ??????.
ChildrenExtractor CETor = new ChildrenExtractor ( ) ;
try
{ model.read ( new FileInputStream ( fileLocation ) ,
"http://nowhere/",
"RDF/XML" ) ;
}
catch ( Exception ex )
{
System.err.println ( "Exception: "+ex ) ;
ex.printStackTrace ( System.err ) ;
}
Children1 = CETor.EC ( prefix, uri, fileLocation, Parent, model ) ;
DefaultMutableTreeNode ParentNode = new DefaultMutableTreeNode ( Parent ) ;
DefaultMutableTreeNode ChildNode = new DefaultMutableTreeNode ( ) ;
DefaultMutableTreeNode ChildChildNode = new DefaultMutableTreeNode ( ) ;
DefaultMutableTreeNode ChildChildChildNode = new DefaultMutableTreeNode ( ) ;
DefaultMutableTreeNode ChildChildChildChildNode = new DefaultMutableTreeNode ( ) ;
DefaultMutableTreeNode ChildChildChildChildChildNode = new DefaultMutableTreeNode ( ) ;
int NumberOfChildren1 = Children1.size ( ) ;
for ( int i=0;i < NumberOfChildren1;i++ )
{
Child = ( String ) Children1.get ( i ) ;
ChildNode = new DefaultMutableTreeNode ( Child ) ;
ParentNode.add ( ChildNode ) ;
Parent = Child;
Children2 = CETor.EC ( prefix, uri, fileLocation, Parent, model ) ;
int NumberOfChildren2 = Children2.size ( ) ;
if ( NumberOfChildren2 < 1 )
continue;
for ( int j=0;j < NumberOfChildren2;j++ )
{
Child = ( String ) Children2.get ( j ) ;
ChildChildNode = new DefaultMutableTreeNode ( Child ) ;
ChildNode.add ( ChildChildNode ) ;
Parent = Child;
Children3 = CETor.EC ( prefix, uri, fileLocation, Parent, model ) ;
int NumberOfChildren3 = Children3.size ( ) ;
if ( NumberOfChildren3 < 1 )
continue;
for ( int k=0;k < NumberOfChildren3;k++ )
{
Child = ( String ) Children3.get ( k ) ;
ChildChildChildNode = new DefaultMutableTreeNode ( Child ) ;
ChildChildNode.add ( ChildChildChildNode ) ;
Parent = Child;
Children4 = CETor.EC ( prefix, uri, fileLocation, Parent, model ) ;
int NumberOfChildren4 = Children4.size ( ) ;
if ( NumberOfChildren4 < 1 )
continue;
for ( int l=0;l < NumberOfChildren4;l++ )
{
Child = ( String ) Children4.get ( l ) ;
ChildChildChildChildNode = new DefaultMutableTreeNode ( Child ) ;
ChildChildChildNode.add ( ChildChildChildChildNode ) ;
Parent = Child;
Children5 = CETor.EC ( prefix, uri, fileLocation, Parent, model ) ;
int NumberOfChildren5 = Children5.size ( ) ;
if ( NumberOfChildren5 < 1 )
continue;
for ( int m=0;m < NumberOfChildren5;m++ )
{
Child = ( String ) Children5.get ( m ) ;
ChildChildChildChildChildNode = new DefaultMutableTreeNode ( Child ) ;
ChildChildChildChildNode.add ( ChildChildChildChildChildNode ) ;
}
}
}
}
}
[1826]
By Anonymous on 2006/09/27 05:38:05 Rate
package wingset;
15
16 import javax.swing.tree.DefaultMutableTreeNode;
17 import javax.swing.tree.TreeNode;
18
19
23 public class HugeTreeModel {
24 public static final TreeNode ROOT_NODE = generateTree ( ) ;
25
26 static TreeNode generateTree ( ) {
27 DefaultMutableTreeNode top = new DefaultMutableTreeNode ( "Music" ) ;
28 DefaultMutableTreeNode catagory;
29 DefaultMutableTreeNode composer;
30 DefaultMutableTreeNode style;
31 DefaultMutableTreeNode album;
32
33 // Classical
34 catagory = new DefaultMutableTreeNode ( "Classical" ) ;
35 top.add ( catagory ) ;
36
37 // Beethoven
38 catagory.add ( composer = new DefaultMutableTreeNode ( "Beethoven" ) ) ;
39 composer.add ( style = new DefaultMutableTreeNode ( "Concertos" ) ) ;
40 style.add ( new DefaultMutableTreeNode ( "No. 1 - C Major" ) ) ;
41 style.add ( new DefaultMutableTreeNode ( "No. 2 - B-Flat Major" ) ) ;
42 style.add ( new DefaultMutableTreeNode ( "No. 3 - C Minor" ) ) ;
43 style.add ( new DefaultMutableTreeNode ( "No. 4 - G Major" ) ) ;
44 style.add ( new DefaultMutableTreeNode ( "No. 5 - E-Flat Major" ) ) ;
45
46 composer.add ( style = new DefaultMutableTreeNode ( "Quartets" ) ) ;
47 style.add ( new DefaultMutableTreeNode ( "Six String Quartets" ) ) ;
48 style.add ( new DefaultMutableTreeNode ( "Three String Quartets" ) ) ;
49 style.add ( new DefaultMutableTreeNode ( "Grosse Fugue for String Quartets" ) ) ;
50
51 composer.add ( style = new DefaultMutableTreeNode ( "Sonatas" ) ) ;
52 style.add ( new DefaultMutableTreeNode ( "Sonata in A Minor" ) ) ;
53 style.add ( new DefaultMutableTreeNode ( "Sonata in F Major" ) ) ;
54
55 composer.add ( style = new DefaultMutableTreeNode ( "Symphonies" ) ) ;
56 style.add ( new DefaultMutableTreeNode ( "No. 1 - C Major" ) ) ;
57 style.add ( new DefaultMutableTreeNode ( "No. 2 - D Major" ) ) ;
58 style.add ( new DefaultMutableTreeNode ( "No. 3 - E-Flat Major" ) ) ;
59 style.add ( new DefaultMutableTreeNode ( "No. 4 - B-Flat Major" ) ) ;
60 style.add ( new DefaultMutableTreeNode ( "No. 5 - C Minor" ) ) ;
61 style.add ( new DefaultMutableTreeNode ( "No. 6 - F Major" ) ) ;
62 style.add ( new DefaultMutableTreeNode ( "No. 7 - A Major" ) ) ;
63 style.add ( new DefaultMutableTreeNode ( "No. 8 - F Major" ) ) ;
64 style.add ( new DefaultMutableTreeNode ( "No. 9 - D Minor" ) ) ;
65
66 // Brahms
67 catagory.add ( composer = new DefaultMutableTreeNode ( "Brahms" ) ) ;
68 composer.add ( style = new DefaultMutableTreeNode ( "Concertos" ) ) ;
69 style.add ( new DefaultMutableTreeNode ( "Violin Concerto" ) ) ;
70 style.add ( new DefaultMutableTreeNode ( "Double Concerto - A Minor" ) ) ;
71 style.add ( new DefaultMutableTreeNode ( "Piano Concerto No. 1 - D Minor" ) ) ;
72 style.add ( new DefaultMutableTreeNode ( "Piano Concerto No. 2 - B-Flat Major" ) ) ;
73
74 composer.add ( style = new DefaultMutableTreeNode ( "Quartets" ) ) ;
75 style.add ( new DefaultMutableTreeNode ( "Piano Quartet No. 1 - G Minor" ) ) ;
76 style.add ( new DefaultMutableTreeNode ( "Piano Quartet No. 2 - A Major" ) ) ;
77 style.add ( new DefaultMutableTreeNode ( "Piano Quartet No. 3 - C Minor" ) ) ;
78 style.add ( new DefaultMutableTreeNode ( "String Quartet No. 3 - B-Flat Minor" ) ) ;
79
80 composer.add ( style = new DefaultMutableTreeNode ( "Sonatas" ) ) ;
81 style.add ( new DefaultMutableTreeNode ( "Two Sonatas for Clarinet - F Minor" ) ) ;
82 style.add ( new DefaultMutableTreeNode ( "Two Sonatas for Clarinet - E-Flat Major" ) ) ;
83
84 composer.add ( style = new DefaultMutableTreeNode ( "Symphonies" ) ) ;
85 style.add ( new DefaultMutableTreeNode ( "No. 1 - C Minor" ) ) ;
86 style.add ( new DefaultMutableTreeNode ( "No. 2 - D Minor" ) ) ;
87 style.add ( new DefaultMutableTreeNode ( "No. 3 - F Major" ) ) ;
88 style.add ( new DefaultMutableTreeNode ( "No. 4 - E Minor" ) ) ;
89
90 // Mozart
91 catagory.add ( composer = new DefaultMutableTreeNode ( "Mozart" ) ) ;
92 composer.add ( style = new DefaultMutableTreeNode ( "Concertos" ) ) ;
93 style.add ( new DefaultMutableTreeNode ( "Piano Concerto No. 12" ) ) ;
94 style.add ( new DefaultMutableTreeNode ( "Piano Concerto No. 17" ) ) ;
95 style.add ( new DefaultMutableTreeNode ( "Clarinet Concerto" ) ) ;
96 style.add ( new DefaultMutableTreeNode ( "Violin Concerto No. 5" ) ) ;
97 style.add ( new DefaultMutableTreeNode ( "Violin Concerto No. 4" ) ) ;
98
99 composer.add ( style = new DefaultMutableTreeNode ( "Sonatas" ) ) ;
100 style.add ( new DefaultMutableTreeNode ( "String Quintet in G Minor" ) ) ;
101 style.add ( new DefaultMutableTreeNode ( "Clarinet Quintet" ) ) ;
102 style.add ( new DefaultMutableTreeNode ( "Piano Sonata No. 14" ) ) ;
103
104 composer.add ( style = new DefaultMutableTreeNode ( "Symphonies" ) ) ;
105 style.add ( new DefaultMutableTreeNode ( "No. 39" ) ) ;
106 style.add ( new DefaultMutableTreeNode ( "No. 40" ) ) ;
107 style.add ( new DefaultMutableTreeNode ( "No. 41" ) ) ;
108
109 catagory.add ( composer = new DefaultMutableTreeNode ( "Schubert" ) ) ;
110 composer.add ( style = new DefaultMutableTreeNode ( "Quartets" ) ) ;
111 style.add ( new DefaultMutableTreeNode ( "No. 1 - D Major" ) ) ;
112 style.add ( new DefaultMutableTreeNode ( "No. 2 - C Major" ) ) ;
113 style.add ( new DefaultMutableTreeNode ( "No. 3 - B-Flat" ) ) ;
114 style.add ( new DefaultMutableTreeNode ( "No. 4 - B Major,D Major" ) ) ;
115 style.add ( new DefaultMutableTreeNode ( "No. 5 - B-Flat Major" ) ) ;
116 style.add ( new DefaultMutableTreeNode ( "No. 6 - D Major" ) ) ;
117 style.add ( new DefaultMutableTreeNode ( "No. 7 - D Major" ) ) ;
118 style.add ( new DefaultMutableTreeNode ( "No. 8 - B-Flat Major" ) ) ;
119 style.add ( new DefaultMutableTreeNode ( "No. 9 - G Minor,D Major" ) ) ;
120 style.add ( new DefaultMutableTreeNode ( "No. 10 - E-Flat Major" ) ) ;
121 style.add ( new DefaultMutableTreeNode ( "No. 11 - E,D" ) ) ;
122 style.add ( new DefaultMutableTreeNode ( "No. 12 - C Minor,D" ) ) ;
123
124 composer.add ( style = new DefaultMutableTreeNode ( "Sonatas" ) ) ;
125 style.add ( new DefaultMutableTreeNode ( "No. 1 - E Major, D Major" ) ) ;
126 style.add ( new DefaultMutableTreeNode ( "No. 2 - C Major, D Major" ) ) ;
127 style.add ( new DefaultMutableTreeNode ( "No. 3 - E Major, D Major" ) ) ;
128 style.add ( new DefaultMutableTreeNode ( "No. 4 - A Minor, D Major" ) ) ;
129 style.add ( new DefaultMutableTreeNode ( "No. 6 - D Major" ) ) ;
130 style.add ( new DefaultMutableTreeNode ( "No. 7 - E Minor, D Major" ) ) ;
131 style.add ( new DefaultMutableTreeNode ( "No. 9 - B Major, D Major" ) ) ;
132
133
134 // Jazz
135 top.add ( catagory = new DefaultMutableTreeNode ( "Jazz" ) ) ;
136
137 // Ayler
138 catagory.add ( composer = new DefaultMutableTreeNode ( "Albert Ayler" ) ) ;
139 composer.add ( album = new DefaultMutableTreeNode ( "My Name is Albert Ayler" ) ) ;
140 album.add ( new DefaultMutableTreeNode ( "Bye Bye Blackbird" ) ) ;
141 album.add ( new DefaultMutableTreeNode ( "Billie's Bounce" ) ) ;
142 album.add ( new DefaultMutableTreeNode ( "Summertime" ) ) ;
143 album.add ( new DefaultMutableTreeNode ( "On Green Dolphin Street" ) ) ;
144 album.add ( new DefaultMutableTreeNode ( "C.T." ) ) ;
145
146 composer.add ( album = new DefaultMutableTreeNode ( "Swing Low Seet Spiritual" ) ) ;
147 album.add ( new DefaultMutableTreeNode ( "Goin' Home" ) ) ;
148 album.add ( new DefaultMutableTreeNode ( "Old Man River" ) ) ;
149 album.add ( new DefaultMutableTreeNode ( "When The Saints Go Marching In" ) ) ;
150 album.add ( new DefaultMutableTreeNode ( "Deep River" ) ) ;
151 album.add ( new DefaultMutableTreeNode ( "Down By The Riverside" ) ) ;
152 album.add ( new DefaultMutableTreeNode ( "Spirits" ) ) ;
153 album.add ( new DefaultMutableTreeNode ( "Witches and Devils" ) ) ;
154 album.add ( new DefaultMutableTreeNode ( "Holy, Holy" ) ) ;
155 album.add ( new DefaultMutableTreeNode ( "Saints" ) ) ;
156
157 composer.add ( album = new DefaultMutableTreeNode ( "Prophesy" ) ) ;
158 album.add ( new DefaultMutableTreeNode ( "Spirits" ) ) ;
159 album.add ( new DefaultMutableTreeNode ( "Wizard" ) ) ;
160 album.add ( new DefaultMutableTreeNode ( "Ghosts" ) ) ;
161 album.add ( new DefaultMutableTreeNode ( "Prophecy" ) ) ;
162
163 composer.add ( album = new DefaultMutableTreeNode ( "New Grass" ) ) ;
164 album.add ( new DefaultMutableTreeNode ( "Free At Last" ) ) ;
165 album.add ( new DefaultMutableTreeNode ( "Everybody's Movin'" ) ) ;
166 album.add ( new DefaultMutableTreeNode ( "New Generation" ) ) ;
167 album.add ( new DefaultMutableTreeNode ( "Heart Love" ) ) ;
168 album.add ( new DefaultMutableTreeNode ( "Sun Watcher" ) ) ;
169
170 // Chet Baker
171 catagory.add ( composer = new DefaultMutableTreeNode ( "Chet Baker" ) ) ;
172 composer.add ( album = new DefaultMutableTreeNode ( "Sings and Plays" ) ) ;
173 album.add ( new DefaultMutableTreeNode ( "Let's Get Lost" ) ) ;
174 album.add ( new DefaultMutableTreeNode ( "This Is Always" ) ) ;
175 album.add ( new DefaultMutableTreeNode ( "Long Ago and Far Away" ) ) ;
176 album.add ( new DefaultMutableTreeNode ( "I Wish I Knew" ) ) ;
177 album.add ( new DefaultMutableTreeNode ( "Daybreak" ) ) ;
178 album.add ( new DefaultMutableTreeNode ( "Grey December" ) ) ;
179 album.add ( new DefaultMutableTreeNode ( "I Remember You" ) ) ;
180
181 composer.add ( album = new DefaultMutableTreeNode ( "My Funny Valentine" ) ) ;
182 album.add ( new DefaultMutableTreeNode ( "My Funny Valentine" ) ) ;
183 album.add ( new DefaultMutableTreeNode ( "Someone To Watch Over Me" ) ) ;
184 album.add ( new DefaultMutableTreeNode ( "Moonlight Becomes You" ) ) ;
185 album.add ( new DefaultMutableTreeNode ( "I'm Glad There is You" ) ) ;
186 album.add ( new DefaultMutableTreeNode ( "This is Always" ) ) ;
187 album.add ( new DefaultMutableTreeNode ( "Time After Time" ) ) ;
188 album.add ( new DefaultMutableTreeNode ( "Sweet Lorraine" ) ) ;
189 album.add ( new DefaultMutableTreeNode ( "It's Always You" ) ) ;
190 album.add ( new DefaultMutableTreeNode ( "Moon Love" ) ) ;
191 album.add ( new DefaultMutableTreeNode ( "Like Someone In Love" ) ) ;
192 album.add ( new DefaultMutableTreeNode ( "I've Never Been In Love Before" ) ) ;
193 album.add ( new DefaultMutableTreeNode ( "Isn't it Romantic" ) ) ;
194 album.add ( new DefaultMutableTreeNode ( "I Fall In Love Too Easily" ) ) ;
195
196 composer.add ( album = new DefaultMutableTreeNode ( "Grey December" ) ) ;
197 album.add ( new DefaultMutableTreeNode ( "Grey December" ) ) ;
198 album.add ( new DefaultMutableTreeNode ( "I Wish I Knew" ) ) ;
199 album.add ( new DefaultMutableTreeNode ( "Someone To Watch Over Me" ) ) ;
200 album.add ( new DefaultMutableTreeNode ( "Headline" ) ) ;
201 album.add ( new DefaultMutableTreeNode ( "Bockhanal" ) ) ;
202 album.add ( new DefaultMutableTreeNode ( "A Dandy Line" ) ) ;
203 album.add ( new DefaultMutableTreeNode ( "Pro Defunctus" ) ) ;
204 album.add ( new DefaultMutableTreeNode ( "Little Old Lady" ) ) ;
205 album.add ( new DefaultMutableTreeNode ( "Goodbye" ) ) ;
206
207 composer.add ( album = new DefaultMutableTreeNode ( "The Route" ) ) ;
208 album.add ( new DefaultMutableTreeNode ( "Tynan Time" ) ) ;
209 album.add ( new DefaultMutableTreeNode ( "The Route" ) ) ;
210 album.add ( new DefaultMutableTreeNode ( "Minor Yours" ) ) ;
211 album.add ( new DefaultMutableTreeNode ( "Little Girl" ) ) ;
212 album.add ( new DefaultMutableTreeNode ( "Ol' Croix" ) ) ;
213 album.add ( new DefaultMutableTreeNode ( "The Great Lie" ) ) ;
214 album.add ( new DefaultMutableTreeNode ( "Sweet Lorrain" ) ) ;
215 album.add ( new DefaultMutableTreeNode ( "If I Should Lose You" ) ) ;
216
217 // Coltran
218 catagory.add ( composer = new DefaultMutableTreeNode ( "John Coltrane" ) ) ;
219 composer.add ( album = new DefaultMutableTreeNode ( "Blue Train" ) ) ;
220 album.add ( new DefaultMutableTreeNode ( "Blue Train" ) ) ;
221 album.add ( new DefaultMutableTreeNode ( "Moment's Notice" ) ) ;
222 album.add ( new DefaultMutableTreeNode ( "Locomotion" ) ) ;
223 album.add ( new DefaultMutableTreeNode ( "I'm Old Fashioned" ) ) ;
224 album.add ( new DefaultMutableTreeNode ( "Lazy Bird" ) ) ;
225
226 composer.add ( album = new DefaultMutableTreeNode ( "Giant Steps" ) ) ;
227 album.add ( new DefaultMutableTreeNode ( "Giant Steps" ) ) ;
228 album.add ( new DefaultMutableTreeNode ( "Cousin Mary Steps" ) ) ;
229 album.add ( new DefaultMutableTreeNode ( "Countdown" ) ) ;
230 album.add ( new DefaultMutableTreeNode ( "Spiral" ) ) ;
231 album.add ( new DefaultMutableTreeNode ( "Syeeda's Song Flute" ) ) ;
232 album.add ( new DefaultMutableTreeNode ( "Naima" ) ) ;
233 album.add ( new DefaultMutableTreeNode ( "Mr. P.C." ) ) ;
234
235 composer.add ( album = new DefaultMutableTreeNode ( "My Favorite Things" ) ) ;
236 album.add ( new DefaultMutableTreeNode ( "My Favorite Things" ) ) ;
237 album.add ( new DefaultMutableTreeNode ( "Everytime We Say Goodbye" ) ) ;
238 album.add ( new DefaultMutableTreeNode ( "Summertime" ) ) ;
239 album.add ( new DefaultMutableTreeNode ( "But Not For Me" ) ) ;
240
241 composer.add ( album = new DefaultMutableTreeNode ( "Crescent" ) ) ;
242 album.add ( new DefaultMutableTreeNode ( "Crescent" ) ) ;
243 album.add ( new DefaultMutableTreeNode ( "Wise One" ) ) ;
244 album.add ( new DefaultMutableTreeNode ( "Bessie's Blues" ) ) ;
245 album.add ( new DefaultMutableTreeNode ( "Lonnie's Lament" ) ) ;
246 album.add ( new DefaultMutableTreeNode ( "The Drum Thing" ) ) ;
247
248 composer.add ( album = new DefaultMutableTreeNode ( "Interstellar Space" ) ) ;
249 album.add ( new DefaultMutableTreeNode ( "Mars" ) ) ;
250 album.add ( new DefaultMutableTreeNode ( "Leo" ) ) ;
251 album.add ( new DefaultMutableTreeNode ( "Venus" ) ) ;
252 album.add ( new DefaultMutableTreeNode ( "Jupiter Variation" ) ) ;
253 album.add ( new DefaultMutableTreeNode ( "Jupiter" ) ) ;
254 album.add ( new DefaultMutableTreeNode ( "Saturn" ) ) ;
255
256 // Miles
257 catagory.add ( composer = new DefaultMutableTreeNode ( "Miles Davis" ) ) ;
258 composer.add ( album = new DefaultMutableTreeNode ( "Transition" ) ) ;
259 album.add ( new DefaultMutableTreeNode ( "Autumn Leaves" ) ) ;
260 album.add ( new DefaultMutableTreeNode ( "Two Bass Hit" ) ) ;
261 album.add ( new DefaultMutableTreeNode ( "Love, I've Found You" ) ) ;
262 album.add ( new DefaultMutableTreeNode ( "I Thought About You" ) ) ;
263 album.add ( new DefaultMutableTreeNode ( "All Blues" ) ) ;
264 album.add ( new DefaultMutableTreeNode ( "Seven Steps To Heaven" ) ) ;
265
266 composer.add ( album = new DefaultMutableTreeNode ( "Quiet Nights" ) ) ;
267 album.add ( new DefaultMutableTreeNode ( "Once Upon a Summertime" ) ) ;
268 album.add ( new DefaultMutableTreeNode ( "Aos Pes Da Cruz" ) ) ;
269 album.add ( new DefaultMutableTreeNode ( "Wait Till You See Her" ) ) ;
270 album.add ( new DefaultMutableTreeNode ( "Corcovado" ) ) ;
271 album.add ( new DefaultMutableTreeNode ( "Summer Nights" ) ) ;
272
273 composer.add ( album = new DefaultMutableTreeNode ( "My Funny Valentine" ) ) ;
274 album.add ( new DefaultMutableTreeNode ( "All of You" ) ) ;
275 album.add ( new DefaultMutableTreeNode ( "Stella By Starlight" ) ) ;
276 album.add ( new DefaultMutableTreeNode ( "All Blues" ) ) ;
277 album.add ( new DefaultMutableTreeNode ( "I Thought About You" ) ) ;
278
279 composer.add ( album = new DefaultMutableTreeNode ( "Voodoo Down" ) ) ;
280 album.add ( new DefaultMutableTreeNode ( "Automn Leaves" ) ) ;
281 album.add ( new DefaultMutableTreeNode ( "Footprints" ) ) ;
282 album.add ( new DefaultMutableTreeNode ( "Directions" ) ) ;
283 album.add ( new DefaultMutableTreeNode ( "Bitches Brew" ) ) ;
284 album.add ( new DefaultMutableTreeNode ( "Hush" ) ) ;
285
286 // Rock
287 top.add ( catagory = new DefaultMutableTreeNode ( "Rock" ) ) ;
288
289 // The Beatles
290 catagory.add ( composer = new DefaultMutableTreeNode ( "The Beatles" ) ) ;
291 composer.add ( album = new DefaultMutableTreeNode ( "A Hard Day's Night" ) ) ;
292 album.add ( new DefaultMutableTreeNode ( "A Hard Day's Night" ) ) ;
293 album.add ( new DefaultMutableTreeNode ( "I Should Have Known Better" ) ) ;
294 album.add ( new DefaultMutableTreeNode ( "If I Fell" ) ) ;
295 album.add ( new DefaultMutableTreeNode ( "I'm Happy Just To Dance With You" ) ) ;
296 album.add ( new DefaultMutableTreeNode ( "And I Love Her" ) ) ;
297 album.add ( new DefaultMutableTreeNode ( "Tell Me Why" ) ) ;
298 album.add ( new DefaultMutableTreeNode ( "Can't Buy Me Love" ) ) ;
299 album.add ( new DefaultMutableTreeNode ( "Any Time At All" ) ) ;
300 album.add ( new DefaultMutableTreeNode ( "I'll Cry Instead" ) ) ;
301 album.add ( new DefaultMutableTreeNode ( "Things We Said Today" ) ) ;
302 album.add ( new DefaultMutableTreeNode ( "When I Get Home" ) ) ;
303 album.add ( new DefaultMutableTreeNode ( "You Can't Do That" ) ) ;
304
305 composer.add ( album = new DefaultMutableTreeNode ( "Beatles For Sale" ) ) ;
306 album.add ( new DefaultMutableTreeNode ( "No Reply" ) ) ;
307 album.add ( new DefaultMutableTreeNode ( "I'm a Loser" ) ) ;
308 album.add ( new DefaultMutableTreeNode ( "Baby's In Black" ) ) ;
309 album.add ( new DefaultMutableTreeNode ( "Rock And Roll Music" ) ) ;
310 album.add ( new DefaultMutableTreeNode ( "I'll Follow the Sun" ) ) ;
311 album.add ( new DefaultMutableTreeNode ( "Mr. Moonlight" ) ) ;
312 album.add ( new DefaultMutableTreeNode ( "Kansas City/Hey Hey Hey Hey" ) ) ;
313 album.add ( new DefaultMutableTreeNode ( "Eight Days a Week" ) ) ;
314 album.add ( new DefaultMutableTreeNode ( "Words Of Love" ) ) ;
315 album.add ( new DefaultMutableTreeNode ( "Honey Don't" ) ) ;
316 album.add ( new DefaultMutableTreeNode ( "Every Little Thing" ) ) ;
317 album.add ( new DefaultMutableTreeNode ( "I Don't Want To Spoil the Party" ) ) ;
318 album.add ( new DefaultMutableTreeNode ( "What You're Doing" ) ) ;
319 album.add ( new DefaultMutableTreeNode ( "Everybody's Trying To Be My Baby" ) ) ;
320
321 composer.add ( album = new DefaultMutableTreeNode ( "Help" ) ) ;
322 album.add ( new DefaultMutableTreeNode ( "Help!" ) ) ;
323 album.add ( new DefaultMutableTreeNode ( "The Night Before" ) ) ;
324 album.add ( new DefaultMutableTreeNode ( "You've Got To Hide Your Love Away" ) ) ;
325 album.add ( new DefaultMutableTreeNode ( "I Need You" ) ) ;
326 album.add ( new DefaultMutableTreeNode ( "Another Girl" ) ) ;
327 album.add ( new DefaultMutableTreeNode ( "You're Going To Lose That Girl" ) ) ;
328 album.add ( new DefaultMutableTreeNode ( "Ticket To Ride" ) ) ;
329 album.add ( new DefaultMutableTreeNode ( "Act Naturally" ) ) ;
330 album.add ( new DefaultMutableTreeNode ( "It's Only Love" ) ) ;
331 album.add ( new DefaultMutableTreeNode ( "You Like Me Too Much" ) ) ;
332 album.add ( new DefaultMutableTreeNode ( "Tell Me What You See" ) ) ;
333 album.add ( new DefaultMutableTreeNode ( "I've Just Seen a Face" ) ) ;
334 album.add ( new DefaultMutableTreeNode ( "Yesterday" ) ) ;
335 album.add ( new DefaultMutableTreeNode ( "Dizzy Miss Lizzie" ) ) ;
336
337 composer.add ( album = new DefaultMutableTreeNode ( "Rubber Soul" ) ) ;
338 album.add ( new DefaultMutableTreeNode ( "Drive My Car" ) ) ;
339 album.add ( new DefaultMutableTreeNode ( "Norwegian Wood" ) ) ;
340 album.add ( new DefaultMutableTreeNode ( "You Won't See Me" ) ) ;
341 album.add ( new DefaultMutableTreeNode ( "Nowhere Man" ) ) ;
342 album.add ( new DefaultMutableTreeNode ( "Think For Yourself" ) ) ;
343 album.add ( new DefaultMutableTreeNode ( "The Word" ) ) ;
344 album.add ( new DefaultMutableTreeNode ( "Michelle" ) ) ;
345 album.add ( new DefaultMutableTreeNode ( "What Goes On?" ) ) ;
346 album.add ( new DefaultMutableTreeNode ( "Girl" ) ) ;
347 album.add ( new DefaultMutableTreeNode ( "I'm Looking Through You" ) ) ;
348 album.add ( new DefaultMutableTreeNode ( "In My Life" ) ) ;
349 album.add ( new DefaultMutableTreeNode ( "Wait" ) ) ;
350 album.add ( new DefaultMutableTreeNode ( "If I Needed Someone" ) ) ;
351 album.add ( new DefaultMutableTreeNode ( "Run For Your Life" ) ) ;
352
353 composer.add ( album = new DefaultMutableTreeNode ( "Revolver" ) ) ;
354 album.add ( new DefaultMutableTreeNode ( "Taxman" ) ) ;
355 album.add ( new DefaultMutableTreeNode ( "Rigby" ) ) ;
356 album.add ( new DefaultMutableTreeNode ( "I'm Only Sleeping" ) ) ;
357 album.add ( new DefaultMutableTreeNode ( "For You To" ) ) ;
358 album.add ( new DefaultMutableTreeNode ( "Here There And Everywhere" ) ) ;
359 album.add ( new DefaultMutableTreeNode ( "Yellow Submarine" ) ) ;
360 album.add ( new DefaultMutableTreeNode ( "She Said She Said" ) ) ;
361 album.add ( new DefaultMutableTreeNode ( "Good Day Sunshine" ) ) ;
362 album.add ( new DefaultMutableTreeNode ( "And Your Bird Can Sing" ) ) ;
363 album.add ( new DefaultMutableTreeNode ( "For No One" ) ) ;
364 album.add ( new DefaultMutableTreeNode ( "Doctor Robert" ) ) ;
365 album.add ( new DefaultMutableTreeNode ( "I Want To Tell You" ) ) ;
366 album.add ( new DefaultMutableTreeNode ( "Got To Get You Into My Life" ) ) ;
367 album.add ( new DefaultMutableTreeNode ( "Tomorrow Never Knows" ) ) ;
368
369 composer.add ( album = new DefaultMutableTreeNode ( "Sgt. Pepper's" ) ) ;
370 album.add ( new DefaultMutableTreeNode ( "Sgt. Pepper's" ) ) ;
371 album.add ( new DefaultMutableTreeNode ( "With a Little Help From My Friends" ) ) ;
372 album.add ( new DefaultMutableTreeNode ( "Lucy in the Sky With Diamonds" ) ) ;
373 album.add ( new DefaultMutableTreeNode ( "Getting Better" ) ) ;
374 album.add ( new DefaultMutableTreeNode ( "Fixing a Hole" ) ) ;
375 album.add ( new DefaultMutableTreeNode ( "She's Leaving Home" ) ) ;
376 album.add ( new DefaultMutableTreeNode ( "Being For the Benefit of Mr. Kite" ) ) ;
377 album.add ( new DefaultMutableTreeNode ( "Within You Without You" ) ) ;
378 album.add ( new DefaultMutableTreeNode ( "When I'm Sixty Four" ) ) ;
379 album.add ( new DefaultMutableTreeNode ( "Lovely Rita" ) ) ;
380 album.add ( new DefaultMutableTreeNode ( "Good Morning" ) ) ;
381 album.add ( new DefaultMutableTreeNode ( "Sgt. Pepper's Reprise" ) ) ;
382 album.add ( new DefaultMutableTreeNode ( "A Day In The Life" ) ) ;
383
384 composer.add ( album = new DefaultMutableTreeNode ( "Magical Mystery Tour" ) ) ;
385 album.add ( new DefaultMutableTreeNode ( "Magical Mystery Tour" ) ) ;
386 album.add ( new DefaultMutableTreeNode ( "Fool on the Hill" ) ) ;
387 album.add ( new DefaultMutableTreeNode ( "Flying" ) ) ;
388 album.add ( new DefaultMutableTreeNode ( "Blue Jay Way" ) ) ;
389 album.add ( new DefaultMutableTreeNode ( "Your Mother Should Know" ) ) ;
390 album.add ( new DefaultMutableTreeNode ( "I Am The Walrus" ) ) ;
391 album.add ( new DefaultMutableTreeNode ( "Hello Goodbye" ) ) ;
392 album.add ( new DefaultMutableTreeNode ( "Strawberry Fields Forever" ) ) ;
393 album.add ( new DefaultMutableTreeNode ( "Penny Lane" ) ) ;
394 album.add ( new DefaultMutableTreeNode ( "Baby You're a Rich Man" ) ) ;
395 album.add ( new DefaultMutableTreeNode ( "All You Need Is Love" ) ) ;
396
397 composer.add ( album = new DefaultMutableTreeNode ( "The White Album" ) ) ;
398 album.add ( new DefaultMutableTreeNode ( "Back in the USSR" ) ) ;
399 album.add ( new DefaultMutableTreeNode ( "Dear Prudence" ) ) ;
400 album.add ( new DefaultMutableTreeNode ( "Glass Onion" ) ) ;
401 album.add ( new DefaultMutableTreeNode ( "Wild Honey Pie" ) ) ;
402 album.add ( new DefaultMutableTreeNode ( "Bungalow Bill" ) ) ;
403 album.add ( new DefaultMutableTreeNode ( "While My Guitar Gently Weeps" ) ) ;
404 album.add ( new DefaultMutableTreeNode ( "Martha My Dear" ) ) ;
405 album.add ( new DefaultMutableTreeNode ( "I'm So Tired" ) ) ;
406 album.add ( new DefaultMutableTreeNode ( "Blackbird" ) ) ;
407 album.add ( new DefaultMutableTreeNode ( "Piggies" ) ) ;
408 album.add ( new DefaultMutableTreeNode ( "Rocky Raccoon" ) ) ;
409 album.add ( new DefaultMutableTreeNode ( "Don't Pass Me By" ) ) ;
410 album.add ( new DefaultMutableTreeNode ( "Why Don't We Do It In The Road" ) ) ;
411 album.add ( new DefaultMutableTreeNode ( "I Will" ) ) ;
412 album.add ( new DefaultMutableTreeNode ( "Julia" ) ) ;
413 album.add ( new DefaultMutableTreeNode ( "Birthday" ) ) ;
414 album.add ( new DefaultMutableTreeNode ( "Yer Blues" ) ) ;
415 album.add ( new DefaultMutableTreeNode ( "Mother Nature's Son" ) ) ;
416 album.add ( new DefaultMutableTreeNode ( "Sexy Sadie" ) ) ;
417 album.add ( new DefaultMutableTreeNode ( "Helter Skelter" ) ) ;
418 album.add ( new DefaultMutableTreeNode ( "Long Long Long" ) ) ;
419 album.add ( new DefaultMutableTreeNode ( "Revolution 1" ) ) ;
420 album.add ( new DefaultMutableTreeNode ( "Honey Pie" ) ) ;
421 album.add ( new DefaultMutableTreeNode ( "Savoy Truffle" ) ) ;
422 album.add ( new DefaultMutableTreeNode ( "Cry Baby Cry" ) ) ;
423 album.add ( new DefaultMutableTreeNode ( "Revolution 9" ) ) ;
424 album.add ( new DefaultMutableTreeNode ( "Good Night" ) ) ;
425
426 composer.add ( album = new DefaultMutableTreeNode ( "Abbey Road" ) ) ;
427 album.add ( new DefaultMutableTreeNode ( "Come Together" ) ) ;
428 album.add ( new DefaultMutableTreeNode ( "Something" ) ) ;
429 album.add ( new DefaultMutableTreeNode ( "Maxwell's Silver Hammer" ) ) ;
430 album.add ( new DefaultMutableTreeNode ( "Octopus's Garden" ) ) ;
431 album.add ( new DefaultMutableTreeNode ( "She's So Heavy" ) ) ;
432 album.add ( new DefaultMutableTreeNode ( "Here Comes The Sun" ) ) ;
433 album.add ( new DefaultMutableTreeNode ( "Because" ) ) ;
434 album.add ( new DefaultMutableTreeNode ( "You Never Give Me Your Money" ) ) ;
435 album.add ( new DefaultMutableTreeNode ( "Sun King" ) ) ;
436 album.add ( new DefaultMutableTreeNode ( "Mean Mr. Mustard" ) ) ;
437 album.add ( new DefaultMutableTreeNode ( "Polythene Pam" ) ) ;
438 album.add ( new DefaultMutableTreeNode ( "She Came In Through The Bathroom Window" ) ) ;
439 album.add ( new DefaultMutableTreeNode ( "Golden Slumbers" ) ) ;
440 album.add ( new DefaultMutableTreeNode ( "Carry That Weight" ) ) ;
441 album.add ( new DefaultMutableTreeNode ( "The End" ) ) ;
442 album.add ( new DefaultMutableTreeNode ( "Her Majesty" ) ) ;
443
444 composer.add ( album = new DefaultMutableTreeNode ( "Let It Be" ) ) ;
445 album.add ( new DefaultMutableTreeNode ( "Two of Us" ) ) ;
446 album.add ( new DefaultMutableTreeNode ( "Dig A Pony" ) ) ;
447 album.add ( new DefaultMutableTreeNode ( "Across the Universe" ) ) ;
448 album.add ( new DefaultMutableTreeNode ( "I Me Mine" ) ) ;
449 album.add ( new DefaultMutableTreeNode ( "Dig It" ) ) ;
450 album.add ( new DefaultMutableTreeNode ( "Let It Be" ) ) ;
451 album.add ( new DefaultMutableTreeNode ( "Maggie Mae" ) ) ;
452 album.add ( new DefaultMutableTreeNode ( "I've Got A Feeling" ) ) ;
453 album.add ( new DefaultMutableTreeNode ( "One After 909" ) ) ;
454 album.add ( new DefaultMutableTreeNode ( "The Long and Winding Road" ) ) ;
455 album.add ( new DefaultMutableTreeNode ( "For You Blue" ) ) ;
456 album.add ( new DefaultMutableTreeNode ( "Get Back" ) ) ;
457
458 // Crowded House
459 catagory.add ( composer = new DefaultMutableTreeNode ( "Crowded House" ) ) ;
460 composer.add ( album = new DefaultMutableTreeNode ( "Crowded House" ) ) ;
461 album.add ( new DefaultMutableTreeNode ( "Mean To Me" ) ) ;
462 album.add ( new DefaultMutableTreeNode ( "World Where You Live" ) ) ;
463 album.add ( new DefaultMutableTreeNode ( "Now We're Getting Somewhere" ) ) ;
464 album.add ( new DefaultMutableTreeNode ( "Don't Dream It's Over" ) ) ;
465 album.add ( new DefaultMutableTreeNode ( "Love You Til The Day I Die" ) ) ;
466 album.add ( new DefaultMutableTreeNode ( "Something So Strong" ) ) ;
467 album.add ( new DefaultMutableTreeNode ( "Hole In The River" ) ) ;
468 album.add ( new DefaultMutableTreeNode ( "Can't Carry On" ) ) ;
469 album.add ( new DefaultMutableTreeNode ( "I Walk Away" ) ) ;
470 album.add ( new DefaultMutableTreeNode ( "Tombstone" ) ) ;
471 album.add ( new DefaultMutableTreeNode ( "That's What I Call Live" ) ) ;
472
473 composer.add ( album = new DefaultMutableTreeNode ( "Temple of Low Men" ) ) ;
474 album.add ( new DefaultMutableTreeNode ( "I Feel Possessed" ) ) ;
475 album.add ( new DefaultMutableTreeNode ( "Kill Eye" ) ) ;
476 album.add ( new DefaultMutableTreeNode ( "Into Temptation" ) ) ;
477 album.add ( new DefaultMutableTreeNode ( "Mansion In The Slums" ) ) ;
478 album.add ( new DefaultMutableTreeNode ( "When You Come" ) ) ;
479 album.add ( new DefaultMutableTreeNode ( "Never Be The Same" ) ) ;
480 album.add ( new DefaultMutableTreeNode ( "Love This Life" ) ) ;
481 album.add ( new DefaultMutableTreeNode ( "Sister Madly" ) ) ;
482 album.add ( new DefaultMutableTreeNode ( "In The Lowlands" ) ) ;
483 album.add ( new DefaultMutableTreeNode ( "Better Be Home Soon" ) ) ;
484
485 composer.add ( album = new DefaultMutableTreeNode ( "Woodface" ) ) ;
486 album.add ( new DefaultMutableTreeNode ( "Chocolate Cake" ) ) ;
487 album.add ( new DefaultMutableTreeNode ( "It's Only Natural" ) ) ;
488 album.add ( new DefaultMutableTreeNode ( "Fall At Your Feet" ) ) ;
489 album.add ( new DefaultMutableTreeNode ( "Tall Trees" ) ) ;
490 album.add ( new DefaultMutableTreeNode ( "Weather With You" ) ) ;
491 album.add ( new DefaultMutableTreeNode ( "Whispers and Moans" ) ) ;
492 album.add ( new DefaultMutableTreeNode ( "Four Seasons in One Day" ) ) ;
493 album.add ( new DefaultMutableTreeNode ( "There Goes God" ) ) ;
494 album.add ( new DefaultMutableTreeNode ( "Fame Is" ) ) ;
495 album.add ( new DefaultMutableTreeNode ( "All I Ask" ) ) ;
496 album.add ( new DefaultMutableTreeNode ( "As Sure As I Am" ) ) ;
497 album.add ( new DefaultMutableTreeNode ( "Italian Plastic" ) ) ;
498 album.add ( new DefaultMutableTreeNode ( "She Goes On" ) ) ;
499 album.add ( new DefaultMutableTreeNode ( "How Will You Go" ) ) ;
500
501 composer.add ( album = new DefaultMutableTreeNode ( "Together Alone" ) ) ;
502 album.add ( new DefaultMutableTreeNode ( "Kare Kare" ) ) ;
503 album.add ( new DefaultMutableTreeNode ( "In My Command" ) ) ;
504 album.add ( new DefaultMutableTreeNode ( "Nails In My Feet" ) ) ;
505 album.add ( new DefaultMutableTreeNode ( "Black & White Boy" ) ) ;
506 album.add ( new DefaultMutableTreeNode ( "Fingers of Love" ) ) ;
507 album.add ( new DefaultMutableTreeNode ( "Pineapple Head" ) ) ;
508 album.add ( new DefaultMutableTreeNode ( "Locked Out" ) ) ;
509 album.add ( new DefaultMutableTreeNode ( "Private Universe" ) ) ;
510 album.add ( new DefaultMutableTreeNode ( "Walking on the Spot" ) ) ;
511 album.add ( new DefaultMutableTreeNode ( "Distant Sun" ) ) ;
512 album.add ( new DefaultMutableTreeNode ( "Catherine Wheels" ) ) ;
513 album.add ( new DefaultMutableTreeNode ( "Skin Feeling" ) ) ;
514 album.add ( new DefaultMutableTreeNode ( "Together Alone" ) ) ;
515
516 // Harvin Garvel
517 catagory.add ( composer = new DefaultMutableTreeNode ( "Harvin Garvel" ) ) ;
518 composer.add ( album = new DefaultMutableTreeNode ( "Harven Garvel I" ) ) ;
519 album.add ( new DefaultMutableTreeNode ( "Body" ) ) ;
520 album.add ( new DefaultMutableTreeNode ( "What You Said" ) ) ;
521 album.add ( new DefaultMutableTreeNode ( "All Rights Reserved" ) ) ;
522 album.add ( new DefaultMutableTreeNode ( "High Purity" ) ) ;
523 album.add ( new DefaultMutableTreeNode ( "Lies" ) ) ;
524 album.add ( new DefaultMutableTreeNode ( "Get Real" ) ) ;
525 album.add ( new DefaultMutableTreeNode ( "Gradma Cries" ) ) ;
526 album.add ( new DefaultMutableTreeNode ( "First Feel" ) ) ;
527 album.add ( new DefaultMutableTreeNode ( "Somethings wrong" ) ) ;
528 album.add ( new DefaultMutableTreeNode ( "Shoes" ) ) ;
529 album.add ( new DefaultMutableTreeNode ( "Spice Rack" ) ) ;
530 album.add ( new DefaultMutableTreeNode ( "Dark Feel" ) ) ;
531 album.add ( new DefaultMutableTreeNode ( "Tug of War" ) ) ;
532 album.add ( new DefaultMutableTreeNode ( "Ant Song" ) ) ;
533
534 composer.add ( album = new DefaultMutableTreeNode ( "Harven Garvel II" ) ) ;
535 album.add ( new DefaultMutableTreeNode ( "We Ain't Through" ) ) ;
536 album.add ( new DefaultMutableTreeNode ( "Trash and Spend" ) ) ;
537 album.add ( new DefaultMutableTreeNode ( "Kick" ) ) ;
538 album.add ( new DefaultMutableTreeNode ( "The Garden" ) ) ;
539 album.add ( new DefaultMutableTreeNode ( "One & Only" ) ) ;
540 album.add ( new DefaultMutableTreeNode ( "Squid Frenzy" ) ) ;
541 album.add ( new DefaultMutableTreeNode ( "Soul In Soul" ) ) ;
542 album.add ( new DefaultMutableTreeNode ( "The Desert" ) ) ;
543 album.add ( new DefaultMutableTreeNode ( "He Grew Up" ) ) ;
544 album.add ( new DefaultMutableTreeNode ( "Talk" ) ) ;
545 album.add ( new DefaultMutableTreeNode ( "Image" ) ) ;
546 album.add ( new DefaultMutableTreeNode ( "Tomorrow" ) ) ;
547 album.add ( new DefaultMutableTreeNode ( "R70" ) ) ;
548
549 composer.add ( album = new DefaultMutableTreeNode ( "Full Grown Dog" ) ) ;
550 album.add ( new DefaultMutableTreeNode ( "I Am" ) ) ;
551 album.add ( new DefaultMutableTreeNode ( "Say" ) ) ;
552 album.add ( new DefaultMutableTreeNode ( "Is This Real" ) ) ;
553 album.add ( new DefaultMutableTreeNode ( "What She Said" ) ) ;
554 album.add ( new DefaultMutableTreeNode ( "Mirror Lies" ) ) ;
555 album.add ( new DefaultMutableTreeNode ( "Girls" ) ) ;
556 album.add ( new DefaultMutableTreeNode ( "Your Will" ) ) ;
557 album.add ( new DefaultMutableTreeNode ( "Slow Motion Sunday" ) ) ;
558 album.add ( new DefaultMutableTreeNode ( "Simple Life" ) ) ;
559 album.add ( new DefaultMutableTreeNode ( "The Road Song" ) ) ;
560 album.add ( new DefaultMutableTreeNode ( "The Same Way" ) ) ;
561 album.add ( new DefaultMutableTreeNode ( "Stop Tryin" ) ) ;
562
563 composer.add ( album = new DefaultMutableTreeNode ( "Persia" ) ) ;
564 album.add ( new DefaultMutableTreeNode ( "Exonic" ) ) ;
565 album.add ( new DefaultMutableTreeNode ( "Drift" ) ) ;
566 album.add ( new DefaultMutableTreeNode ( "Cruise" ) ) ;
567 album.add ( new DefaultMutableTreeNode ( "MugWump" ) ) ;
568 album.add ( new DefaultMutableTreeNode ( "Smear" ) ) ;
569 album.add ( new DefaultMutableTreeNode ( "Everything" ) ) ;
570 album.add ( new DefaultMutableTreeNode ( "Keep" ) ) ;
571 album.add ( new DefaultMutableTreeNode ( "Circle" ) ) ;
572
573 composer.add ( album = new DefaultMutableTreeNode ( "Sensative Beak" ) ) ;
574 album.add ( new DefaultMutableTreeNode ( "Whatcha Gotta Do" ) ) ;
575 album.add ( new DefaultMutableTreeNode ( "Somewhere In This World" ) ) ;
576 album.add ( new DefaultMutableTreeNode ( "Awaken" ) ) ;
577 album.add ( new DefaultMutableTreeNode ( "Just A Dog" ) ) ;
578 album.add ( new DefaultMutableTreeNode ( "I Can Dance" ) ) ;
579 album.add ( new DefaultMutableTreeNode ( "Tomorrow" ) ) ;
580 album.add ( new DefaultMutableTreeNode ( "Love Who?" ) ) ;
581 album.add ( new DefaultMutableTreeNode ( "Is There Something" ) ) ;
582 album.add ( new DefaultMutableTreeNode ( "I Like It" ) ) ;
583 album.add ( new DefaultMutableTreeNode ( "Easy Chair" ) ) ;
584 album.add ( new DefaultMutableTreeNode ( "As We Are One" ) ) ;
585 album.add ( new DefaultMutableTreeNode ( "Far Away" ) ) ;
586 album.add ( new DefaultMutableTreeNode ( "Leaving Science" ) ) ;
587 album.add ( new DefaultMutableTreeNode ( "What A Life" ) ) ;
588
589 // The Steve Miller Band
590 catagory.add ( composer = new DefaultMutableTreeNode ( "Steve Miller Band" ) ) ;
591 composer.add ( album = new DefaultMutableTreeNode ( "Circle Of Love" ) ) ;
592 album.add ( new DefaultMutableTreeNode ( "Heart Like A Wheel" ) ) ;
593 album.add ( new DefaultMutableTreeNode ( "Get On Home" ) ) ;
594 album.add ( new DefaultMutableTreeNode ( "Baby Wanna Dance" ) ) ;
595 album.add ( new DefaultMutableTreeNode ( "Circle Of Love" ) ) ;
596 album.add ( new DefaultMutableTreeNode ( "Macho City" ) ) ;
597
598 composer.add ( album = new DefaultMutableTreeNode ( "Fly Like An Eagle" ) ) ;
599 album.add ( new DefaultMutableTreeNode ( "Space Intro" ) ) ;
600 album.add ( new DefaultMutableTreeNode ( "Fly Like An Eagle" ) ) ;
601 album.add ( new DefaultMutableTreeNode ( "Wild Mountain Honey" ) ) ;
602 album.add ( new DefaultMutableTreeNode ( "Serenade" ) ) ;
603 album.add ( new DefaultMutableTreeNode ( "Dance, Dance, Dance" ) ) ;
604 album.add ( new DefaultMutableTreeNode ( "Mercury Blues" ) ) ;
605 album.add ( new DefaultMutableTreeNode ( "Take the Money and Run" ) ) ;
606 album.add ( new DefaultMutableTreeNode ( "Rockin' Me" ) ) ;
607 album.add ( new DefaultMutableTreeNode ( "You Send Me" ) ) ;
608 album.add ( new DefaultMutableTreeNode ( "Blue Odyssey" ) ) ;
609 album.add ( new DefaultMutableTreeNode ( "Sweet Maree" ) ) ;
610 album.add ( new DefaultMutableTreeNode ( "The Window" ) ) ;
611
612 composer.add ( album = new DefaultMutableTreeNode ( "Book Of Dreams" ) ) ;
613 album.add ( new DefaultMutableTreeNode ( "Threshold" ) ) ;
614 album.add ( new DefaultMutableTreeNode ( "Jet Airliner" ) ) ;
615 album.add ( new DefaultMutableTreeNode ( "Winter Time" ) ) ;
616 album.add ( new DefaultMutableTreeNode ( "Swingtown" ) ) ;
617 album.add ( new DefaultMutableTreeNode ( "True Fine Love" ) ) ;
618 album.add ( new DefaultMutableTreeNode ( "Wish Upon A Star" ) ) ;
619 album.add ( new DefaultMutableTreeNode ( "Jungle Love" ) ) ;
620 album.add ( new DefaultMutableTreeNode ( "Electrolux Imbroglio" ) ) ;
621 album.add ( new DefaultMutableTreeNode ( "Sacrifice" ) ) ;
622 album.add ( new DefaultMutableTreeNode ( "The Stake" ) ) ;
623 album.add ( new DefaultMutableTreeNode ( "My Own Space" ) ) ;
624 album.add ( new DefaultMutableTreeNode ( "Babes In The Wood" ) ) ;
625
626 composer.add ( album = new DefaultMutableTreeNode ( "Joker" ) ) ;
627 album.add ( new DefaultMutableTreeNode ( "Sugar, Babe" ) ) ;
628 album.add ( new DefaultMutableTreeNode ( "Mary Lou" ) ) ;
629 album.add ( new DefaultMutableTreeNode ( "Shu Ba Da Du Ma" ) ) ;
630 album.add ( new DefaultMutableTreeNode ( "Your Cash Ain't Nothin' But Trash" ) ) ;
631 album.add ( new DefaultMutableTreeNode ( "The Joker" ) ) ;
632 album.add ( new DefaultMutableTreeNode ( "The Lovin' Cup" ) ) ;
633 album.add ( new DefaultMutableTreeNode ( "Come On In My Kitchen" ) ) ;
634 album.add ( new DefaultMutableTreeNode ( "Evil" ) ) ;
635 album.add ( new DefaultMutableTreeNode ( "Something To Believe In" ) ) ;
636
637 return top;
638 }
639 }
protected Vector children
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1823]PAPER
By BANGSIRI on 2006/09/23 01:07:42 Rate
import com.hp.hpl.jena.rdf.model.* ;
import com.hp.hpl.jena.rdql.* ;
import java.util.* ;
import java.io.* ;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import javax.swing.tree.*;
public class ODPLoaderAndNodeOfSearchContextSelector extends JPanel
{
JLabel Introduction;
JScrollPane jsp;
JTree ODPTree;
JLabel SelectedNodeAndPath;
JButton SearchWordNet;
public static String SelectedNodeAndPathFromODP = null;
public void buildConstraints ( GridBagConstraints gbc, int gx, int gy, int gw, int gh, int wx, int wy )
{
gbc.gridx = gx;
gbc.gridy = gy;
gbc.gridwidth = gw;
gbc.gridheight = gh;
gbc.weightx = wx;
gbc.weighty = wy;
}
public ODPLoaderAndNodeOfSearchContextSelector ( String bbb )
{
}
public ODPLoaderAndNodeOfSearchContextSelector ( )
{
GridBagLayout gridbag = new GridBagLayout ( ) ;
GridBagConstraints constraints = new GridBagConstraints ( ) ;
JPanel contentPane = new JPanel ( ) ;
contentPane.setLayout ( new BorderLayout ( ) ) ;
contentPane.setPreferredSize ( new Dimension ( 300,200 ) ) ;
//?????? ??? Introduction
buildConstraints ( constraints, 0, 0, 1, 1, 100, 10 ) ;
constraints.fill = GridBagConstraints.NONE;
constraints.anchor = GridBagConstraints.CENTER;
Introduction = new JLabel ( "Select Intent Node" ) ;
gridbag.setConstraints ( Introduction, constraints ) ;
add ( Introduction ) ;
//?????? ???????????? ??????
//0 step. ?????? ?????????, ?????? ??????
String Child = "";
Vector Children1 = new Vector ( ) ;
Vector Children2 = new Vector ( ) ;
Vector Children3 = new Vector ( ) ;
Vector Children4 = new Vector ( ) ;
Vector Children5 = new Vector ( ) ;
//???????????? ????????? ?????? ????????? ??? ??????????????? receiving
StartODPLoad SODPL = new StartODPLoad ( ) ;
StartODPLoad.StartODPLoadListener uuu = SODPL.new StartODPLoadListener ( ) ;
String OName = uuu.OntologyName ( ) ;
System.out.println ( "from ODPLoaderAndNodeOfSearchContextSelector : OntologyName = "+OName ) ;
String prefix = "";
//??????????????? ?????????.
if ( OName.indexOf ( "amazon" ) !=-1 )
{
prefix = "amazon";
}
else if ( OName.indexOf ( "Buy" ) !=-1 )
{
prefix = "buy";
}
else if ( OName.indexOf ( "ebay" ) !=-1 )
{
prefix = "ebay";
}
else if ( OName.indexOf ( "dmoz" ) !=-1 )
{
prefix = "dmoz";
}
System.out.println ( "from ODPLoaderAndNodeOfSearchContextSelector : prefix = "+prefix ) ;
//1 step. ???????????? ??????
String uri = "http://www."+prefix+".com/";
String fileLocation = "C:\\OntMapper\\SampleOntology\\CoreOntology\\"+prefix+".owl";
String Parent = "Product";
Model model = ModelFactory.createDefaultModel ( ) ;
//2 step. ???????????? ????????? ??????.
ChildrenExtractor CETor = new ChildrenExtractor ( ) ;
try
{ model.read ( new FileInputStream ( fileLocation ) ,
"http://nowhere/",
"RDF/XML" ) ;
}
catch ( Exception ex )
{
System.err.println ( "Exception: "+ex ) ;
ex.printStackTrace ( System.err ) ;
}
Children1 = CETor.EC ( prefix, uri, fileLocation, Parent, model ) ;
DefaultMutableTreeNode ParentNode = new DefaultMutableTreeNode ( Parent ) ;
DefaultMutableTreeNode ChildNode = new DefaultMutableTreeNode ( ) ;
DefaultMutableTreeNode ChildChildNode = new DefaultMutableTreeNode ( ) ;
DefaultMutableTreeNode ChildChildChildNode = new DefaultMutableTreeNode ( ) ;
DefaultMutableTreeNode ChildChildChildChildNode = new DefaultMutableTreeNode ( ) ;
DefaultMutableTreeNode ChildChildChildChildChildNode = new DefaultMutableTreeNode ( ) ;
int NumberOfChildren1 = Children1.size ( ) ;
for ( int i=0;i < NumberOfChildren1;i++ )
{
Child = ( String ) Children1.get ( i ) ;
ChildNode = new DefaultMutableTreeNode ( Child ) ;
ParentNode.add ( ChildNode ) ;
Parent = Child;
Children2 = CETor.EC ( prefix, uri, fileLocation, Parent, model ) ;
int NumberOfChildren2 = Children2.size ( ) ;
if ( NumberOfChildren2 < 1 )
continue;
for ( int j=0;j < NumberOfChildren2;j++ )
{
Child = ( String ) Children2.get ( j ) ;
ChildChildNode = new DefaultMutableTreeNode ( Child ) ;
ChildNode.add ( ChildChildNode ) ;
Parent = Child;
Children3 = CETor.EC ( prefix, uri, fileLocation, Parent, model ) ;
int NumberOfChildren3 = Children3.size ( ) ;
if ( NumberOfChildren3 < 1 )
continue;
for ( int k=0;k < NumberOfChildren3;k++ )
{
Child = ( String ) Children3.get ( k ) ;
ChildChildChildNode = new DefaultMutableTreeNode ( Child ) ;
ChildChildNode.add ( ChildChildChildNode ) ;
Parent = Child;
Children4 = CETor.EC ( prefix, uri, fileLocation, Parent, model ) ;
int NumberOfChildren4 = Children4.size ( ) ;
if ( NumberOfChildren4 < 1 )
continue;
for ( int l=0;l < NumberOfChildren4;l++ )
{
Child = ( String ) Children4.get ( l ) ;
ChildChildChildChildNode = new DefaultMutableTreeNode ( Child ) ;
ChildChildChildNode.add ( ChildChildChildChildNode ) ;
Parent = Child;
Children5 = CETor.EC ( prefix, uri, fileLocation, Parent, model ) ;
int NumberOfChildren5 = Children5.size ( ) ;
if ( NumberOfChildren5 < 1 )
continue;
for ( int m=0;m < NumberOfChildren5;m++ )
{
Child = ( String ) Children5.get ( m ) ;
ChildChildChildChildChildNode = new DefaultMutableTreeNode ( Child ) ;
ChildChildChildChildNode.add ( ChildChildChildChildChildNode ) ;
}
}
}
}
}
public Enumeration children()
- See Also:
- TreeNode
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Object clone()
- See Also:
Cloneable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode(Object userObject)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode(Object userObject,
boolean allowsChildren)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Enumeration depthFirstEnumeration()
- See Also:
postorderEnumeration()
, breadthFirstEnumeration()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final Enumeration<TreeNode> EMPTY_ENUMERATION
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean getAllowsChildren()
- See Also:
- TreeNode
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public TreeNode getChildAfter(TreeNode aChild)
- See Also:
children
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public TreeNode getChildAt(int index)
- See Also:
- ArrayIndexOutOfBoundsException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public TreeNode getChildBefore(TreeNode aChild)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getChildCount()
- See Also:
- TreeNode
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getDepth()
- See Also:
getLevel()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public TreeNode getFirstChild()
- See Also:
- NoSuchElementException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode getFirstLeaf()
- See Also:
isNodeDescendant(javax.swing.tree.DefaultMutableTreeNode)
, isLeaf()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getIndex(TreeNode aChild)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public TreeNode getLastChild()
- See Also:
- NoSuchElementException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode getLastLeaf()
- See Also:
isNodeDescendant(javax.swing.tree.DefaultMutableTreeNode)
, isLeaf()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getLeafCount()
- See Also:
isNodeAncestor(javax.swing.tree.TreeNode)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getLevel()
- See Also:
getDepth()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode getNextLeaf()
- See Also:
isLeaf()
, depthFirstEnumeration()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode getNextNode()
- See Also:
preorderEnumeration()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode getNextSibling()
- See Also:
children
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public TreeNode getParent()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public TreeNode[] getPath()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected TreeNode[] getPathToRoot(TreeNode aNode,
int depth)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode getPreviousLeaf()
- See Also:
isLeaf()
, depthFirstEnumeration()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode getPreviousNode()
- See Also:
preorderEnumeration()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public DefaultMutableTreeNode getPreviousSibling()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public TreeNode getRoot()
- See Also:
isNodeAncestor(javax.swing.tree.TreeNode)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public TreeNode getSharedAncestor(DefaultMutableTreeNode aNode)
- See Also:
isNodeDescendant(javax.swing.tree.DefaultMutableTreeNode)
, isNodeAncestor(javax.swing.tree.TreeNode)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getSiblingCount()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Object getUserObject()
- See Also:
toString()
, setUserObject(java.lang.Object)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[829]Get a node from a JTree
By Anonymous on 2004/07/06 05:16:18 Rate
DefaultMutableTreeNode node= ( masse ) value;
JCheckBox node1= ( JCheckBox ) node.getUserObject ( ) ;
toto= ( JCheckBox ) ( node.getUserObject ( ) ) ;
return toto;
public Object[] getUserObjectPath()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void insert(MutableTreeNode newChild,
int childIndex)
- See Also:
isNodeDescendant(javax.swing.tree.DefaultMutableTreeNode)
, IllegalStateException, IllegalArgumentException, ArrayIndexOutOfBoundsException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isLeaf()
- See Also:
getAllowsChildren()
, TreeNode
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isNodeAncestor(TreeNode anotherNode)
- See Also:
getSharedAncestor(javax.swing.tree.DefaultMutableTreeNode)
, isNodeDescendant(javax.swing.tree.DefaultMutableTreeNode)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isNodeChild(TreeNode aNode)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isNodeDescendant(DefaultMutableTreeNode anotherNode)
- See Also:
getSharedAncestor(javax.swing.tree.DefaultMutableTreeNode)
, isNodeAncestor(javax.swing.tree.TreeNode)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isNodeRelated(DefaultMutableTreeNode aNode)
- See Also:
getRoot()
, getSharedAncestor(javax.swing.tree.DefaultMutableTreeNode)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isNodeSibling(TreeNode anotherNode)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isRoot()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected MutableTreeNode parent
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Enumeration pathFromAncestorEnumeration(TreeNode ancestor)
- See Also:
isNodeDescendant(javax.swing.tree.DefaultMutableTreeNode)
, isNodeAncestor(javax.swing.tree.TreeNode)
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Enumeration postorderEnumeration()
- See Also:
preorderEnumeration()
, depthFirstEnumeration()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Enumeration preorderEnumeration()
- See Also:
postorderEnumeration()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void remove(int childIndex)
- See Also:
- ArrayIndexOutOfBoundsException, MutableTreeNode
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void remove(MutableTreeNode aChild)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removeAllChildren()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void removeFromParent()
- See Also:
- MutableTreeNode
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setAllowsChildren(boolean allows)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setParent(MutableTreeNode newParent)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setUserObject(Object userObject)
- See Also:
toString()
, getUserObject()
, MutableTreeNode
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String toString()
- See Also:
getUserObject()
, Object
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected transient Object userObject
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples