java窗体中combobox怎么添加图片

如题所述

具体代码如下:
ComboBox a=new ComboBox(new ImageIcon("image/xy.jpg")); 即括号里填你需要的图片
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-10-24
ComboBox comb =new ComboBox(new ImageIcon("f:\\image.jpg"));

括号里边是你的图片地址
相似回答