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


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Highlighter Issues" Watch "Highlighter Issues" New topic
Author

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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Highlighter Issues
 
Similar Threads
JSplitPane and its setDividerLocation method
Panel appears only when resizing JFrame.
Problem with select(int start, int end) method of TextArea
modal JDialog not responding to jbutton actionlistener?
Implementing function in new dialog