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 / General / June 2007

Tip: Looking for answers? Try searching our database.

JTree problem

Thread view: 
tereferekuku - 06 Jun 2007 10:07 GMT
Hi,

I have a problem rendering JTree: At program's startup JTree is
created dynamically and approximately once per 3-5 times I try to
start it one or more nodes has enormous height (it can be much more
than a screen's height). I guess this is some sort of threading
problem, because I can't reproduce it every time. When this happens no
exceptions are being thrown.
Did anybody have similar problem and knows how to solve it?

Thanks,
Arek
Andrew Thompson - 06 Jun 2007 11:39 GMT
...
>Did anybody have similar problem...

Not in my code.

> ...and knows how to solve it?

One strategy might be to post your code, or more
specifically, an SSCCE* that can produce this effect
(occasionally, if not always).

* <http://www.physci.org/codes/sscce.html>

Signature

Andrew Thompson
http://www.athompson.info/andrew/

tereferekuku - 07 Jun 2007 09:17 GMT
I was calling swing methods (rendering of the tree) on non swing
thread. After fixing that it works fine.

Thanks,
Arek


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



©2009 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.