-2
如何在swing(JTextPane)中突出显示(Highlighter)不仅在选择两个或多个行时显示文本(包含行)。我需要突出显示Intellij IDEA中的选择。使用Java中的行高亮选中的文本(Swing)
SwingUtilities.invokeLater(new Runnable() {
JTextPane textPane = new JTextPane();
JScrollPane textPaneWithScroll = new JScrollPane(textPane);
this.getContentPane().add(textPaneWithScroll);
this.setVisible(true);
});
你必须提供更多的细节 - 是关于摆动,HTML等? – home 2014-10-11 11:25:46
@home根据标签,它是关于摆动 – msrd0 2014-10-11 11:33:00
@ msrd0:谢谢,该标签后来被添加。海事组织的细节仍然缺失。是关于桌子等吗?一些代码也可能有帮助。 – home 2014-10-11 11:59:28