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. Advertising

  2. Ross

    Ross Guest

    Re: Event when JFileChooser, JDialog, or JFrame is setVisible'd,either true or false

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

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ike
    Replies:
    0
    Views:
    3,501
  2. James
    Replies:
    1
    Views:
    797
    Paul Lutus
    Sep 20, 2004
  3. Guest
    Replies:
    6
    Views:
    7,253
    G Winstanley
    Oct 1, 2004
  4. Dave Brown
    Replies:
    2
    Views:
    2,993
    Dave Brown
    Jul 9, 2005
  5. Replies:
    3
    Views:
    757
    FredK
    Aug 27, 2012
Loading...

Share This Page