LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-23-2004, 12:05 PM   #1
logicdisaster
Member
 
Registered: Jun 2004
Posts: 41

Rep: Reputation: 15
How do i refresh a jtree?


ive created two drag and drop jtrees which both use the same model. When i drop something its always a move so i have it copy the node remove the node from the model then insert the node into its new parent the problem is that the jtree doesnt show the change in structure unless i close all the nodes and deselect them then reopen them. Is there a way to refresh the tree without having to make the user close up the tree and deselect everything then reopen the nodes again
 
Old 09-23-2004, 03:33 PM   #2
logicdisaster
Member
 
Registered: Jun 2004
Posts: 41

Original Poster
Rep: Reputation: 15
okay ive tried reload revalidate repaint and anything else i could find, but for some reason it doesnt change anything. Do i have to write something to manually set the root as selected and close all the nodes and then reopen them just to make it refresh(seems kinda dumb)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with JTree. Diederick Programming 1 06-27-2005 02:39 PM
Help with JTree. Diederick Programming 1 06-17-2005 07:16 PM
Jtree can only modify one? ::JAVA:: logicdisaster Programming 0 09-27-2004 12:40 PM
Java: JTree & drag'n'drop decadent Programming 1 06-07-2004 06:41 AM
Java: Some questions about JTree decadent Programming 1 04-01-2004 05:32 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration