This content has been marked as final. Show 3 replies
Use an appropriate Layout Manager and you can keep your panel that houses the other components at a fixed size at the center of the Applet. One way to do this is to use a GridBagLayout and to add the panel without a GridBagConstraint.
So far I have the layout as NULL, I will give it a try, because as I said, the JPanel respects the dimensions, but the JApplet window (which acts like a regular JFrame as I understand) increases according to the browser zoom, I will post my results, thanks!
1 person found this helpful
saman0suke wrote:Java doesn't have a NULL. Presumably you have a null layout. Don't do that/ Learn how to use layout managers and maybe you won't have a problem with the container being resized.
So far I have the layout as NULL,