Any soloution for this?
Type: Posts; User: newtolearningjava
Any soloution for this?
I have been playing around with the game. I did what you said and added the system.out.println as you can see in the code below:
is only ca is only ca
if i pits my
how do i change these
please can you show me the line of code you use to only add a listener once?
public class game extends JFrame implements ActionListener{
isit like this?
haha
quite a few.
it opens
yes i have it working BUT when i click the button to open the new gui it opens more than 1 so how i get rid of that?
here is the mini program you told me to make it works
IN MY ORIGINAL PROGRAM IT DOES NOT WORK WHICH IS WHAT IM TRYING TO GET WORKING
did u make changes in the code which is on post no37?[COLOR="Silver"]
--- Update ---
so remove this line of code ????
JFrame frame = new JFrame();
if i do this there is error for cannot find symbol
symbol: method add(JPanel,String)
location: class Object
----
BUT when i complie my code there is no gui it just says
BUILD SUCCESSFUL (total time: 6 seconds)
this is my original code when i get rid of frame nothing appears when it is complied
D OF ??
in my original code i have so this why i have done it like this in the program. how do i fix it?
I was told i have to use EXTEND JFrame
public class game extends JFrame {
m that compiles, executes and shows the problem?
m that compiles, executes and shows the problem?
m that compiles, executes and shows the problem?
it opens the new gui but never closes the old one
Am i on the right track here?
i updated the name.
[/COLOR]
what does mean?
norm please help me to do this, been trying to solve this for hours
how do i do this?
omg
i am confused
i have updated the code in post no 12
public class game extends JFrame{
//some code
}}