awt.Choice - how to prevent automatic resizing?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

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

  1. #1
    Noa Guest

    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...

    thanks,
    Noa

  2. #2
    revenant Guest

    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


    setting the layout manager to null?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center