loadResponse(top, rp, args[0]);
}
}
private static void loadResponse(JFrame top, ResponsePanel rp, String file) {
Response response = new Response();
try {
FileInputStream fis = new FileInputStream(file);
response.read(fis);
response.flushContentStream();
fis.close();
} catch (IOException ioe) {
System.err.println(file + ": IOException: " + ioe.getMessage());
}
rp.setResponse(response);