How can I read easily from html file

I’ve been doing a little game and I can launch it as an applet or frame.

I know that applet gets width and height and other necessary information from html file (or from html tags from java file) but how can I make frame to read (width and height) from that same html file? Is there any easy solution or do I have to use FileReader or something to do this little thing.

You are already extending Applet or JApplet. It will be set to the width and height specified in the HTML file. Just use getWidth() and getHeight() inherited from Applet/JApplet to find out.