Solved

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

Posted on 2013-07-01
3
340 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
3 Comments
 
LVL 14

Accepted Solution

by:
John-Charles-Herzberg earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
tx
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now