Running an HTML File


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Running an HTML File

  1. #1
    Join Date
    Apr 2003
    Posts
    3

    Red face Running an HTML File

    Hi there,
    As Iím new to JAVA, I will describe the situation;
    1st : I am using JBuilder3 professional
    2nd: I have typed the Smiley face class to create an
    applet.
    3rd: The class was created and is called "face.class"

    to run this face.class i had to use an HTML file called "face.html"which contains the following code:

    <HTML>
    <BODY>
    <APPLET CODE = "face.class" width=250 HEIGHT= 175>
    </APPLET>
    </BODY>
    </HTML>

    to run the above I have to go to the folder where the file is saved and then double click the html file.

    My Question now is: I have another class that contains
    a menu (i.e. running in DOS Environment) and from that menu the user should select an option and one of the option if selected should run the html file without going out of the program and double click the html file. Please I need your help; I would like know how to run an html file from inside the program. Thank in advance

  2. #2
    Join Date
    Oct 2002
    Posts
    23

    applet

    i don't know about JBuilder but to run applet at command prompt you enter - appletviewer face.html -.
    so if JBuilder has appletviewer tab you can try and click it or look in JBuilder help section.

  3. #3
    Join Date
    Apr 2003
    Posts
    3

    Thumbs up

    Hi,

    Thanks for answering my message, but unfortunately that was not the answer to my question.

    Thanks again

    Bye

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center