How to set width and height in a java applet?

January 23, 2011 – 11:43 pm

I 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:

  1. How to make an java applet window not resizable?
  2. How and where to download the Java Applet?
  3. How and where to download the Java Applet?
  4. How and where to download the Java Applet?
  5. How to get a java applet to read and display a ms access database?
  6. How to get a java applet to read and display a ms access database?
  7. How do I Create a Java applet that connects to files on a remote computer?
  8. How to go from a level to a nother in a java applet game?
  9. How to pass a value from an applet to javascript / php?
  10. My java applet opens in a new window. How do I embed it within the webpage?
  1. 2 Responses to “How to set width and height in a java applet?”

  2. 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

  3. 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

Sorry, comments for this entry are closed at this time.