This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of TensorFlow 2.0 in Action and have Thushan Ganegedara on-line!
See this thread for details.
Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Customize JFrame

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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


 
Ranch Hand
Posts: 331
  • 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

------------------
 
Ranch Hand
Posts: 98
  • 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.
 
catch it before it slithers away! Oh wait, it's a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic