Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I'm trying to set my program so that instead of exiting on close button it will iconify, but for some reason when I say
setDefaultCloseOperation( WindowConstants.HIDE_ON_CLOSE )
it doesn't. It dissapears just the same as if I had called
setVisible( false )
I've tried doing the same method call with DO_NOTHING_ON_CLOSE and it works like the variable says: it does nothing. I'm connected remotely to a Unix system and I'm on XP. Maybe it's not able to put the icon in the start bar because of that? Any ideas? Owen
A humanitarian is always a hypocrite.