Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Avoiding applet main window resizing when using browser zoom?

881879Dec 22 2011 — edited Dec 28 2011
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:

this.setSize(593, 468);
this.setMaximumSize(new Dimension(593,468));
this.setMinimumSize(new Dimension(593,468));
this.setBounds(0, 0, 593, 468);
this.setPreferredSize(new Dimension(593,468));

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!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 25 2012
Added on Dec 22 2011
3 comments
571 views