Sunday, July 15, 2012

[Java] - Applet viewer size


Hi.
    Recently I had a problem to change an applet viewer size in the Eclipse. If you have the same obstacle to test your program fully or just aesthetically wish to see the result in a properly sized window, so use this code   in your class body:

public void init() {

    setSize(width,height);

 } 

No comments:

Post a Comment