Why Text- component is resizing in a dummy way? [message #248334] |
Wed, 02 June 2004 07:41  |
Eclipse User |
|
|
|
Originally posted by: purjo76.luukku.com
Hi!
I have a dialog with lots of Text- components for user to input some
values. This same dialog is used also for editing previously set data,
i.e. same dialog is opened, and then Text.setText() is called for all
components.
When this dialog is opened for adding a new object, all Text components
are already in pretty good size (= default size?). The problem is that
when IŽm using this dialog for editing previously set data, all Text
components are automagically resized to have exactly the width of the text
that was set with setText() method! This is really annoying, because if I
previously inserted just one character in to a Text component, now this
componentŽs width is just one character. Naturally, when typing new text
to this field, only one character can be seen at a time!
How could I prevent the Text component from resizing in this stupid
manner???
|
|
|
Re: Why Text- component is resizing in a dummy way? [message #248450 is a reply to message #248334] |
Wed, 02 June 2004 14:10  |
Eclipse User |
|
|
|
Originally posted by: pdrolet.mac.com
Purjo wrote:
> Hi!
>
> I have a dialog with lots of Text- components for user to input some
> values. This same dialog is used also for editing previously set data,
> i.e. same dialog is opened, and then Text.setText() is called for all
> components.
>
> When this dialog is opened for adding a new object, all Text components
> are already in pretty good size (= default size?). The problem is that
> when IŽm using this dialog for editing previously set data, all Text
> components are automagically resized to have exactly the width of the text
> that was set with setText() method! This is really annoying, because if I
> previously inserted just one character in to a Text component, now this
> componentŽs width is just one character. Naturally, when typing new text
> to this field, only one character can be seen at a time!
>
> How could I prevent the Text component from resizing in this stupid
> manner???
>
>
>
Hi,
This depends on the layout used. I use mostly FormLayout now and this
one behaves in the correct manner - on all platforms.
Patrice
|
|
|
Powered by
FUDForum. Page generated in 0.21761 seconds