Minimize a JWindow
Hey guys,
I have a JWindow, with a button on it, when the button is clicked i want it to minimize the window and put it on the task bar.
any idea how to do tat ?
this is the part of the code i am trying to fill in
boolean buttonok = ((JButton)(e.getComponent())).isEnabled();
{
String command = ((JButton)(e.getComponent())).getActionCommand();
if (command.equals("exit")) System.exit(0);
elseif( command.equals("mini"))
{
// do the minimizing here !!!
}
}

