I'm working with 4X4 grid of buttons (16). I need to change all the buttons when I click a the "New game". I tried removeAll() of panel and than tried to call the same class to create 16 buttons again for the panel. But it didn't work.
Following is the similar program I'm stuck with. Please help me with the code.
I got it Rob Prime I was actually creating new object for SecondPanel. Now I just created another method which adds my new component and called it directly from my MYFrame class.
In MyFrame.java
in Second Panel.java
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.