How to use Java Swing applets......


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to use Java Swing applets......

  1. #1
    Alligator Bob Guest

    How to use Java Swing applets......


    I downloaded the Java 2 plug-in, installed it, and I still can't see Java
    applets written in Swing in either Netscape or Internet Explorer. Does anyone
    know how to help me; this supposedly good Core Java book doesn't tell me
    crap either.

  2. #2
    Hetal Shah Guest

    Re: How to use Java Swing applets......


    Hi Bob,
    Which version of Netscape or IE are you using? Netscape should be above 4.51
    and IE should be 5.0+.
    As far as my knowledge is concerned, Java 2 plugin that you have downloaded
    might not support certain
    components of swings. You can try out your applet using HotJava, which is
    pure java browser.

    Hetal



    "Alligator Bob" <icelake@aol.com> wrote:
    >
    >I downloaded the Java 2 plug-in, installed it, and I still can't see Java
    >applets written in Swing in either Netscape or Internet Explorer. Does

    anyone
    >know how to help me; this supposedly good Core Java book doesn't tell me
    >crap either.



  3. #3
    Hetal Shah Guest

    Re: How to use Java Swing applets......


    I have found out that you require to include plug-in link in the HTML file
    produced by the HTML
    converter.

    URL url = new URL("javascript:'" + html + "'");
    myapplet.getAppletContext.showDocument(url, "_blank");

    where html is any valid string of html tags that does not contain
    any '\n',
    e.g. <HEAD><TITLE>title</TITLE></HEAD><BODY>Hello!</BODY>

    Or else

    You can try out your applet using HotJava, which is pure java browser.

    Hetal



    >"Alligator Bob" <icelake@aol.com> wrote:
    >>
    >>I downloaded the Java 2 plug-in, installed it, and I still can't see Java
    >>applets written in Swing in either Netscape or Internet Explorer. Does

    >anyone
    >>know how to help me; this supposedly good Core Java book doesn't tell me
    >>crap either.

    >



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