Do you mean the selectAll method inherited from JTextComponent?
Did you use it correctly? Are you sure the code block containing the statement is being called?
Post the code you have problems with....