Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Maximize the applet viewer windows!" Watch "Maximize the applet viewer windows!" New topic
Author

Maximize the applet viewer windows!

Abdel Remani
Greenhorn

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: 804
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: http://aspose.com/file-tools
 
subject: Maximize the applet viewer windows!
 
Similar Threads
DOS page scrolling
How to access Windows API from Applet??
How to access Windows API from Applet??
applet issue
how to use policy tool for Applets in java ?