🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GUI interface controls and swing.

#229
From: Lori M Olson [TeamB]
Date: Sat, 20 Jan 2007 18:06
46 lines
2303 bytes
Rob wrote:
> I am very new to this and just wanted to get a few things cleared up.
> 
> 1/ If I want my applet to work on the Web must I limit my self to Swing 
> controls ?

You can use any controls you like, but mixing AWT (heavyweight) 
controls, and Swing (lightweight) controls is a mistake.  Stick with one 
or the other, preferably Swing.

This is a good place to start, to learn about Swing:

http://java.sun.com/docs/books/tutorial/uiswing/


> 
> 2/ When adding swing controls to a class or applet they don't seem to 
> place themselves where they have been dropped eg in the middle of the 
> frame.  They do odd things like stick themselves to edge or top of the 
> frame.  How can I stop this?
> 
> Regards, Rob

You need to learn about layout managers.  You've probably got a 
BorderLayout happening there.

http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html

-- 

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID: <45b259f7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45b21eca@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,ac22932c895e0df7
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 20 Jan 2007 11:06:26 -0700
From: "Lori M Olson [TeamB]" <javadragon@techie.com>
User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: GUI interface controls and swing.
References: <45b21eca@newsgroups.borland.com>
In-Reply-To: <45b21eca@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 142.179.182.172
Message-ID: <45b259f7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1169316343 142.179.182.172 (20 Jan 2007 10:05:43 -0800)
Lines: 46
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail