If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

awt.Choice - how to prevent automatic resizing?

Hi,
I have a Choice menu with some long names inside. The menu resizes itself
automatically to fit the length of the longest item, and ignores the size
I set to it by SetBounds().
How can I keep it with a fixed size? (when opening the menu the list can
get wider, just keep a fixed size when it's closed).
The automatic resizing messes up the look of my window...

Re: awt.Choice - how to prevent automatic resizing?

"Noa" <noa_yissar@yahoo.com> wrote:
>
>Hi,
>I have a Choice menu with some long names inside. The menu resizes itself
>automatically to fit the length of the longest item, and ignores the size
>I set to it by SetBounds().
>How can I keep it with a fixed size? (when opening the menu the list can
>get wider, just keep a fixed size when it's closed).
>The automatic resizing messes up the look of my window...
>
>thanks,
>Noa