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