Hello. I got a problem with a JButton in a game that i am making.
I have a mainFrame that is where we play the game.In this class i have a main method in order to test it.We also have a first window.In first window we have a button play and when we push it , we show the mainFrame.
The problem: When i push the button it shows me the mainFrame but all the window is white.( i should see some pictures and buttons)
In actionPerformed method i copy paste the code of the main class of mainFrame, which works correctly, so i guess that it will works also correct in actionPerformed ,but no.
thanks
I have a mainFrame that is where we play the game.In this class i have a main method in order to test it.We also have a first window.In first window we have a button play and when we push it , we show the mainFrame.
The problem: When i push the button it shows me the mainFrame but all the window is white.( i should see some pictures and buttons)
In actionPerformed method i copy paste the code of the main class of mainFrame, which works correctly, so i guess that it will works also correct in actionPerformed ,but no.
thanks


Comment