| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 611 人关注过本帖
标题:JLabel中如何假如图片
只看楼主 加入收藏
jonc
Rank: 1
等 级:新手上路
帖 子:69
专家分:0
注 册:2007-3-25
收藏
 问题点数:0 回复次数:2 
JLabel中如何假如图片
请问JLable中除了下列方法假如图片,还有没有其他的途径
或者说是JLable中有没有的内部方法直接调用。
ImageIcon go_offimage=new ImageIcon("Images/go_off.gif");
JLable lable=new JLable(go_offimage);
搜索更多相关主题的帖子: JLabel 
2007-05-17 20:30
ck0311
Rank: 1
等 级:新手上路
帖 子:96
专家分:0
注 册:2007-2-13
收藏
得分:0 
JLabel label = new JLabel (new ImageIcon ("Images/go_off.gif"));

2007-05-17 20:54
Eastsun
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:32
帖 子:802
专家分:0
注 册:2006-12-14
收藏
得分:0 

setIcon

public void setIcon(Icon icon)
Defines the icon this component will display. If the value of icon is null, nothing is displayed.

The default value of this property is null.

This is a JavaBeans bound property.

See Also:
setVerticalTextPosition(int), setHorizontalTextPosition(int), getIcon()


My BlogClick Me
2007-05-17 22:36
快速回复:JLabel中如何假如图片
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014172 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved