-
Thread: Everything Depreciated
Hey everyone. I have a program that I have been struggling with and now Im so close to finishing it I can taste it. Here's the deal I have one thread in my program that is called from the main method. When my program runs the thread immediately starts as it is written. Problem is my program is a slot machine and the thread should not start until the spin button has been pushed. Idealy I think that some sort of stop method should be at the beginning of the thread(so that It doesn't start as soon as the program is started). Then have a start method for the thread in my Listener class for the sin button.
If this is what I need to do, I don't know how. Everything that I read on threads talks about how to start them. everthing to pause or stop them has been taken out of java.
Any help will be greatly appreciated.
-
deprecated doesn't mean that you can't use/ compile it (although it does usually mean its been replaced by something better). If the only support you can get is deprecated on the other hand, a bit of reading of the method in the java api will usually clear things up in the java sun supported way of doing things.
Similar Threads
-
By manik_gopal in forum Java
Replies: 4
Last Post: 04-27-2006, 07:01 AM
-
By chill_out in forum C++
Replies: 2
Last Post: 05-30-2005, 06:10 AM
-
Replies: 4
Last Post: 08-02-2002, 05:11 AM
-
Replies: 1
Last Post: 10-29-2000, 04:51 PM
-
Replies: 2
Last Post: 10-27-2000, 03:07 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks