Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
java applet button problem .. :( plz help
i am making a game using java applet.
i am experiencing some problems
the applet starts with 2 push buttons START GAME and
1.a thread starts when "START GAME" button is pressed.
but the problm is that the "START GAME" button still appears in the screen while the game is running ..
how can i make it such a way tht the button dissapears after it is cliked ?
2. How is it possible to run 2 differnt threads(havin differen RUN body) in a program ?
I need a different thread for the View Score section ..
But once the run function for 1st thread is made , wer wil the other thread's run function be written ?
3. How can the Buttons be placed in a coordinate x,y ?
i tried using button.setLocation(int x,int y) but it seems to be not working
and how can i increase size of button
my class extends Applet class, implements Runnable and ActionListener
please do help me ...