Solved

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

Posted on 2013-07-01
3
350 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
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
egit plugin on eclipse 8 82
Why my table column Id is not passed to java object? 4 44
Error in @AspectJ Based AOP with Spring 2 18
throw exception 21 58
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

828 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