Solved

How to remove any of these buttons - minimize maximize and close buttom from jframe

Posted on 2013-07-01
3
352 Views
Last Modified: 2013-07-01
I want to remove the minimize and maximize/resize button from the frame.
Is there any method.
One method is to disable the resize button by putting the setResizable(false)

How to remove minimize button.
0
Comment
Question by:searchsanjaysharma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Accepted Solution

by:
John-Charles-Herzberg earned 500 total points
ID: 39290305
From: http://stackoverflow.com/questions/2665355/how-do-i-remove-the-maximize-and-minimize-buttons-from-a-jframe

How do I remove the maximize and minimize buttons from a JFrame
0
 
LVL 16

Expert Comment

by:Valeri
ID: 39290408
frame.setUndecorated(true);

You can not remove them! They are drawn by OS. The only way is to remove all of them (see above line) and to add your own(custom) close button if you want to have close button, but not to have minimize and maximize buttons.
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 39290457
tx
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question