本文整理汇总了Java中org.jdesktop.swingx.JXHyperlink.setURI方法的典型用法代码示例。如果您正苦于以下问题:Java JXHyperlink.setURI方法的具体用法?Java JXHyperlink.setURI怎么用?Java JXHyperlink.setURI使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jdesktop.swingx.JXHyperlink
的用法示例。
在下文中一共展示了JXHyperlink.setURI方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildPanel
import org.jdesktop.swingx.JXHyperlink; //导入方法依赖的package包/类
private JPanel buildPanel() {
JPanel panel = new JPanel();
panel.setLayout(new GridLayout(6, 2, 3, 3));
panel.add(new JLabel(resourceManager.getString("company.name.label")));
panel.add(new JLabel(resourceManager.getString("company.name")));
panel.add(new JLabel(resourceManager.getString("company.web.site.label")));
JXHyperlink link = new JXHyperlink();
try {
link.setURI(new URI(resourceManager.getString("company.web.site")));
panel.add(link);
} catch (URISyntaxException e) {
panel.add(new JLabel(resourceManager.getString("company.web.site")));
}
panel.add(new JLabel(resourceManager.getString("app.version.label")));
panel.add(new JLabel(resourceManager.getString("app.version")));
panel.add(new JLabel(resourceManager.getString("java.version.label")));
panel.add(new JLabel(System.getProperty("java.version")));
panel.add(new JLabel(resourceManager.getString("os.label")));
panel.add(new JLabel(System.getProperty("os.name")));
panel.add(new JLabel(resourceManager.getString("memory.usage")));
panel.add(new JLabel(getMemoryUsage()));
return panel;
}
示例2: initLink
import org.jdesktop.swingx.JXHyperlink; //导入方法依赖的package包/类
private void initLink(JXHyperlink link, String linkText, String linkName) {
link.setURI(URI.create(linkText));
link.setText(linkName);
}
示例3: initLink
import org.jdesktop.swingx.JXHyperlink; //导入方法依赖的package包/类
private void initLink(JXHyperlink link, String linkText) {
link.setURI(URI.create(linkText));
link.setText(message("lblLearnMore"));
}