but anyways man i have figured the both solution to get it work now i an jbutton opening a frame and a jbutton closing the frame :D
Type: Posts; User: FastFuture
but anyways man i have figured the both solution to get it work now i an jbutton opening a frame and a jbutton closing the frame :D
omg im a newbeginner i want the freaking JButton button = new JButton("Start Spaceball") i want that button to open a new jframe/window when the first one is running since the first jframe is running...
how can i make an jbutton to open a new jframe while the first one is running i want to create a new window so it openes the game when you click at start game button
how can i make my start spaceball jbutton to open a new jframe
with the actionlistener??
can i make one called addactionlistener(string) ?? can you type the code how to do it im using java 7 in the eclipse
--- Update ---
can you write the code ??? so i can see a little more about...
yup im a newbeginner so im having problem with filtering events
--- Update ---
i want to make the jbutton button = new jbutton("Start Spaceball"); to open a new jframe but if i add ...
how can i makie an jbutton to open a new jframe while the first jframe is running
i found out the solution i added this
setVisible(false);
super.dispose();
in the actionlistener but thanks for helping out
--- Update ---
but the last thing i need to find out is how i can...
i need help with to make the Jbutton = new Jbutton("EXIT"); i want to make the jbutton to close the jframe when its running so i dont have to click at the top for closing it
i have tried to add ...
i want to close it with an jbutton
omg just add me at skype : DimplyAndreas
its more easier to explain it over skype
omg you dont understand nothing and i dont ... know what necessary file is and im tired of replying since you don't understand it
--- Update ---
add me at skype : DimplyAndreas
so i can show...
see 4695e31ef25ae16b3c108f62b3fc67a7.png i want to make the exit button to close the jframe and i want the start spaceball to open a new jframe when i click it
i also want to make an jbutton to open a new jframe and how do i do that what do i need to type in ?? in my code
i know but when i start the code it pops up a jframe with buttons i have added i want to make one of the jbuttons to close the jframe i made when its running that i dont have to click exit at the top...
OMG i want to make the exit button to close the jframe when i click start it opens a jframe and i have an exit button i want to make that button close the jframe when you click on it
i want to make the frame to close when i click at the jbutton of exit i made
i want to make the JButton button3 = new JButton("Exit) i want to make that close the JFrame when i click at but heres all of my code
import java.awt.*;
import java.awt.event.ActionEvent;
import...
im stuck with that i can make the jbutton i made to close the jframe when i click at it
i typed this
JButton button3 = new JButton ("Exit");
button.addActionListener(this);
...
can you guys type how?? like type the things that i can add??
no its not that i want o make an JButton to close the jframe
y0 guys i have been working on a jframe with background and jbuttons and i fixed everything of it
but the thing that i want to make the exit button i made to close the jframe when i click on it??...