Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Search in JTextarea

843806Feb 6 2008 — edited Feb 6 2008
Hello,

If I have a JTextarea and I display a whole book in it, is it possible to implement a search function. Like for example a JTextfield, where I could type a word and the press a button and all the matches in the JTextarea are highlited and the JTextarea goes to the first match.
Also, would it be possible to have a JComboBox with the chapters of the book, and then when I choose one, the JTextArea goes down to that chapter ?

If anybody can tell me if this is possible, and maybe give a few pointers or links, where I can read about this, I would be very thankful.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2008
Added on Feb 6 2008
5 comments
296 views