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

HELP......................

 
Duffer
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I close an applet on the click of a button?
I am using a panel as the main container. So I would like to know if there is any method by which I can close the panel on the click of a button.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the applet forum.
 
Elouise Kivineva
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done one of two things.
(1) Leave the applet displayed & add a button that, when clicked, re-draws something suitable on the panel (blackness, whiteness, the words "goodbye and goodnight", whatever).
(2) Add a javascript button to the page where the applet is displayed. When the button is clicked it shifts the user to a page without the applet.
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Duffer"
Please change your name to comply with the naming policy to which you agreed when you registered here..

For your publicly displayed name,
use a first name, a space, and a last name.

You can change your name
here:

You can also find the naming policy
here:
Thank You!
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you take a good look at the Applet class documentation, you may notice that a few different remove methods are inherited from Container. Perhaps one of them be what ye seek.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic