* @param value
*/
//PM:5/5/08
public static void setMaximizeEnabled(JFrame frame, boolean value){
if (value == false) {
frame.addComponentListener(new MaximizeHideAdapter(frame));
} else {
for (ComponentListener cl : frame.getComponentListeners()) {
if (cl instanceof MaximizeHideAdapter) {
frame.removeComponentListener(cl);
break;