selectAll « JTextArea « Java Swing Q&A





1. selectAll() method on a JTextArea    coderanch.com

I am trying to test the selectAll() method on a JTextArea, but the button does nothing. I'm sure it is a simple fix, I just don't understand how to use this function the way I want apparently. When I click the Select All button, I am expecting all the text to be selected... However, all the text is deselected instead. Here's ...