i want to search a string in my JTextArea,but i m not able to find ne solution,what shud i write after dis code to search a string...pls help me solve dis out..





JTextArea logTextArea;
StringBuffer buffer=new StringBuffer(); /*it contains some random content appended in previous part of program... */
logTextArea.insert(buffer.toString(), logTextArea.getText().length());