Possible Duplicate:
JButton minimizing a window(JFrame)
I removed the JFrame's close/minimize buttons, and I want to add my own buttons, for close, it can work by using .dispose();, but what should I use to minimize the JFrame if I click on a JButton?
I think .setVisible(false); will hide it completely, and I won't have anything to click on, in the TaskBar to get the JFrame back.