The moose likes Beginning Java and the fly likes List Width? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "List Width?" Watch "List Width?" New topic

List Width?

Dan Temple
Ranch Hand

Joined: Jul 10, 2001
Posts: 93
Here is a simple question that I can't find in the docs: What determines the width of a List component? There are no constructors that take width as a parameter.
Thanks in Advance
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Dan,
IMO, the underlying layout sizes the list. If you use a null layout the list might use the largest initial string to size itself.
I agree. Here's the link: http://aspose.com/file-tools
subject: List Width?
Similar Threads
width of List box in struts
printf method
How do i disable scrollbars in List?
JSlider with moving Display Label with JSlider Label
JavaScript regexp expression to replace String.