0

I would like to make my script run a "Query" method when the exit button on my JFrame is pushed. I tried it with set default close operation but that wont work obviously so what should i do? Thanks!

BaconMan97
  • 67
  • 1
  • 9

1 Answers1

1

Why do you say that setDefaultCloseOperiation would not work? Maybe I'm misunderstanding the question, but here is a very similar question on this site.

See if the accepted answer is what you were wanting.

Community
  • 1
  • 1
Seth
  • 322
  • 1
  • 7