如何更改 JTextPane 的 EditorKit?我想更改它,因为我找到了一种更好的设置选项卡大小的方法......但这需要我设置它。我不想将其更改为 EditorPane,因为我的代码是为了使用其中的样式功能而构建的。
最佳答案
My Eclipse was just bugging with the "final" method that it is
“final”意味着您不能“扩展”该方法。
这并不意味着您不能“调用”该方法:
EditorKit editorKit = new SomeBetterEditorKit();
JTextPane textPane = new JTextPane();
textPane.setEditorKit( editorKit );
关于java - 更改 JTextPane EditorKit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34685251/