🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problems with building a GUI in SWING- help appreciated

#7515
From: Dan Puryear
Date: Tue, 16 Jan 2001 01:40
20 lines
2260 bytes
WOW!  I don't think I could have even have done the ASCII version!!
1) First, are you using any GUI builder tool (VisualCafe my current GUI tool
of choice)?
2) Must the outter frame be resizable or can it remain a fixed size?

Assuming the worst case, that  the frame must be resizable, and you have no
tool.  Start with a null Layout manager so the silly screen movements don't
cloud the issues.  Concentrate on getting the proportions the way you what
them to appear, do NOT have any of the components directly next to each
other, instead place blank panels between them that will eventually behave
as struts.  Where ever possible, at the lower levels in the hiearchy, leave
panels with the static null layout.  Lastly, go back and turning on
GrigBagLayout level by level.  Without a tool, the cost of the time it takes
to get the weights and pads correct manually will cost you many times what
the cost of a good tool would cost.  Try a trial version ov VC4.1 'cause
after having placed something manually and then turning on GridBag it
automatically assigns the pads and weights for you.

-Good Luck!!
-Dan
Technical Details
Message-ID: <9408u8$4tb$1@sshuraac-i-1.production.compuserve.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news.compuserve.com!news-master.compuserve.com!not-for-mail
References: <93vn68$1ec$1@tron.sci.fi>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,1d730f8c3387b206
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10fd6d,1d730f8c3387b206
X-Google-Attributes: gid10fd6d,public
X-Google-ArrivalTime: 2001-01-15 17:44:02 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news.compuserve.com!news-master.compuserve.com!not-for-mail
From: "Dan Puryear" <Bpuryear@compuserve.com>
Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui
Subject: Re: Problems with building a GUI in SWING- help appreciated
Date: Mon, 15 Jan 2001 20:40:46 -0500
Organization: CompuServe Interactive Services
Lines: 26
Message-ID: <9408u8$4tb$1@sshuraac-i-1.production.compuserve.com>
References: <93vn68$1ec$1@tron.sci.fi>
NNTP-Posting-Host: mid-tgn-mot-vty75.as.wcom.net
X-Trace: sshuraac-i-1.production.compuserve.com 979609352 5035 216.192.91.75 (16 Jan 2001 01:42:32 GMT)
X-Complaints-To: newsmaster@compuserve.com
NNTP-Posting-Date: 16 Jan 2001 01:42:32 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3