File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Customize JFrame

 
Bharathi Balasubramanian
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to remove Minimize/Maximize/Close buttons from JFrame?
exmaples?
Thanx in advance
 
deekasha gunwant
Ranch Hand
Posts: 396
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 331
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why dont u use JWindow instead that way u are guaranteed not
to get the buttons

------------------
 
Tom Diamond
Ranch Hand
Posts: 98
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic