开发者

Editable JComboBox Background color

I have a editable combobox, but I am not able to change its background color. Tried

((JTextField) myJComboBox.getEditor().getEditorComponent())
#setBackground(Color.xxxx);

ref: Change JComb开发者_运维问答oBox colours WITHOUT renderer

But it doesn't seem to work

Any ideas?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜