Solved

Find the position of the cursor in an EditorPane

Posted on 2003-10-21
5
240 Views
Last Modified: 2010-04-17
is there a way to get the current position of the cursor in the (html) document being displayed by an EditorPane ???

thanks,

dn
0
Comment
Question by:duydien
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
bhagyesht earned 250 total points
ID: 9597444
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--

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


}

//-->
</SCRIPT>
<SCRIPT LANGUAGE=javascript FOR=document EVENT=onmousemove>
<!--
 document_onmousemove()
//-->
</SCRIPT>
</HEAD>
<INPUT type="text" id=text1 name=text1>
<BODY>

<P>&nbsp;</P>

</BODY>
</HTML>
0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 10321809
Accept answer by bhagyesht
Bhagyesh Trivedi
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question