Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Applet problem with swing

843805Oct 7 2006 — edited Oct 14 2006
I am using jdk 1.2.2_013 and i made a simple Applet(not JApplet) with only one JButton on it.

Compile ran well but when i started my html file (which contains applet tag with path to my simple class), applet couldn't load. But then i replace JButton with a Button and everything worked out.

But the point is, if i use JApplet or JButton or any other part of a swing my applet won't work.

What is the problem?

P.S. appletviewer shows my applet correctly with and with out swing

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 11 2006
Added on Oct 7 2006
11 comments
124 views