This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I'm fairly new to Swing so sorry if this is too simple. I there build in ability to find text inside a JTEXT area? I know I can do a getText() and search for a string but this seem cludgy. can anyone share a better solution? Thanks, Dean
Robert , doodle
posted 15 years ago
something like.. <pre> int index=textArea.getText().indexOf(searchString); textArea.setSelectionStart(index); textArea.setSelectionEnd(searchString.length()); textArea.select(index,textArea.getSelectionEnd()); </pre>