Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic

Is there any function like setDefaultMinimizeOperation()

Arun Maalik
Ranch Hand

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

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.


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

Joined: Oct 18, 2000
Posts: 4121

Closing another duplicate of this post.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Is there any function like setDefaultMinimizeOperation()
It's not a secret anymore!