permaculture playing cards
The moose likes Beginning Java and the fly likes Maximize the applet viewer windows! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Maximize the applet viewer windows!" Watch "Maximize the applet viewer windows!" New topic

Maximize the applet viewer windows!

Abdel Remani

Joined: Oct 05, 2004
Posts: 8
Hey guys,
I want to maximaze the applet viewer windows, so it will be a full screen size no matter where the applet runs.

Abdel Remani
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
Do you mean "maximize AppletViewer when it runs" or "maximize the window in which the applet runs"? (Remember, an applet runs in a Web browser, and not in a separate viewer window like a Java application would.)

If the second, in an application you can get the resolution of the monitor, then set the size to the x and y size. In an applet, I don't know if you can do that. The Applet class has reSize and setSize methods, and it inherits the getMaximumSize and getMinimumSize methods from class Container and other getter/setters from class Component, so this may be a good starting point for experimentation.

Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
I agree. Here's the link:
subject: Maximize the applet viewer windows!
It's not a secret anymore!