Updating a jpanel

programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums Hi, I just found this site the other day, and it looks like a great resource!Anyway, I am creating a (simple) Java drawing program and have as my top-level window a JFrame.(Im pretty sure repaint() or revalidate() will wait also) Any long process that starts from the event thread should run in a new thread.That way the GUI can repaint itself if it needs it.My problem is this: If i press a button on the WEST Panel ..Event Dispatch Thread (EDT) handles the painting, so when you do a 'long task', the EDT is blocked until the long task is finished.

Articles on Difference are general information, and are not intended to substitute for professional advice. Gametes formations occur in animal cell and meiosis is necessary for sexual reproduction which occurs in eukaryotes.Meiosis influence stable sexual reproduction by halving of ploidy or chromosome count.Secondly, The line: Content Pane(this); is in the same class as the other code that was posted, and what you said makes sense.After doing some searching about set Content Pane on the com site, I realized that what I need to do is something like Content Pane(drawing Area); (at least that is what I think I need to do)...

Leave a Reply