wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "swing class and Browser" Watch "swing class and Browser" New topic
Author

swing class and Browser

Pierre Dubeau
Greenhorn

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
missing.
How to proceed to develo this kind of program?
:confuse:
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.
Anonymous
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
pdubeau:
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid
confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
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.
Thanks.
- satya


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
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.
Regards
Tejas Kansara
anand rk
Greenhorn

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: 1844
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.

------------------
Regds.
Mahindrakar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: swing class and Browser
 
Similar Threads
Running swing prg in a browser
Swing
interfacing with internet explorer
mini web browser: browse pages be only b&w not in color
VisualAge for Java