Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is there any function like setDefaultMinimizeOperation()
 
Similar Threads
Prompting the user whether to close the JFrame
changing background color of JFrame
How to tell when main() is done in swing
Tracking java objects
JFrame application HELP Needed ! ! ! (STILL NEED HELP)