使用JComponentPack产品中的JLinkButton控件

How to use JLinkButton

JLinkButton inherit from JButton,it have all function of JButton, and it also have a additional function, you can open a Explorer via URL and that don’t need write code.
There are two ways to use this function:

1.JLinkButton linkButton = new JLinkButton(“www. baidu.com”);

URL url = new URL(“www.baidu.com”);
linkButton.setURL(url);

2. URL url = new URL(“www.baidu.com”);

JLinkButton linkButton = new JLinkButton(“www. baidu.com”, url );

I saw LinkLabel in .Net Framework Developer Center before,it is convenient to use,but Java don’t include it. Now the third part Component include it,please see: JComponentPack



了解更多产品。。。

奇新Java控件——Java控件提供商和Java RIA, Web, J2ME解决方案开发商





--------------------------
新闻: 瑞星卷入“诬陷门” 称系旧将恶意陷害
导航: 博客园首页   知识库   新闻   招聘   社区   小组   博问   网摘   找找看

你可能感兴趣的:(使用JComponentPack产品中的JLinkButton控件)