Select « JEditorPane « Java Swing Q&A





1. Selecting elements in a JEditorPane    stackoverflow.com

I'm creating a Java application where the user can search through a list of objects, which are then displayed in a JEditorPane window using a dynamically generated table whose size varies ...

4. Selecting text in JEditorPane...    forums.oracle.com

5. JEditorPane - getting Selected Text or Active Line number    forums.oracle.com

Is there any predefined method that will give me the current line selected or the line at which the cursor is? I am displayed a piece of java code in my JEditorPane, the user can browse through the entire file.. and I need to call an event when a user selects/double clicks a particular module name or based on the current ...