Make an applet fill the browser window
Posted on 2004-09-22
I have an applet, and I want it to fill all the browser window. To do this, I have this HTML, which works fine (note the 100%):
width = "100%"
height = "100%"
codebase = "."
code = "servidor.AppletWrapper.class"
archive = "servidor.jar"
name = "TestApplet"
But, although the applet area of the web page fills the browser window, the actual window inside it, my app's window, does not fill all the area, and I don't know why.
The only thing my applet class does is to crate an instance of a JPanel derived class and add it to itself. This is done in the constructor of the applet:
MyPanel panel = new MyPanel();
The JPanel derived class contains all the controls, and has BorderLayout.
If you need more info please ask.