The Artima Developer Community
Sponsored Link

Java Answers Forum
adding swing components in an applet

1 reply on 1 page. Most recent reply: Dec 3, 2002 2:00 PM by Kishori Sharan

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 1 reply on 1 page
Amit

Posts: 23
Nickname: amitactsh
Registered: Nov, 2002

adding swing components in an applet Posted: Dec 3, 2002 5:59 AM
Reply to this message Reply
Advertisement
Hello Freinds ;
The problem is that want to create an applet that will cotain swing components now I have written the code for it. I created a base class which is derived from JApplet class and now I am creating swing components in the init() method and adding actionlistener and all other stuff there.
Now when I runs this applet from appletviewer it works fine but whenever I tries this from Internet Explorer it simply displays one gray box nothing else.
If you have any solution for this, please help me.
Thanks in advance.
Amit


Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: adding swing components in an applet Posted: Dec 3, 2002 2:00 PM
Reply to this message Reply
IE is only for Microsoft products...
No more built-in Java support...
You need to use Java plug-in if you wish to use swings...

Use Java Plugin/JRE1.4. You can install it from java.sun.com. While installing make sure you check the checkbox which say make it Java Plugin for IE. YOur applet tag will work. Otherwise, have JRE1.3 installed in your computer. Downdoad HTML converter from java.sun.com and convert your html file. This will replace the applet tag by OBJECT tag for IE.

Thanks
KIshori

Flat View: This topic has 1 reply on 1 page
Topic: How to call one applet from another? Previous Topic   Next Topic Topic: Problem opening multiple workbooks in a single java program using ExcelAcce

Sponsored Links



Google
  Web Artima.com   

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