Registering the close button in Java

Discussion in 'Mac Programming' started by jsmwoolf, Aug 20, 2011.

  1. jsmwoolf macrumors regular

    Joined:
    Aug 17, 2011
    #1
    If you're using multiple windows for your application and only one is supposed to close the application when you hit the close button(X), is it possible to program the other windows to do something specific when you hit the close button(x)?
     
  2. itickings macrumors 6502a

    itickings

    Joined:
    Apr 14, 2007
    #2
    Yes, it is possible and reasonably straightforward. There should be plenty of resources and tutorials available for googling online to get you started if you don't have a suitable book.

    Give it a try, and get back to us if you run into problems.
     
  3. jsmwoolf, Aug 21, 2011
    Last edited: Aug 21, 2011

    jsmwoolf thread starter macrumors regular

    Joined:
    Aug 17, 2011
    #3
    Never mind, I found my answer. But thanks for the suggestion.
     

Share This Page