开发者

Editable JComboBox Background color

开发者 https://www.devze.com 2023-04-06 10:04 出处:网络
I have a editable combobox, but I am not able to change its background color. Tried ((JTextField) myJComboBox.getEditor().getEditorComponent())

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

精彩评论

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