Hello, I haven a applet embedded into a jsp page into an APPLET tag, with a fixed height and width, same values as the JPanel has on the applet with all the elements inside of it, my problem is, that if I use the browser zoom, the JPanel respects width and height but JApplet window does not, and increases until I stop zooming the site, I'd like to avoid this, I already tried by setting these parameters on the init function on the JApplet class:
But it does not work, is there something like a this.setResizable(false) for the JApplet class? I understand that JApplet is a subclass of JFrame isn't? please, any idea would be highly appreciated, have a nice day!!
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!