}
private void progresslog(String s) {
+ if (dtxt == null) return;
long now = new Date().getTime();
- System.out.println("progress "+(now - startTime)+"ms "+s);
+ dtxt.println("progress "+(now - startTime)+"ms "+s);
}
private void progressNote(ProgressMonitor pm, String s) {
html = m.replaceAll(" ");
}
String whole_msg = "<html><h1>Error</h1>"+msg+"<h1>PCTB Server said:</h1><blockquote>"+html+"</blockquote>";
- System.err.println("###" + whole_msg + "###");
+ if (dtxt!=null) dtxt.println("###" + whole_msg + "###");
JOptionPane.showMessageDialog(frame,whole_msg,"Error",JOptionPane.ERROR_MESSAGE);
}
private Accessible descendNodes(Accessible parent, int[] path) {
for(int i=0;i<path.length;i++) {
if (null == (parent = descend(parent, path[i]))) return null;
- // System.out.println(parent.getClass());
+ //System.out.println(parent.getClass());
}
return parent;
}
buySellCount[1]++;
}
} catch(IllegalArgumentException e) {
- System.err.println("Error: Unsupported Commodity \"" + offer.get(0) + "\"");
+ if (dtxt!=null) dtxt.println("Error: Unsupported Commodity \"" + offer.get(0) + "\"");
}
}
if (buySellCount[0]==0 && buySellCount[1]==0) {
Pattern done = Pattern.compile("Your data has been integrated into the database. Thank you!");
m = done.matcher(complete);
if(m.find()) {
- System.out.println("FILE upload successful!!!");
+ if (dtxt!=null) dtxt.println("FILE upload successful!!!");
return true;
} else {
error_html("Something was wrong with the final upload parameters!", complete);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String yarrgresult;
while((yarrgresult = br.readLine()) != null) {
- System.out.println(yarrgresult);
+ if (dtxt!=null) dtxt.println(yarrgresult);
}
return true;
}