Find the position of the cursor in an EditorPane

duydien used Ask the Experts™
is there a way to get the current position of the cursor in the (html) document being displayed by an EditorPane ???


Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>

function document_onmousemove()
window.text1.value="X="+window.event.clientX+" Y="+window.event.clientY


<SCRIPT LANGUAGE=javascript FOR=document EVENT=onmousemove>
<INPUT type="text" id=text1 name=text1>


Accept answer by bhagyesht
Bhagyesh Trivedi

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial