This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet sizing problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "Applet sizing problem" Watch "Applet sizing problem" New topic
Author

Applet sizing problem

Peter Phung
Ranch Hand

Joined: Dec 06, 2001
Posts: 138
hi everyone,
I've written an applet but it is appearing larger than the display area. I havn't written any code which sizes the applet. can anyone tell me what i'm doing wrong?
My code :

This is the only code i have, no other parts of the GUI have been written.


Pete<br />"Reality is an illusion <br />brought on by a lack of <br />drink, drugs and smut"
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9056
    
  12
I suggest you make your lines of code shorter than 120 characters per line.

You have height and width parameters in your html page that calls the applet, right?

applet code=xxx height=xxx width=xxx


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Applet sizing problem
 
It's not a secret anymore!