How to use JLinkButton
May 7,2008
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”);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