Hi,
I have just started on Java programming and I have encountered some
problems. I am now using Label and TextField. Is there anyway to arrange
them? Thanks in advance !
Printable View
Hi,
I have just started on Java programming and I have encountered some
problems. I am now using Label and TextField. Is there anyway to arrange
them? Thanks in advance !
Hello Daniel:
Every componenet has a setBounds() method that expects 4 integers - left,
top, width, height - in that order. Call it like this:
label1.setBounds(0,0,100,25);
This positions the top left corner of the label at coordinates (0,0) - the
top left corner of the container - and sets the width to 100 pixels and the
height to 25 pixels.
Tom Duffy
"Daniel" - wrote:
>
>Hi,
> I have just started on Java programming and I have encountered some
>problems. I am now using Label and TextField. Is there anyway to arrange
>them? Thanks in advance !
>
>
>
Thanks Tom.
"Tom Duffy" <td4729@hotmail.com> wrote:
>
>Hello Daniel:
>
>Every componenet has a setBounds() method that expects 4 integers - left,
>top, width, height - in that order. Call it like this:
>
>label1.setBounds(0,0,100,25);
>
>This positions the top left corner of the label at coordinates (0,0) - the
>top left corner of the container - and sets the width to 100 pixels and
the
>height to 25 pixels.
>
>Tom Duffy
>
>"Daniel" - wrote:
>>
>>Hi,
>> I have just started on Java programming and I have encountered some
>>problems. I am now using Label and TextField. Is there anyway to arrange
>>them? Thanks in advance !
>>
>>
>>
>