Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SwingWorker

 
Rishi Yagnik
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rishi
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Rishi Yagnik
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rishi
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic