66问答网
所有问题
java窗体中combobox怎么添加图片
如题所述
举报该问题
推荐答案 2013-10-24
具体代码如下:
ComboBox a=new ComboBox(new ImageIcon("image/xy.jpg")); 即括号里填你需要的图片
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://66.wendadaohang.com/zd/29v9Dn2vx.html
其他回答
第1个回答 2013-10-24
ComboBox comb =new ComboBox(new ImageIcon("f:\\image.jpg"));
括号里边是你的图片地址
相似回答
大家正在搜
相关问题
JAVA GUI 中下拉列表框中怎么添加图片
java中Swing中JComboBox的值如何添加进去,看...
c#中combobox给下拉列表项每项前添加图片
Java中ComboBox使用方法???
java的swing中,我想在JComboBox下拉框中添加...
高分悬赏C#中如何重写comboBox控件使其可以插入图片i...
java combobox所选中项的值如何插入数据库
java中怎样创建ComboBox控件?