Event when JFileChooser, JDialog, or JFrame is setVisible'd, eithertrue or false

R

Ross

Is there a way of registering a listener onto an object of the types
JFileChooser, JDialog, JFrame, JWindow so that the even will be fired
when the dialog or frame is shown or hidden?

I can't find an appropriate type of listener that will work. I've
tried everything I can think might work from the various listeners
that can be applied to these classes, and nothing appears to work. Any
hints?

I do not want to have to add custom code to the JFileChooser, JDialog,
JFrame, JWindow classes.
 
R

Ross

Edit: Ignore this, it was a bug in other code that was preventing my
listeners from working.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top