wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Is there any function like setDefaultMinimizeOperation() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

Is there any function like setDefaultMinimizeOperation()

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
MyFrame =new JFrame("MyFrame");
MyFrame.setDefaultCloseOperation(frm.DO_NOTHING_ON_CLOSE);

Hey ranchar is there any function like above so that i can also implement such operation on minimisi or restore button like

MyFrame.setDefaultMinimizeOperation(MyFrame.DO_NOTHING_ON_MINIMIZE);//It is not working but i requre this types of operation.

Regard

Arun
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
This seems not to specific to SCJD. So I'm moving it over to our Swing forum.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Closing another duplicate of this post.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
Don't get me started about those stupid light bulbs.
 
subject: Is there any function like setDefaultMinimizeOperation()