aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Customize JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Customize JFrame" Watch "Customize JFrame" New topic
Author

Customize JFrame

Bharathi Balasubramanian
Greenhorn

Joined: Jul 12, 2000
Posts: 26
How to remove Minimize/Maximize/Close buttons from JFrame?
exmaples?
Thanx in advance


I got a flight to catch.
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
hi babu,
u can remove maximize and minimize button by making the frame non resizable.
frame.setResizable(false);
for close button i've no idea.
regards
deekasha

Jason Travis
Greenhorn

Joined: Apr 05, 2001
Posts: 8
I have found that by simply performing a frame.setResizable(false) does not remove maximize and minimize buttons but rather will simply grey them out. I am currently using JDK 1.3.1.
If anyone knows how to completely remove the min, max and close buttons I would be greatful if you sent me an email...jt_rav@yahoo.com
-Jason
Originally posted by deekasha gunwant:
hi babu,
u can remove maximize and minimize button by making the frame non resizable.
frame.setResizable(false);
for close button i've no idea.
regards
deekasha

john mattucci
Ranch Hand

Joined: Nov 03, 2000
Posts: 331
why dont u use JWindow instead that way u are guaranteed not
to get the buttons

------------------
Tom Diamond
Ranch Hand

Joined: May 10, 2001
Posts: 98
As John said with JWindow there are no buttons at all.
If you use JDialog only the close button is present...
The decision is yours...
Tom.
 
Consider Paul's rocket mass heater.
 
subject: Customize JFrame