Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About JApplet

 
Richard Wilson
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,I am currently doing a project on java.
I have some questions about java and JApplet.
Can I add a JApplet to a JPanel and how to set the parameters of this applet.How can I initialize the applet on the panel?
Thanx alot.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Richard,
Yes, a JApplet is a child of Panel so you can add it to a Panel.
Place your code into the init method. Call the init method explicitly to get it to work. Call accessors to setup the parameters.

Regards,
Manfred.
[ April 13, 2002: Message edited by: Manfred Leonhardt ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic