How to remove minimize maximize and close buttom from jframe

I have an class where i am extending JFrame.
I want that the minimize, mazimize and close button should not come.
searchsanjaysharmaAsked:
Who is Participating?
 
krakatoaCommented:
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
 
searchsanjaysharmaAuthor Commented:
Its removing all.

Secondly what if the Jframe extended and it has been pick from the toolkit from netbeans.,
0
 
krakatoaCommented:
Its removing all.

Don't think you can do it any other way - all or nothing.
0
 
searchsanjaysharmaAuthor Commented:
tx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.