CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 1999
    Posts
    1

    Swing components not visible on NN/IE 4.x (+)

    hi all there,
    I have problem while loading JApplets / any Swing comp on my Browser.
    It's getting an error saying that JApplet class not found. I have set the
    class path, but not working. I have copied the rt.jar file and placed in my current applet direcory , still same . The i hv pasted the same jar file in the java directory under netscapes directory path ..that even fails. I have
    installed jre1.2.2 , still nothing is happening.
    Can anyone give me some tips to set the browser compatible with swing.
    urgent
    Thanks
    Arun g nair





  2. #2
    Join Date
    Sep 1999
    Location
    Dubai, UAE
    Posts
    38

    Re: Swing components not visible on NN/IE 4.x (+)

    Swing is not supported on IE4.0 or Netscape 4.6. You need to download the Java plugin from Sun's site. I've even tried adding the archive to my browser's classpath - it's tough to get it started - to include all the classes - but even if ur applet does start, it simply doesn't repaint itself. I'ven't figured out a way around this - so decided to go in for those controls of Swing that I could download from the Net as seperate components and include these classes along with my zip.

    Hope this helps.

    Rgds,

    R. Saravanan


  3. #3
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: Swing components not visible on NN/IE 4.x (+)


    > . I've even tried adding the archive to my browser's classpath

    Saravanan , What do you mean by "browser's classpath" ? Are you talking about
    Archive tag ? AFAIK , browser wont look CLASSPATH variable.

    Arun , as Saravanan said , IE doesnt support SWING components. Convert your html file
    like the following , ( Download HTMLConverter from sun site. That will do this job )

    <HTML>
    <HEAD>
    <TITLE>Autogenerated HTML</TITLE>
    </HEAD>
    <BODY>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 695 HEIGHT = 463 codebase="http://java.sun.com/products/plugin/....cab#Version=1,1,2,0">
    <PARAM NAME = CODE VALUE = "UI.class" >

    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.1.2">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.1.2" java_CODE = "UI.class" WIDTH = 695 HEIGHT = 463 pluginspage="http://java.sun.com/products/plugin/...n-install.html"><NOEMBED></COMMENT>

    </NOEMBED></EMBED>
    </OBJECT>

    <APPLET CODE = "UI.class" WIDTH = 695 HEIGHT = 463 >


    </APPLET>
    </BODY>
    </HTML>

    This will install plugin in your client's machine.


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured