getAppletContext().showDocument(new URL("http://news.sina.com.cn"));
自己的一个打印程序:
public void start() {
String sql = "select name,sex,nation,birthday,deformitysort,deformitydegree,curator,tel,address from person";
try {
try {
PrintJob.printReport(sql);
} catch (SQLException e) {
e.printStackTrace();
}
} catch (SecurityException e) {
e.printStackTrace();
}
try {
getAppletContext().showDocument(new URL("http://news.sina.com.cn"));
} catch (Exception e) {
e.printStackTrace();
}
}
本文介绍了一个Java程序,该程序执行数据库查询并打印结果,同时尝试打开新浪新闻网站。涉及异常处理和跨域资源调用。
1522

被折叠的 条评论
为什么被折叠?



