🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

a possible solution to your problem

#11452
From: Gavster McRavster
Date: Wed, 02 Jun 1999 00:00
34 lines
1552 bytes
i'm sure there is something more slick (AS EVER), but this SHOULD work
(don't sue me!)

i would guess you need to override the processWindowEvent method from
JFrame, inside your frame extension class code like this..


  protected void processWindowEvent(WindowEvent e) {
    boolean illegalAction = (e.getID() = = WindowEvent.WINDOW_ICONIFIED);

    if (illegalAction)
        // not allowed to iconify (and hence de-iconify)
        return;
    else
        // a legal action, get JFrame to handle it
      super.processWindowEvent(e);
  }


good luck
gavster




Sohan Mendis <sohan@maxtrak.com> wrote in message
news:7j21i2$hi42@forums.borland.com...
>
> I have set setResizabel to false to make its size fixed in a JFrame. But I
> can maximize and minimize . How can I avoid that from happenning ?
>
> Sohan
>
>
Technical Details
Message-ID: <928316749.11953.0.nnrp-07.c1c3e175@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7j21i2$hi42@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,89db817a0cae943d
X-Google-Attributes: gid111d45,public
From: "Gavster McRavster" <bill@ms.com>
Subject: a possible solution to your problem
Date: 1999/06/02
Message-ID: <928316749.11953.0.nnrp-07.c1c3e175@news.demon.co.uk>
X-Deja-AN: 484804048
X-NNTP-Posting-Host: gavinc.eng.demon.net:193.195.225.117
References: <7j21i2$hi42@forums.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 928316749 nnrp-07:11953 NO-IDENT gavinc.eng.demon.net:193.195.225.117
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing