Swing unusable inside applets?
This Swing refresh business is getting totally out of hand!
As I already described in thread http://forums.java.net/jive/thread.jspa?threadID=74483&tstart=0 I have a java applet that does not get painted initially.
I always need to first click into the gray area to get the screen updated and see the applet's content.
And now things start getting worse and worse! Among other elements the applet has two Swing JSplitPanes and now their contents does not get refreshed any more until I slightly move the separating slider.
In an experimental version I added repaints() all over the place but these seem to have absolutely no effect! Why does Swing not properly repaint updated JPanels?
And what's most annoying: this "Swing update-refusal" is only happening when running as a real applet inside a browser (I tested with IE8 and FF3.5). When running my program as application or testing it in AppletViewer then things are always working perfectly!
What could cause this? Is there some thread in AWT/Swing that can hang or somehow be blocked or what is the reason that applets don't properly refresh???
No wonder the entire world goes Flash and AJAX and what not just to avoid this Applet refresh craze!
Message was edited by: mmo18