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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top