🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JFrame default size

#9519
From: Steve Davis
Date: Tue, 07 Mar 2000 00:00
12 lines
1247 bytes
I have a simple application that was created using the Application Wizard.
It has one JFrame that uses XYLayout.  When I first created the application,
I set the frame size in XYLayout to be (300,300), and the application ran
fine (Frame opened with size 300,300).  Now that I have added a few
components, the Frame is opening with a size of (0,0) when I start the
application.  I can get around this problem by using the statement
"frame.setSize(300,300)" after the statement "frame.setVisible(true)" in the
application constructor.  But I should not have to do this, and the initial
application worked correctly.

Has anyone else encountered this problem and know how to fix it, since the
frame opened fine before I started adding components?
Technical Details
Message-ID: <8a3n1q$5474@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c93b64284dafe2d7,start
X-Google-Attributes: gid111d45,public
From: "Steve Davis" <steve@b2systems.com>
Subject: JFrame default size
Date: 2000/03/07
Message-ID: <8a3n1q$5474@bornews.borland.com>
X-Deja-AN: 594393987
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing