Adding bookmark in JEditorPane

M

manu

Hi Friends,
I am displaying an HTML file's contents in a JEditorPane. I want that,
whenever that file is opened, the cursor should be on a particular
position. How it can be done?? Pls tell ASAP.

Thanks in advance
 
M

Manish Pandit

R

Roedy Green

I am displaying an HTML file's contents in a JEditorPane. I want that,
whenever that file is opened, the cursor should be on a particular
position. How it can be done?? Pls tell ASAP.

Here are two hints.

1. When you can't find the method you want in the class, look in the
superclasses.

2. the "cursor" is the thing that tracks the mouse. The "caret" in the
thing that tracks the insertion point in a block of text.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,002
Messages
2,570,258
Members
46,858
Latest member
FlorrieTuf

Latest Threads

Top