My application has a JFrame and checks every x
seconds if something changed. So I would like to hide my JFrame via setVisible(false)
on a click on the close button and redisplay it when the icon in the dock (I'm using Mac OS, but it should work the same way with the Windows task bar) is clicked. You know: many applications do this temporary hiding.
Have you got any ideas how to do this? How to listen on these click events?