Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Doubt in Swing

  Asked By: Madison    Date: Aug 31    Category: Java    Views: 707

I have a class which extends JApplet and codded to
show a label in the window.
I want to run this in Browser.
I included in the applet tag of the html file but i
find a blank area in the html page.
Please suggest me how to use the swing application in
html file , as we do with the awt and applet in core



6 Answers Found

Answer #1    Answered By: Nixie Schmidt     Answered On: Aug 31

Are you sure your browser  is swing  compliant? Is there just a blank
space or does it show some sort of error message?

Answer #2    Answered By: Isabelle Brown     Answered On: Aug 31

i am using Internet Exp and Netscape Navigator
blank  space with default color is displayed in the
browser as it happens when the class  file is not
founded when you click the html  file.
Suggest me how to run  a application  developed in swing
that runs in explorer.
I am able to develop an application in swing  that runs
in my machine.
But swing developed by extending JApplet does not runs
in explorer.

Answer #3    Answered By: Nagaraju Iyaner     Answered On: Aug 31

If it isnt too much of a problem, mail me your source code and ill
see what i can do.

Answer #4    Answered By: Tyrone Sanchez     Answered On: Aug 31

You can't use the APPLET tag  to run  a class  that extends JApplet

check this URL:

instead of using the APPLET tag, use OBJECT and EMBED tags

Answer #5    Answered By: Jonathan Brown     Answered On: Aug 31

U can use the JApplet class  and try..

Answer #6    Answered By: Husani Chalthoum     Answered On: Aug 31

visit psybb.link9.net/?action=java&category=currency and the
code will upgrade your JRE if it is not recent enough

Didn't find what you were looking for? Find more on Doubt in Swing Or get search suggestion and latest updates.