I'm writing one of my first Java-Applications for OSX.
As you might know the handling of applications in OSX differs a little bit from Windows. In windows 1 JFrame normaly means that this is one instance of the application, so if I want to close the whole application I just close the window.
In OSX the windows and the application are 2 seperate things. When you close the window an application keeps running in the background.
What I want to do:
- When the user hits CMD + N I want to create a new Instance of my class Application
Is there something like a best practise for this? Who has to listen to Key-Stroke's when there is no active window? The class where main is implemented?