aspose file tools*
The moose likes Applets and the fly likes How to create full screen applet in browser? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "How to create full screen applet in browser?" Watch "How to create full screen applet in browser?" New topic
Author

How to create full screen applet in browser?

Javad Rashidi
Ranch Hand

Joined: Feb 13, 2011
Posts: 34

i want to create applet that have size match to white space of browser , without make the browser scrollable and i don't want open my applet in new frame.
can somebody guide me how to do that?


http://www.myviwo.com
Estillan Xu
Greenhorn

Joined: Apr 05, 2011
Posts: 12

My Applet is a bit different because it is converted from a desktop application.

Firstly I have a JFrame, I use following methods to set the size:

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
frame.setSize(screenSize);



For the Applet, I add the content pane of that frame to the center:

this.getContentPane().add(gui.frame.getContentPane(), BorderLayout.CENTER);

"this" is the Applet.

Hope it helps.


My first program "Hello World" was in 1997, but until now that's the only thing I know.
 
 
subject: How to create full screen applet in browser?