System.out.println("Selecting all..."); consoleTextPane.setCaretPosition(0); consoleTextPane.moveCaretPosition(consoleTextPane.getDocument().getLength()); System.out.println("Done Selecting all...");
consoleTextPane.requestFocus(); consoleTextPane.selectAll();
  private void selectAll_actionPerformed() {    System.out.println("Selecting all...");    consoleTextPane.setCaretPosition(0);    consoleTextPane.moveCaretPosition(consoleTextPane.getDocument().getLength());    System.out.println("Done Selecting all...");  }