🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: disabling maximize in JFrame

#10767
From: Ken Sprague
Date: Mon, 09 Aug 1999 00:00
24 lines
1177 bytes
Vishu,

The function

    setResizable(false);

(inherited from java.awt.Frame) will remove the min and max buttons from the
JFrame.  However, it will also make it impossible for the user to change the
size of the JFrame.  Not sure if there is an easy way to disable the min/max
buttons and keep the JFrame sizable.

Ken


G.Vishweshwar wrote in message <7on07j$80p4@forums.borland.com>...
>Hi,
>is there any way to disable to maximize/minimize buttons in JFrame(like the
>properties closeable,maximizable in JInternalFrame).Alternatively I can
>catch the events and set it back but it will not have the effect of
>disabling.
>Thanks for any help
>Vishu
>
>
Technical Details
Message-ID: <7onqlo$8cd13@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7on07j$80p4@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,59b0b934f1f5a617
X-Google-Attributes: gid111d45,public
From: "Ken Sprague" <ksprague@msn.com>
Subject: Re: disabling maximize in JFrame
Date: 1999/08/09
Message-ID: <7onqlo$8cd13@forums.borland.com>
X-Deja-AN: 510858714
References: <7on07j$80p4@forums.borland.com>
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.swing