I am trying to extend a JPanel when a button is pressed in Java. I have a called ButtonMaker that extends a JPanel with a button on it. When the button is pressed, I want to extend a new JPanel. How do I extend the new JPanel in the actionPerformed method in the action listener of the JButton?
Asked
Active
Viewed 17 times
0
-
I'm not understanding your terminology to "extend a new JPanel" . – camickr Jun 03 '22 at 21:39
-
Try looking at [How to rezise a JPanel](https://stackoverflow.com/questions/27364098/how-to-resize-a-jpanel). – Alias Cartellano Jun 04 '22 at 17:53