使用JComponentPack产品中的JLinkButton控件

使用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 = n

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