🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JFrame Minimum Size

#8631
From: Frank Le
Date: Thu, 03 Aug 2000 00:00
20 lines
1322 bytes
When you create your frame, overrite getMinimumSize and return new dim
            public Dimension getMinimumSize(){
                return new Dimension(100, 100);
            }

Frank


"Paul Whittington" <paul@grep.net> wrote in message
news:398A02E5.C216AC71@grep.net...
> Is there a way to set the miniumum size for a JFrame?
>
> I have a Java application and I don't want to allow it to get
> smaller then the minium X and Y sizes I specify.
>
> --
> Paul Whittington
> Chief Engineer
> GrepNet, Inc.
> paul@grep.net
Technical Details
Message-ID: <8md51b$299v$1@nntp1.ba.best.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <398A02E5.C216AC71@grep.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,689e953802321aab
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10fd6d,689e953802321aab
X-Google-Attributes: gid10fd6d,public
From: "Frank Le" <__fle@taviz.com__>
Subject: Re: JFrame Minimum Size
Date: 2000/08/03
Message-ID: <8md51b$299v$1@nntp1.ba.best.com>
X-Deja-AN: 654249543
References: <398A02E5.C216AC71@grep.net>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Complaints-To: abuse@best.com
X-Trace: nntp1.ba.best.com 965351275 75071 209.24.206.3 (4 Aug 2000 01:07:55 GMT)
Organization: The ISP formerly known as Best
X-MSMail-Priority: Normal
NNTP-Posting-Date: 4 Aug 2000 01:07:55 GMT
Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui