swing中添加url链接

swing中添加url链接

问题描述:

swing中点击一个按钮然后跳转到一个指定的url连接怎么实现呢?
[code="java"]
jprint.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
String stuid = (String)((Vector)UpCenterPanel.stuInfo.get(UpCenterPanel.table.getSelectedRow())).get(0);
System.out.println("stuid="+stuid);
//在这里跳转
}
});
[/code]