You change the width and height in the applet tag in the code for the web page.
%26lt;applet code=';%26lt;the name of your file%26gt;.class'; width=800 height=600%26gt;%26lt;/applet%26gt;How to set width and height in a java applet?
Of course there is a setHeight(int x) in the actuall Applet class.
Report Abuse
On another note. You might have to use an %26lt;object%26gt; tag instead of the %26lt;applet%26gt; tag, as the applet tag has been deprecated.
This page will provde info on the %26lt;object%26gt; tag
http://www.w3schools.com/TAGS/
Report Abuse
Continued from the above comment.
This page should give you the classid for use with an applet and various other things in the %26lt;object%26gt; tag.
http://java.sun.com/docs/books
Report Abuse
Possibly draw a 1 px Line at the very top of x Pixels wide, same applies to the side
No comments:
Post a Comment