Applets and Web Problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Applets and Web Problem

  1. #1
    Join Date
    Mar 2004
    Posts
    20

    Applets and Web Problem

    Hello people, i'm having a problem viewing my applets in a web browser. I'm using Netbeans to create my applet. I can view other applets in a web browser, but whenever i create one, i can't seem to get it to run.

    I let netbeans generate the HTML code for it, and if i run the applet in Netbeans, it opens and runs, but when i try to say open the html file in Internet Explorer, no applet, just a big grey box. btw, the applet opens in applet viewer when i use netbeans.

    I even tried uploading the applet the web, i put the .class file and the html file in the same directory and i used the following html code:

    Code:
    <HTML>
    
    <APPLET code="map_tester.class" width=800 height=600></APPLET>
    
    </HTML>
    is there any other files i need to add with the applet, as i am importing quite alot of stuff into my applet, like the java.awt.*; (graphics package), but i'm not importing anything extra that i've created, just standard stuff.

    me = beginner, so any help is very welcome!

  2. #2
    Join Date
    Apr 2004
    Posts
    8
    Umm......

    Hard to say really. What compiler are you using? Try JDK. I've never had a problem with it. I have heard of similar problems in netbeans.

    What kind of applet is it? Would you mind PMing me the source? (I could have a go at making it on my UNIX system under JDK)

    pp

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