可以给它加个鼠标的监听器,鼠标点击后
用:
Runtime.getRuntime().exec(new String[]{"C:/Program Files/Internet Explorer/IEXPLORE.EXE","http://www.csdn.net"});
用:
Runtime.getRuntime().exec(new String[]{"C:/Program Files/Internet Explorer/IEXPLORE.EXE","http://www.csdn.net"});
http://expert.csdn.net/Expert/topic/1862/1862593.xml?temp=.1139948
import java.applet.*;
import java.awt.*;
import java.net.*;
。
try {
URL url = new URL("http://www.sohu.com");
this.getAppletContext().showDocument(url,"_blank");
} catch (MalformedURLException e) {
textField1.setText(e.toString());
}