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

Discussion in 'Java' started by Ross, Aug 19, 2011.

  1. Ross

    Ross Guest

    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.
     
    Ross, Aug 19, 2011
    #1
    1. Advertisements

  2. Ross

    Ross Guest

    Edit: Ignore this, it was a bug in other code that was preventing my
    listeners from working.
     
    Ross, Aug 19, 2011
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.