Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is/the point of, a secure thread?

 
Samuel Woodhams
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey javaranch,

i have writen an application that works fine how ever i have noticed that every example that is on the java tutorials has a very specific way of launching the application! it looks like this

this is at least roughly set out! now my problem is that im struggaling to see why you need to do this and if you need to do this im unsure how i can change my excisting main class so it includes those methods!

any help would be much appreciated!
thanks in advance

sam
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "those methods" and "a secure thread"?
 
Henry Wong
author
Marshal
Pie
Posts: 20889
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you meant -- event dispatch thread? For which...

I really recommend that you do research on it, and fully understand it, before you code another line of Swing. Swing has some particular thread safe issues, and you really need to understand it, ASAP, to avoid running into those issues.

Henry
 
Campbell Ritchie
Sheriff
Posts: 48386
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult a question for "beginning." Moving.
 
Samuel Woodhams
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok to clear up what i was saying!!! yes im taking about the "event dispatch thread" of which i know very little about! i was hoping it was a small problem that i was not understanding however, (after quickly looking at the Sun tutorials on this) it turns out there is a whole load of stuff i didn't know! therefore thank you for pointing this out! im off to go read and hopefully i can get my answers if not im sure i'll come back for more help.

thanks again

sam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic