Topic: 新手求教:关于图标问题! |
Print this page |
1.新手求教:关于图标问题! | Copy to clipboard |
Posted by: suntrees Posted on: 2004-10-06 15:23 怎么样在一个程序界面中加入图标啊?我怎么先定义: JLabel imageLabel=new JLabel; ImageIcon ime=new ImageIcon("abc.png"); 然后 imageLabel.setIcon(ime); 不行呢?哪位前辈给指点一下?最好给出一个例子!谢谢了 |
2.Re:新手求教:关于图标问题! [Re: suntrees] | Copy to clipboard |
Posted by: kiffen Posted on: 2004-10-11 17:21 使用ImageIcon的getImage()函数取得Image对象,穿如Lable setIconImage()函数里 |
3.Re:新手求教:关于图标问题! [Re: suntrees] | Copy to clipboard |
Posted by: Hanf Posted on: 2004-10-11 17:50 请确认 ime?=null |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |