• Post Reply Bookmark Topic Watch Topic
  • New Topic

Text Editor Design Question

 
Yusuf Jakoet
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In almost all programming text editors, there's a bar on the left of the document which usually shows line numbers. How would one implement such a bar in the left of a text component such as JEditorPane?
 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a table with single column (having Line numbers) to the left of the editorpane.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!