DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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?

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links