How would I go about customizing a scroll bar in Java so that I could have a search that acts like chrome, that's to say puts coloured stripes where the results are?
I don't want a library as I'd prefer to code it myself. Plus I don't want to loose my L&F that I have. Examples welcome.
Actually it will be to view a large text file or a long jtable, and does anyone have any good ideas for how I could have an efficient scroll bar to view this? ... should I have a double scroll bar one beginning to end and an inner one which scrolls over a short range???
(sorry it's kind of a double question but it's the coloured scroll bar that will get the tick)
Thanks for all your possible help and ideas.
EDIT: No code example sorry as I'm trying to plan this out in my head before hand... You see it will be a long text pane with a quick search. Users will need to load in this large file and get quick access to details. For the moment I'm keeping it light for loading speeds. Secondly the text will be dynamic so by clicking on a word it will put a stripe in the scroll bar as if the search was activated. For the moment lets just say it is a simple text area with scroll bar.
Or another option is to use "MatteBorder + Icon + RowHeader": JScrollBar search highlighter