Adding JPanel using Jbutton, Expanding JFrame as needed.
If anyone could show me a sample/ example or link to reading that could help, please assist.
On my first try, I created my panel as a class extending JPanel.
I created an instance and added it to the frame simply enough.
I get trouble when trying to perform the same function via a JButton.
I'll post an example of what I have soon. I scrapped my first run as it became a mess and debugging was wasting more time than a rewrite.
Re: Adding JPanel using Jbutton, Expanding JFrame as needed.
There are lots of examples of just this on this forum and other similar sites. If you get stuck, please post your code attempt with [code] [/code] tags and tell us any details about the problems you may be having with your code.