I'd like more ways of focusing the text area without changing the location of the caret. In Visual Studio, clicking any place in a pane will focus the main component in that pane. For example, you can click an empty spot in a toolbar in a sidebar, and it will focus the sidebar's tree or whatever. The attached patch is similar as it causes clicking a text area's scroll bar to focus the text area.
It might be nice if the same thing worked for the project viewer and other scrollable components, but that is harder to change and I have never really cared.
This patch requires JDK 1.7, so it shouldn't be applied while jEdit supports 1.6.
Committed 23461. I agree with you 100%
Thank you for your contribution.