File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes java.awt.List horizontal scroll bar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "java.awt.List horizontal scroll bar" Watch "java.awt.List horizontal scroll bar" New topic
Author

java.awt.List horizontal scroll bar

Andre Dougla
Greenhorn

Joined: Apr 27, 2004
Posts: 1
Hi,
I use java.awt.List (3) constructor. API says "Creates a new scrolling list initialized with the specified number of visible lines." If an item text is too long a horizonatl scroll bar appears and the number of visible lines is 2. NB!NB! because the third line is replaced by the horizontal scroll bar. Could you tell me if there is the way to fix it? I mean always to show 3 lines irrespective of the item text length.
Thank you!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.awt.List horizontal scroll bar
 
Similar Threads
Displaying AWT widgets in Applets
Column aligment issue
Clicking works, but pushing "enter" return errors...how to fix? (on a button named "Enter")
JAVA move vertical scroll bar programatically by moving horizontal scroll bar.
Scrollable Table: Setting the horizontal scroll position