Reputation: 2760
I've started using a Ubuntu desktop in my new workplace and the window manager doesn't manage java applications very well. They are all treated as one application, no icons or names to recognise them by when you alt tab through them.
I thought perhaps it might be possible to improve the situation by giving the processes or at least windows unique names when I start them.
Maybe this can be done with a command line flag?
Upvotes: 1
Views: 915
Reputation: 11999
Assuming you're creating a JFrame as the root window of your GUI, you can pass an argument in the constructor to set the name. You can certainly get that String value from the String[] args
argument of your main method.
Upvotes: 2