G
groupie
Hi,
I have a jTree control created via the netbeans graphical gui. It's
displaying the default 'colours', 'sports', and 'food'. The tree is
in
a jPanel which is initially invisible. After creating the tree I make
everything visible:
jTree1 = new names().buildTree();
jPanel1.setVisible(true);
names().buildTree() is returning a full jTree structure into the tree
gui (jTree1) , however when the panel is displayed, the tree is still
displaying the default. I tried jTree1.repaint() but that didn't
work.
Any ideas? Do I have to refesh the screen or something?
Thanks.
I have a jTree control created via the netbeans graphical gui. It's
displaying the default 'colours', 'sports', and 'food'. The tree is
in
a jPanel which is initially invisible. After creating the tree I make
everything visible:
jTree1 = new names().buildTree();
jPanel1.setVisible(true);
names().buildTree() is returning a full jTree structure into the tree
gui (jTree1) , however when the panel is displayed, the tree is still
displaying the default. I tried jTree1.repaint() but that didn't
work.
Any ideas? Do I have to refesh the screen or something?
Thanks.