• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Customize JFrame

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to remove Minimize/Maximize/Close buttons from JFrame?
exmaples?
Thanx in advance
 
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 protected]
-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


 
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why dont u use JWindow instead that way u are guaranteed not
to get the buttons

------------------
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic