Solved

How to remove minimize maximize and close buttom from jframe

Posted on 2013-06-20
4
333 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Protect jar file - windows app 2 38
Application launch issue with Apache Tomcat 5 19
base64 decode encode 12 119
Eclipse IDE - Cannot copy/paste from console output 8 124
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

932 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

13 Experts available now in Live!

Get 1:1 Help Now