Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Swing in Applets

 
srinivas.b
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the applet initialized correctly? Do the Java Console or the browser status bar show any error messages?
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic