Override JPanel parent frame
I want my panel to fit the frame when I show / hide the margins. How can I notify the parent frame for confirmation?
I thought about passing the frame to the panel constructor, but I think maybe that's already done. I remember there was a protected attribute in the JPanel, but no. I may remember the wrong component.
+2
a source to share
3 answers