Article View: borland.public.jbuilder.java.swing
Article #11388Re: Question with JFrame
From: Greg Hamer
Date: Sun, 06 Jun 1999 00:00
Date: Sun, 06 Jun 1999 00:00
21 lines
1510 bytes
1510 bytes
By default, the designer persists the size of the designed forms in the jpr file where it will not interfere with the use of the pack() method. If you will not be calling pack, you can add a propertySetting for size in the jbInit (the one that takes a Dimension, not two ints - this.setSize(new Dimesion(300,40));) and the designer will respect it, giving you the same size at runtime as design time. Subsequent resizing in the designer will alter the value of the size properties Dimension. Alexis Rios wrote: > I am calling JFrame 2 from JFrame 1 > > On JFrame 2 I can have a JPanel or a groupBox with a given size. When I load > JFrame 2 from JFrame 1 if I don't use the pack method I can only see the > caption from JFrame 2, if I use it the size of the frame is much smaller > than the one the JFrame had on design time. How can I make the JFrame to > have the same size that it had while in design mode. > > Thanks, > > Alexis Rios
Technical Details
Message-ID:
<375AE05A.B1CF2850@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7jebpf$rv813@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,add3fd2cd15ddd86 X-Google-Attributes: gid111d45,public From: Greg Hamer <ghamer@borland.com> Subject: Re: Question with JFrame Date: 1999/06/06 Message-ID: <375AE05A.B1CF2850@borland.com> X-Deja-AN: 486422342 Content-Transfer-Encoding: 7bit References: <7jebpf$rv813@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing