Article View: borland.public.jbuilder.java.swing
Article #276Re: jFrame- disable the minimize property
From: Kevin Dean [TeamB]
Date: Tue, 25 Sep 2007 13:22
Date: Tue, 25 Sep 2007 13:22
43 lines
2130 bytes
2130 bytes
apostolish wrote:
>Hello,
>I' ve a swing application where i use a JFrame component. I'd like to ask
>how can i disable the minimize property of the frame(at the upper right
>corner of the frame) ?
>
>Thanks , in advance
>Apostolis
The only thing I've been able to find disables both minimize and maximize
buttons. This is the cleanest example:
import java.awt.*;
import javax.swing.*;
class Testing extends JFrame {
public Testing() {
setTitle("JFrame");
setSize(300,200);
setLocation(350,200);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setUndecorated(true);
getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
getContentPane().add(new JPanel());
}
public static void main(String[] args) {
new Testing().setVisible(true);
}
}
A full list may be found on Google:
http://www.google.ca/search?q=swing+jframe+disable+minimize
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<xn0fbm56z58wwmk002-kdean@www.teamb.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46f8af07@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,1ef787bade76713a
X-Google-Attributes: gid111d45,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Subject: Re: jFrame- disable the minimize property
Newsgroups: borland.public.jbuilder.java.swing
References: <46f8af07@newsgroups.borland.com>
Organization: Dolphin Data Development Ltd.
User-Agent: XanaNews/1.18.1.6
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobrp]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Message-ID: <xn0fbm56z58wwmk002-kdean@www.teamb.com>
X-Ref: newsgroups.borland.com ~XNS:000008F6
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
NNTP-Posting-Host: 199.243.78.163
Date: 25 Sep 2007 06:22:23 -0700
X-Trace: newsgroups.borland.com 1190726543 199.243.78.163 (25 Sep 2007 06:22:23 -0700)
Lines: 43
X-Authenticated-User: kdean
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail