my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes Highlighter Issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Highlighter Issues" Watch "Highlighter Issues" New topic

Highlighter Issues

Atrus Greyor
Ranch Hand

Joined: Mar 07, 2004
Posts: 110
With the below code, whenever I click find, it is supposed to highlight the text that is in the search box. I have looked through some other examples online and it looks like it should work, but it does not. Can anyone explain why?

Atrus Greyor
Ranch Hand

Joined: Mar 07, 2004
Posts: 110
Ah, never mind.

The two ints in the highlight method are for the start of the highlight and to the end of the highlight, not the start and how long the highlight should continue on.

Well I fixed my problem, but thanks anyways!
I agree. Here's the link:
subject: Highlighter Issues
Similar Threads
Implementing function in new dialog
Panel appears only when resizing JFrame.
Problem with select(int start, int end) method of TextArea
modal JDialog not responding to jbutton actionlistener?
JSplitPane and its setDividerLocation method