This discussion is archived
2 Replies Latest reply: Feb 26, 2013 2:27 AM by Murray9654 RSS

displaying line numbers in JTextPane?

Murray9654 Newbie
Currently Being Moderated
Hi I have attached a JTextPane to an InternalFrame. What i wanted to do is i have to display line number on the left side of the textpane and that should be not editable(only Line number) and when we move to the next line the cursor has to be placed right next to the line number. How this can be done?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points