🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #277

Re: jFrame- disable the minimize property

#277
From: apostolish
Date: Wed, 26 Sep 2007 09:34
47 lines
2305 bytes
Thank you

� "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com> ������ ��� ������ 
news:xn0fbm56z58wwmk002-kdean@www.teamb.com...
> 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: <46fa27c1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46f8af07@newsgroups.borland.com> <xn0fbm56z58wwmk002-kdean@www.teamb.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,1ef787bade76713a
X-Google-Attributes: gid111d45,public,usenet
X-Google-Language: ENGLISH,ASCII
From: "apostolish" <apostolish@gmail.gr>
Newsgroups: borland.public.jbuilder.java.swing
References:  <46f8af07@newsgroups.borland.com> <xn0fbm56z58wwmk002-kdean@www.teamb.com>
Subject: Re: jFrame- disable the minimize property
Date: Wed, 26 Sep 2007 12:34:45 +0300
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 213.5.62.144
Message-ID: <46fa27c1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1190799297 213.5.62.144 (26 Sep 2007 02:34:57 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail