I am using a Jtextpane in my application. I want to switch to line number I want . How can I implement Goto line feature in java for jTextpane.
please help....

Did you try the method getText(int offs,int len)?
I think this method will help if you made some initialization of the JTextPane size and set the offset and length of each start of line.

i.e.
there is no goto method. but you can creat one using the previous method.