public void setTextureSize ( int width , int height ) { setPreferredSize ( new Dimension ( width , height ) ) ; setSize ( new Dimension ( width , height ) ) ; this . width = width ; this . height = height ; }
Set the size of the sprite sheet