问题I am using Netbeans 7.1. are there any option for displaying line numbers in jtextpane? 回答1:You can try using Text Component Line Number. 来源:https://stackoverflow.com/questions/8995431/line-numbers-in-jtextpane-in-netbeans 标签 java swing jtextpane netbeans-7 line-numbers