Article View: borland.public.jbuilder.java.swing
Article #230Re: GUI interface controls and swing.
From: Rob
Date: Sat, 20 Jan 2007 23:12
Date: Sat, 20 Jan 2007 23:12
41 lines
2466 bytes
2466 bytes
Lori M Olson [TeamB] wrote: > 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 > Thanks for your help. The Tutorial looks great. I should explain that I am using a 30 day trial of JBuilder 2005 and an old copy of JBuilder 2 that came with an old copy of Delphi. The springlayout does not appear to be available in JBuilder 2006 I did try dragging and dropping the controls in the Jpanel and the Jtabbed pane. Nothing behaved the way I expected. What I would like to understand is that option buttons, text boxes have been available since Jbuilder 2 - how did anybody use them ?
Technical Details
Message-ID:
<45b2a1d3$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-mailReferences:
<45b21eca@newsgroups.borland.com> <45b259f7$1@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: Sun, 21 Jan 2007 10:12:49 +1100 From: Rob <user@example.net> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: GUI interface controls and swing. References: <45b21eca@newsgroups.borland.com> <45b259f7$1@newsgroups.borland.com> In-Reply-To: <45b259f7$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 60.229.210.190 Message-ID: <45b2a1d3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1169334739 60.229.210.190 (20 Jan 2007 15:12:19 -0800) Lines: 41 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