File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "List Width?" Watch "List Width?" New topic
Author

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
Dan
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.
Regards,
Manfred.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: List Width?