I am trying to set the size of an Applet Window to 500 by 500, but I couldn\'t be able to achieve that. Here is my code,
public void init() {
// Start
To change the size of the Applet Window, without looking for the eclipse .html is to choose "Run Configurations" in the "Run, '>' icon options " in the eclipse panel. In the configurations choose "Parameters" and set the size of the applet in the two boxes available for 'height' and 'length.' You may leave the box 'name' unfilled.
If you use eclipse, you can change applet size from the "run configuration" Java Applet->Parameters". I think that's the problem, because the default value of java applet size in eclipse is 200*200.
Hope it will helpful: a similar issue
try this inside the paint method for example
this.setSize(300, 300);