This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there any function like setDefaultMinimizeOperation()
 
Similar Threads
Tracking java objects
JFrame application HELP Needed ! ! ! (STILL NEED HELP)
How to tell when main() is done in swing
Prompting the user whether to close the JFrame
changing background color of JFrame