Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2004

Tip: Looking for answers? Try searching our database.

Temporarily disabling of the component update

Thread view: 
Markus L?ffler - 31 Mar 2004 15:05 GMT
Hi,
is it possible to temporarily disable that a component updates itself
on the screen? I'm building up a JTree step by step (in a timer), and
each time an element is updated, the screen updates. But I want to
create the entire tree and then update the screen.

Is there a general mechanism to do so? I can imagine workarounds for
JTree, e.g., build a subtree and then add the entire subtree to the
tree.

Thanks,
Markus
Markus L?ffler - 31 Mar 2004 21:06 GMT
Actually, I found that the tree is not updated on the screen if I add
to the DefaultTreeModel, only after I do

 d_tree.scrollPathToVisible(new TreePath(newNode.getPath()));

That answers my question but brings up new questions. Why doesn't
DefaultTreeModel.insertNodeInto() update the screen, as I read in many
newsgroup posts?

Why doesn't d_tree.scrollRowToVisible() doesn't work either, when it
scrollPathToVisible is replaced by it?

Thanks,
Markus


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.