Solved

How to remove minimize maximize and close buttom from jframe

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

705 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

19 Experts available now in Live!

Get 1:1 Help Now