JComboBox_Problem

Hi all,

I have a jCombobox ....when i have the list of items in that combobox

the items need not be editable ? how to achieve this ?

And background should also be in gray itslef ....can any body have idea on this ?

Thanks in advance

[264 byte] By [vasmhi_1981a] at [2007-11-27 10:39:38]
# 1

Hi,

Before posting a question,pls. do the trail, and if u cann't post it.

By Default,the combo is not editable only, if u need to edit, jComboBox1.setEditable(true);

and use jComboBox1.setBackground(Color.LIGHT_GRAY);

to change the background color.

nirgun_xyza at 2007-7-28 19:02:16 > top of Java-index,Desktop,Core GUI APIs...