protected static void cleanOutputs() { try { String cleanerScript = BASE_TESTING_DIR + "\\0000_clean_outputs.bat"; Process process = Runtime.getRuntime().exec(cleanerScript); process.waitFor(); } catch (IOException | InterruptedException e) { e.printStackTrace(); } }
@Override public boolean dispatchKeyEvent(KeyEvent e) { int keyCode = e.getKeyCode(); if (e.getID() == KEY_PRESSED) { try { handleKeyPressed(keyCode); } catch (IOException | InterruptedException e1) { e1.printStackTrace(); } } else if (e.getID() == KEY_RELEASED) { handleKeyReleased(keyCode); } return true; }