|
From: SVN by r. <sv...@ca...> - 2008-03-04 10:52:56
|
Author: roy
Date: 2008-03-04 11:52:42 +0100 (Tue, 04 Mar 2008)
New Revision: 250
Modified:
src/main/java/nl/improved/sqlclient/SQLShell.java
Log:
try to fix more paint issues...
really hard to track though
Modified: src/main/java/nl/improved/sqlclient/SQLShell.java
===================================================================
--- src/main/java/nl/improved/sqlclient/SQLShell.java 2008-03-03 10:42:27 UTC (rev 249)
+++ src/main/java/nl/improved/sqlclient/SQLShell.java 2008-03-04 10:52:42 UTC (rev 250)
@@ -561,14 +561,13 @@
error(e);
}
}
- paint(); // refresh screen
}
/**
* Output error exception to the screen.
* @param e the error to print to the screen
*/
- protected void error(Throwable e) {
+ protected synchronized void error(Throwable e) {
output(e.getMessage() == null ? e.toString() : e.getMessage());
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
@@ -1402,6 +1401,7 @@
output(commandString);
output(currentCommand.execute(new InputCommand(commandString)));
cmd=new StringBuilder();
+ new Thread() { public void run() { paint();}}.start();
}
}
} catch(IOException e) {
|