()
| 88 | |
| 89 | |
| 90 | protected void flush() { |
| 91 | // only if new text has been added |
| 92 | if (consoleDoc.hasAppendage()) { |
| 93 | // insert the text that's been added in the meantime |
| 94 | consoleDoc.insertAll(); |
| 95 | // always move to the end of the text as it's added |
| 96 | consoleTextPane.setCaretPosition(consoleDoc.getLength()); |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | |
| 101 | /** |
no test coverage detected