Micro Niche Builder
Closed Thread
Results 1 to 8 of 8

Thread: Embeding applet in the HTML

  1. #1

    Default Embeding applet in the HTML

    I am trying to embed applet in html code but unable to do so. Problem is that I have a class file, which is compiled java file. Please help me to embed this class file to html file.

    Thank you


  2. #2

    Default

    Its pretty simple if you are using dreamweaver. If you are using other software then here it is a code by which you can embed an applet.

    HTML Code:
    <applet code="yourfile.class" width=400 height=400>
    
    </applet>
    Hope it helps.

  3. #3

    Lightbulb

    i think its simple....
    just write this in html language...

    "<applet code = filename.class width = any height = any>
    </applet>" <-- For clsing the applet
    height and width you can give by your choice....
    and always "filename" of your program with extension class.
    because of class file.....

  4. #4

    Default

    in notepade you right
    <applet code="filename.class" width=500 height=500>
    </applet>

    then save it.
    openwith internet.
    ok
    width & height parameter can be any number.

  5. #5

    Default

    When you put an applet on your page you will need to save the applet on your server as well as the HTML page the applet is embedded in. When the page is loaded by a visitor the applet will be loaded and inserted on the page where you embedded it

  6. #6

    Lightbulb

    Quote Originally Posted by djk View Post
    in notepade you right
    <applet code="filename.class" width=500 height=500>
    </applet>

    then save it.
    openwith internet.
    ok
    width & height parameter can be any number.
    i think you are knowing about java enough...?
    can you tell me how long applet name i can give..?
    and when i run my applet either i have to write applet name or class file name...?

  7. #7

    Default

    Quote Originally Posted by djk View Post
    in notepade you right
    <applet code="filename.class" width=500 height=500>
    </applet>

    then save it.
    openwith internet.
    ok
    width & height parameter can be any number.
    The method of browsing your applet. Go to Command Prompt then type the path where located your class file. After that type this prompt:
    java youhtmlfile.html
    online casino
    Please press "Thanks" Button, Don't Say "Thanks"

  8. #8

    Default

    Write in HTML file,
    where MyApplet is your
    java compiled class file.

    <Html>
    <Head>
    <Title>Java Example</Title>
    </Head>

    <Body>
    This is my page<br>
    Below you see an applet<br>
    <br>
    <Applet Code="MyApplet.class" width=200 Height=100>
    </Applet>
    </Body>
    </Html>

Closed Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts