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 !!!

}

}

[853 byte] By [--stallion--a] at [2007-11-27 2:21:14]
# 1
Only JFrames are added to the taskbar. You can use an undecorated frame.
camickra at 2007-7-12 2:23:40 > top of Java-index,Desktop,Core GUI APIs...