my dog learned polymorphism
The moose likes Java in General and the fly likes swing class and Browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "swing class and Browser" Watch "swing class and Browser" New topic

swing class and Browser

Pierre Dubeau

Joined: Jan 13, 2001
Posts: 4
I develop a program using Swing classes. The program works
fine with appletviewer. With any browser, somes classes are
How to proceed to develo this kind of program?
Grant Crofton
Ranch Hand

Joined: Nov 08, 2000
Posts: 154
Browsers don't always support the latest version of Java, so the classes you are tyring to use were probably added since the version your browser is running.
You could try getting a more recent / different browser, wait until a new one is released, or use different classes.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
The JVM in most browsers doesn't support Swing. You can go to Sun's web site and download the plug-in to make this work correctly. You will also have to convert your <APPLET> tag to an <OBJECT> tag with all of the correct parameters. You can use Sun's HTML to get this done easily.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid
confusion we have a naming convention, described at .
We require names to have at least two words, separated by a space, and strongly recommend that you
use your full real name. Please choose a new name which meets the requirements.
- satya

Take a Minute, Donate an Hour, Change a Life
Tejas Kansara
Ranch Hand

Joined: Dec 14, 2000
Posts: 38
According to my knowledge new class or let say Swing classes are not supported by browsers directly.
But there some thing like HTML Converter using which we can make use of Swing classes in browsers.
Hope this might clear your doubts.
Tejas Kansara
anand rk

Joined: Feb 07, 2001
Posts: 25
Hey get an HTML converter from sun java site and ur swing will swing perfectly in any browser and on any platform.I am using one.
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1868
Netscape can be made to support swing. Basically you have to insert the swing.jar into the classes folder of Netscape. To do the same in IE you have to use the converter.

I agree. Here's the link:
subject: swing class and Browser
It's not a secret anymore!