How i can adjust combo box drop down list width to longest string?

How i can automatically sizes the drop-down width of a combo box based on the width of the longest item in the combo box on the JSP page?deemy
[156 byte] By [deemya] at [2007-11-27 7:40:24]
# 1
you can't do it "automatically".
corlettka at 2007-7-12 19:20:54 > top of Java-index,Java Essentials,Java Programming...
# 2

When i have specific width (e.g.: 400px) but very long string of text to display (e.g.: Strategic and Cooperative Action for the Conservation of Biodiversity in North America), the text is not completely showing (e.g.: Strategic and Cooperative Action for the Conservation of Bio).

I am pretty sure somebody developed a method to adjust the drop down list width to longest sting i saw code for VB on net that the length of combo box same as you fix but the drop down list width adjust to longest string.

OR

somebody developed a method to show the string of text in 2 lines or something equivalent to show all the text. But, after trying to search through the NET, I did not have a lot of success.

So, anybody have a solution please provide me.

Thank's!

deemya at 2007-7-12 19:20:54 > top of Java-index,Java Essentials,Java Programming...
# 3
please provide me solution for above problem.thanks.
deemya at 2007-7-12 19:20:54 > top of Java-index,Java Essentials,Java Programming...
# 4
You want a solution? Here's one: write a letter to Microsoft and the Mozilla foundation and beg them for a solution. It's got NOTHING to do with teh Jav.
quittea at 2007-7-12 19:20:54 > top of Java-index,Java Essentials,Java Programming...