JavaRanch » Java Forums »
Java »
Swing / AWT / SWT
Author
Java awt/swing
Pradyumna Sahoo
Greenhorn
Joined: Feb 27, 2013
Posts: 20
Can any body help to improve this game . I want the game to be dynamic and multithreaded..
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35256
posted Mar 11, 2013 02:32:47
0
Define "dynamic". What, exactl y, does the code do now, and what, exactly , do you want it to do?
Android apps – ImageJ plugins – Java web charts
Pradyumna Sahoo
Greenhorn
Joined: Feb 27, 2013
Posts: 20
thnks for your reply , it's a simple awt shooting game but it's static one(means the objects are not moving). I want the tanks as well as the targets to move at the same time. i.e mutithreading
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32712
You cannot apply multiple threads to Swing components .
Suggest a Timer.
And please change the subject of this thread .
Pradyumna Sahoo
Greenhorn
Joined: Feb 27, 2013
Posts: 20
how do they develop games than!!!
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 4167
Recommended reading: Concurrency in Swing .
Oh, and in this day and age you shouldn't be wasting time getting familiar with AWT. Swing superseded AWT more than ten years ago.
And if you want to be really cutting-edge, you should devote your time to learning JavaFX 2. It's still a little young, but maturing fast.
luck, db
There are no new questions, but there may be new answers.
subject: Java awt/swing