67,512
社区成员
发帖
与我相关
我的任务
分享
NativeInterface.open();
SwingUtilities.invokeLater(new Runnable() {
public void run() {
Shapshot.shapshot("http://www.baidu.com", 1);
}
});
NativeInterface.runEventPump();
srcUrl = request.getParameter("srcurl");
method = Integer.parseInt(request.getParameter("method"));
HttpSession session = request.getSession();
NativeInterface.open();
SwingUtilities.invokeLater(new Runnable() {
public void run() {
rePath = Shapshot.shapshot(srcUrl, method);
}
});
// NativeInterface.runEventPump();
session.setAttribute("repath", rePath);
response.sendRedirect("ok.jsp");
public static synchronized 返回值 takeSnapshot() {
NativeInterface.open();
try {
return Shapshot.shapshot();
} finally {
NativeInterface.runEventPump();
}
}