Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maximize the applet viewer windows!

 
Abdel Remani
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,
I want to maximaze the applet viewer windows, so it will be a full screen size no matter where the applet runs.
 
Jeff Bosch
Ranch Hand
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic