File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Putting Applet in HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Putting Applet in HTML" Watch "Putting Applet in HTML" New topic

Putting Applet in HTML

Andrew Cho
Ranch Hand

Joined: Jun 29, 2011
Posts: 50
Hey all,
Just a quick question that hopefully someone can solve. I have an applet that's in a HTML page. The applet takes up the whole page and resizes with the resizing of the browser window. The only problem is when I have this code in my HTML doc:

it works exactly how I want it, where the scroll bars do not show up until the browser window hits my applets minimum size. But when I correct the code so it looks like:

the vertical scrollbar on the browser shows up, even though the applet is smaller than the browser window.
The only difference is the last line where
becomes if you didn't notice.
here is my whole HTM code:

Thanks for any help,
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

Please use the the following tags instead of APPLET tags.

Not many get the right opportunity !
Andrew Cho
Ranch Hand

Joined: Jun 29, 2011
Posts: 50
Works greatly now.
Thanks Madhan
I agree. Here's the link:
subject: Putting Applet in HTML
It's not a secret anymore!