Search code examples
javaswingjcombobox

Show full string of JCombobox's Item where combobox's width is smaller than String


I have one JComboBox on my screen. Have restricted it's width as I want to show that combobox in specific area only. Now If that combobox contains data or String longer than JComboBox's width, user can't view full string of that item. Is there any way to show full String once use click on that combobox. But combobox's width is fixed only.

Thanks in Advance.


Solution

  • Problem is solved. Thanks to MadProgrammer who suggest me How can I change the width of a JComboBox dropdown list? link from where I got Santosh Kumar's blog. Here is that link

    http://www.jroller.com/santhosh/entry/make_jcombobox_popup_wide_enough