Advanced Minds

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
swing components are not thread-safe swing not thread-safe (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: swing components are not thread-safe swing not thread-safe
#3143
ap (Visitor)
Click here to see the profile of this user
Birthdate:
swing components are not thread-safe swing not thread-safe  
Sun makes the statement: Once a Swing component has been realized, all code that might affect or depend on the state of that component should be executed in the event-dispatching thread. Following this recommandation may cause a lot of additional code, especially when dealing with GUI events, that trigger time consuming tasks. I use to write event-driven programms that works like a state machine: the listener only changes states and NOTHING ELSE. A special thread contains a state event loop does all the task. It also updates Swing components. Is this safe enough? (I never had a problem.)
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
swing components are not thread-safe swing not thread-safe
ap 2008/05/08 05:49
    thread link
thread linkthread link swing components are not thread-safe swing not thread-safe
Thomas Hawtin 2008/05/08 05:49
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
brak autoryzacji wymiana linkow 905 sprawdz autoryzacje 905
tours of vietnam asia travel eyewitness news about black hole