🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #294

Re: Using the Design mode - Adding controls to a form.

#294
From: Rob
Date: Wed, 24 Jan 2007 11:35
66 lines
3699 bytes
Paul Furbacher [TeamB] wrote:
> Rob wrote:
>> [...]
>> This is not a multi-post as you can see from my header.  I have 
>> rephrased my question in the hope that I might get an answer that I 
>> can understand.
>>
>> Since my local Borders book shop does not hold a single book on 
>> Jbuilder    (Plenty on the Microsoft equivalent) and since my question 
>> was on topic I thought I might get some help -  Alas it was not to be.
>>
>> I did work out the answer (no thanks to you)  you add the JPanel to 
>> your form you select the layout property and select the XY Layout 
>> manager.
>> then you can put your controls where you like.
>>
>> How difficult was that ?
> 
> It would be nice if you dialed down the tone a bit.
> It doesn't befit a neophyte who is asking for help.
> 
> Although you think you have solved the problem, you have
> actually compounded it.
> 
> You should have already read that you should only use the
> XYLayout for initial design.  As Lori and Paul pointed out in the
> equivalent of your original post here, you need to learn
> about Swing's layout managers.
> 
> As for books on JBuilder, yes, there is a dearth of them.
> However, the built-in help in JBuilder is sufficient for
> using the IDE itself.  Additional info for using the IDE
> is available by asking questions in these newsgroups.
> 
> In general, books about IDEs don't cover Swing, or
> even Java language issues, all that well.  For something like
> Swing, you need to eith(her follow Lori's advice
> http://java.sun.com/docs/books/tutorial/uiswing/
> and the other link), or browse your Borders store for books
> on Swing.
> 
> 
OK what I have learnt so far ;

1/You need to stick a jPanel  Swing container. on your form and change 
the layout manager to one of the options in the form properties.

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

All the layout managers that I have are good for making 1 x 1 inch 
forms.   None of them are useful for making anything but the most basic 
of interfaces.

The XY layout gives me what I want but does not compile.


So I would like to ask the following questions

1/ The XY layout exists for a reason.  Do I use the coordinates in code 
to produce the form I want.

2/Is there a way to combine the layouts into one forms.


All this to create a simple data entry form.   I am starting to think 
that Java is not the right tool to do what I want.
Technical Details
Message-ID: <qwHth.5730$u8.343@news-server.bigpond.net.au>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!ken-transit.news.telstra.net!lon-in.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail
References: <ygAsh.3944$u8.3431@news-server.bigpond.net.au> <45b363aa$1@newsgroups.borland.com> <gB2th.4660$u8.4227@news-server.bigpond.net.au> <45b4d889$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,a4534d4eccde8c1
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!ken-transit.news.telstra.net!lon-in.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail
From: Rob <User@example.com>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Using the Design mode - Adding controls to a form.
References: <ygAsh.3944$u8.3431@news-server.bigpond.net.au> <45b363aa$1@newsgroups.borland.com> <gB2th.4660$u8.4227@news-server.bigpond.net.au> <45b4d889$1@newsgroups.borland.com>
In-Reply-To: <45b4d889$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 69
Message-ID: <qwHth.5730$u8.343@news-server.bigpond.net.au>
Date: Wed, 24 Jan 2007 11:35:50 GMT
NNTP-Posting-Host: 60.229.70.126
X-Complaints-To: abuse@bigpond.net.au
X-Trace: news-server.bigpond.net.au 1169638550 60.229.70.126 (Wed, 24 Jan 2007 22:35:50 EST)
NNTP-Posting-Date: Wed, 24 Jan 2007 22:35:50 EST
Organization: BigPond Internet Services