my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes Swing back to AWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing back to AWT" Watch "Swing back to AWT" New topic

Swing back to AWT

Charlotte Shearrill
Ranch Hand

Joined: Dec 07, 2001
Posts: 34
i am using a swing applet on an intranet application, but the "big guys" don't want to have to install the java2 plug-in on each client. i want to be able to use the browser's default plug-in, but it doesn't support swing. is it possible for me to replace my swing (tree) applet with an AWT applet. i am concerned about treeSelectionListener, treeSelectionEvent, JEditorPane, etc. if it is possible for AWT to replace my functionality, where do i start? and if it is not possible, are there any other suggestions?
Peter Phung
Ranch Hand

Joined: Dec 06, 2001
Posts: 138
How have you set up the html page in which your applet is embedded?
I wrote a page which loaded the plugin each time the page was accessed.
Here's the code i used :

[ July 10, 2002: Message edited by: Peter Phung ]

Pete<br />"Reality is an illusion <br />brought on by a lack of <br />drink, drugs and smut"
Charlotte Shearrill
Ranch Hand

Joined: Dec 07, 2001
Posts: 34
hi peter,
thanks for checking this out. however i did set up an HTML as you have shown. my code works great, so i am not having any problems accessing my swing applet. i would like to know if it is possible to re-create an AWT expandable tree with treelisteners, htmlpanes minus using swing classes. how possible is this?
I agree. Here's the link:
subject: Swing back to AWT
It's not a secret anymore!