GeeCON Prague 2014*
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
Author

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,
Andrew
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

Please use the the following tags instead of APPLET tags.



S.D. MADHAN
Not many get the right opportunity !
Andrew Cho
Ranch Hand

Joined: Jun 29, 2011
Posts: 50
Works greatly now.
Thanks Madhan
 
GeeCON Prague 2014
 
subject: Putting Applet in HTML