wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create full screen applet in browser?
 
Similar Threads
how to write something in the status bar
Move location Button of Button Dynamically
Print of Graphics
How to use swings with applet
can applet call javascript function?? HOW??