Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listener

Status
Not open for further replies.

raochetan

Programmer
Joined
Aug 20, 2001
Messages
62
Location
IN
I have an applet which has been set to Card layout. I have added 3 panel with control in it. How can i know, that a panel has come to the top and is visible to the user. Which listener should be used?

Thanks In advance

regards
raochetan
 
I haven't found any listener appropriate for do that, but I think this can work:

As the card layout flips the panel when the user clicks the tab, you can add a MouseListener and in the onclick method you can compare the prevois selected panel with the actual panel (having the previous one in a variable) so if they are different, a new panel has come to the top. You can know that a panel is visible asking the content directly if isVisible()...

hope it helps.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top