How to set width and height in a java applet?
January 23, 2011 – 11:43 pmI was wondering how to change the width and height in a java applet. Right now the width and height are at the default size of 500 pixels. I want to change them and was wondering if there was a command like setHeight(int x); or something that would do that…
Related posts:
- How to make an java applet window not resizable?
- How and where to download the Java Applet?
- How and where to download the Java Applet?
- How and where to download the Java Applet?
- How to get a java applet to read and display a ms access database?
- How to get a java applet to read and display a ms access database?
- How do I Create a Java applet that connects to files on a remote computer?
- How to go from a level to a nother in a java applet game?
- How to pass a value from an applet to javascript / php?
- My java applet opens in a new window. How do I embed it within the webpage?
2 Responses to “How to set width and height in a java applet?”
You change the width and height in the applet tag in the code for the web page.
<applet code="<the name of your file>.class" width=800 height=600></applet>
By Mark aka jack573 on Jan 23, 2011
Possibly draw a 1 px Line at the very top of x Pixels wide, same applies to the side
By Taz on Jan 23, 2011