This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes SwingWorker Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SwingWorker" Watch "SwingWorker" New topic


Rishi Yagnik
Ranch Hand

Joined: Jan 04, 2001
Posts: 84
Hi All
I am facing a flickering problem in applet when using SwingWorker class from sun i want to do some background processing in event thread SwingUtilities.invokeLater did help me but not that much GUI used to get freeze to prevent that i have used SwingWorker seems to be everything is working fine but some flickering is happening in applet can somebody tell me why is it happening and what is the solution for the same
pls note This problem arise when applet is loaded with huge data
pls help required urgently
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

You'll need to post some code to show what you are doing... SwingWorker is basically just a way to use threading, that's not important... it's important to see what you are doing with the threading!

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Rishi Yagnik
Ranch Hand

Joined: Jan 04, 2001
Posts: 84
For more clearance
I am sending u a chunk of code that is as follows :
on JTextField focusLost()
settting Object attributes which in turn firing a state changed event
public void stateChanged()
//doing some processing which was taking a long time so i added SwingWorker for the same now gui is not getting freezed but JtextField flickers
I hope this is much clear
looking forward to yr help
I agree. Here's the link:
subject: SwingWorker
Similar Threads
Problems with Applets in HTML Document
JApplet - Flickering
Help on SwingWorker
JTree flicker
Applet gives Flickering