wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
wood burning stoves
subject: Putting Applet in HTML
Similar Threads
Making Typing "Game", any tips or pointers before I start?
animation question: resize applet?
applet resise not happening on drag by user
Setting frame minimum size
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /mnt/CPSW/tmp/emts/web/2-STA-ALM-