Capturing the close tab event of a JTabbedPanel in Java Swing -


Is it possible to capture close tabs events for JavaBeadPanel in Java swing?

I want to check some situations and if they are not found, then I have to stop the user from closing it.

Thank you!

Update: I created a custom event based on this, it resolves my problem.

There is an example with the close button on each tab on the Sun's tutorial if you look at the example source So you can see the reaction when you click it close.

EDIT: There is an internal section in it that extends the pocket button based on your comment, do you already have something that closes the tab? What are you doing to get it?


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -