且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java JTextArea行号

更新时间:2023-01-14 11:14:32

你试过试试吗? viewPort中的两个文本字段?也许在一个面板上给出行号可用宽度的一小部分?

Have you tried putting both text fields in the viewPort? Maybe on a panel that gives the line numbers a fraction of the available width?