It's not a secret anymore!*
The moose likes Applets and the fly likes Using Swing in Applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Using Swing in Applets" Watch "Using Swing in Applets" New topic
Author

Using Swing in Applets

srinivas.b
Ranch Hand

Joined: Oct 26, 2006
Posts: 58
Hi all,

I am developing one application using applets.My idea is to view that applet using browser. But i would like to use swing concepts like JFileChooser and JButton . when i run my application using eclipse its running file. But when i try to open my applet using browser it is not showing JButton and JFileChooser.

How can i solve my problem?

Could anyone please help me regarding this

Thank you
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
Is the applet initialized correctly? Do the Java Console or the browser status bar show any error messages?


Ping & DNS - my free Android networking tools app
pete stein
Bartender

Joined: Feb 23, 2007
Posts: 1561
Originally posted by B T R Srinivasarao:
i would like to use swing concepts like JFileChooser and JButton . when i run my application using eclipse its running file. But when i try to open my applet using browser it is not showing JButton and JFileChooser.
How can i solve my problem?

Is your class extending Applet (bad) or JApplet (good) here?
 
wood burning stoves
 
subject: Using Swing in Applets