按钮实现超链接
button.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent arg0) {try { //Runtime.getRuntime().exec("C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE http://www.baidu.com"); Runtime.getRuntime().exec("cmd /c start http://www.sohu.com"); } catch (Exception ex) { System.out.println("error"); ex.printStackTrace(); } } });