JAVA程序在按钮中添加图片出错???????????
JButtonbutton=newJButton(newImageIcon("key.jpg").getImage());应该怎样写才对啊constructorJButt...
JButton button=new JButton(new ImageIcon("key.jpg").getImage());
应该怎样写才对啊
constructor JButton (java.awt.Image)
location: class javax.swing.JButton
JButton button=new JButton(new ImageIcon("key.jpg").getImage()); 展开
应该怎样写才对啊
constructor JButton (java.awt.Image)
location: class javax.swing.JButton
JButton button=new JButton(new ImageIcon("key.jpg").getImage()); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询