The Artima Developer Community
Sponsored Link

Java Answers Forum
Swing Applets

8 replies on 1 page. Most recent reply: Apr 24, 2002 6:25 AM by Thomas SMETS

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 8 replies on 1 page
Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

Swing Applets Posted: Apr 23, 2002 4:47 AM
Reply to this message Reply
Advertisement
Hello,
when i run JApplet program on MS exeplorer,the following message appear:
class <my class name> not found,but when i run Applet it works very well.
what is the problem?
thanks.


Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

Re: Swing Applets Posted: Apr 23, 2002 5:47 AM
Reply to this message Reply
It seems that browsers do not support swing applets.

Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: Swing Applets Posted: Apr 23, 2002 6:24 AM
Reply to this message Reply
> Hello,
> when i run JApplet program on MS exeplorer,the
> following message appear:
> class <my class name> not found,but when i run
> Applet it works very well.
> what is the problem?
> thanks.


Get the Plugin !
Your applet will be defined as an object in the HTML page while "applet" code will be 1.2 / 1.3 / 1.4 compliant

Thomas,

Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: Swing Applets Posted: Apr 23, 2002 6:26 AM
Reply to this message Reply
You should use OBJECT tag to display the applet in IE. If you have your html file which uses applet tag then convert that html file using HTML_Converter. You can find this tool at java.sun.com. This converts applet tag into OBJECT tag and then your JApplet will work.

Neva Mohammad

Posts: 28
Nickname: neva
Registered: Apr, 2002

Re: Swing Applets Posted: Apr 24, 2002 12:38 AM
Reply to this message Reply
If I had a swing applet called Hello.java how would I write an Object tag for it so that I could display it? I looked on the java.,sun.com site and tried to do it but got confused..
Can someone just show me with that example?
Thanks

Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

Re: Swing Applets Posted: Apr 24, 2002 12:54 AM
Reply to this message Reply
hi,
you should install HTML_Converter from java.sun.com site,then convert your html file by the converter.
thanks.

Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

Re: Swing Applets Posted: Apr 24, 2002 12:56 AM
Reply to this message Reply
Hello,
i have already used Html converter, the process success when i run it on the same computer,
but my program is client-server ,when i run it on another computer on the web ,the following message appear: class <my class name> not found ,knowing that it works well with awt applet.
thanks.

Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: Swing Applets Posted: Apr 24, 2002 6:20 AM
Reply to this message Reply
I think you are missing CODEBASE attribute value. Try setting it appropriately and you should not have any problem running your applet from other computer.

Thanks
Kishori

Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: Swing Applets Posted: Apr 24, 2002 6:25 AM
Reply to this message Reply
Maysoon,

As Sharan mentionned it, you should give the codebase a proper value. Otherwise provide a little description of you network topology & HTTP-server, etc ... and your HTML page source code so we can try to help.

Rgds,

Thomas,

Flat View: This topic has 8 replies on 1 page
Topic: events in java Previous Topic   Next Topic Topic: Windows 2000 Server Active directory and Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use