For your Swing application to work,you'll require to add a plug-in to the Browser.Their are two types of plug-ins for the Internet Explorer and the Netscape Navigator.
Check it out on the following link:-
java.sun.com/products/jfc/tsc/articles/plugin/index.html
and take the code from there and add your .class file to it.
If any doubts,contact me on
shalina@bplnet.com regards,
shalina