Solved

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

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
firstswap challenge 20 78
servlet  URL Rewriting 1 38
servlet example 11 40
difference between sorce folder and folder in eclipise 3 16
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

831 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