This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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.
 
Have you checked out Aspose?
 
subject: How to create full screen applet in browser?
 
It's not a secret anymore!