Ultimate Sidebar

How to Add Java Applets Using HTML Programming

104 13
    • 1). Open your word processor or the text editor you will use to create your web page. Locate the web page you will be editing. Position your cursor inside the <CENTER> tag where you want the Java Applet to appear on your page.

    • 2). Type <APPLET CODE=“?”> Replace the question mark with the location of the Java Applet on your computer. Java Applet names have the .class extension. Inside of the <APPLET> tag, type WIDTH=? HEIGHT=? Replace the question mark with the width and height of the Java Applet, expressed in pixels.

    • 3). Type </APPLET> to complete the Java Applet. Your text should look like this:<CENTER><APPLET CODE=“game.class” WIDTH=240 HEIGHT=190></APPLET></CENTER>

    • 4). Open a new web browser to verify that your web page runs the Java Applet correctly. Test the Applet to verify that it is user-friendly.

Source: ...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.