Last active
March 10, 2019 13:01
-
-
Save ezhov-da/e06d833e6ad689d234abba94e700f64e to your computer and use it in GitHub Desktop.
groovy ошибка при использовании jsyntaxpane [jeditorpane is not enclosed in jscrollpane, no linenumbers will be displayed]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//==> http://code.google.com/p/jsyntaxpane/ | |
DefaultSyntaxKit.initKit(); | |
JEditorPane editorPane=new JEditorPane(); | |
JScrollPane textScrollPane=new JScrollPane(editorPane); | |
textScrollPane.setAutoscrolls(true); | |
textScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); | |
editorPane.setContentType("text/java");//выставляем тип Java, JavaScript, Properties, Groovy, C, C++, XML, SQL, Ruby , Python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment