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
Solved

How to remove minimize maximize and close buttom from jframe

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Title # Comments Views Activity
configure dependency in POM for new database 3 34
hibernate example using maven 12 58
Desingning Refactoring existing code 2 26
Selenium docs api java index 3 48
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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 …

860 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