Solved

How to remove minimize maximize and close buttom from jframe

Posted on 2013-06-20
4
348 Views
Last Modified: 2013-07-05
I have an class where i am extending JFrame.
I want that the minimize, mazimize and close button should not come.
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
  • 2
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
krakatoa earned 500 total points
ID: 39261836
import javax.swing.*;
import java.awt.*;

class Jf extends JFrame{

public static void main(String[] args){

Jf f= new Jf();

f.setSize(new Dimension(200,200));
f.setUndecorated(true);
f.setVisible(true);


}

}

Open in new window

0
 

Author Comment

by:searchsanjaysharma
ID: 39262000
Its removing all.

Secondly what if the Jframe extended and it has been pick from the toolkit from netbeans.,
0
 
LVL 16

Expert Comment

by:krakatoa
ID: 39262047
Its removing all.

Don't think you can do it any other way - all or nothing.
0
 

Author Closing Comment

by:searchsanjaysharma
ID: 39301307
tx
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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:

733 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