Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

swing class and Browser

 
Pierre Dubeau
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tejas Kansara
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1868
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic