We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c87ee90 commit 795e920Copy full SHA for 795e920
src/simplejavatexteditor/UI.java
@@ -134,6 +134,14 @@ public UI() {
134
135
// Set an higlighter to the JTextArea
136
textArea.addKeyListener(new KeyAdapter() {
137
+
138
+ @Override
139
+ public void keyReleased(KeyEvent e) {
140
+ setTitle("Untitled | " + SimpleJavaTextEditor.NAME + " [ Length: " + textArea.getText().length()
141
+ + " Lines: " + (textArea.getText() + "|").split("\n").length + " ]");
142
+ }
143
144
145
public void keyPressed(KeyEvent ke) {
146
edit = true;
147
languageHighlighter.highLight(textArea, kw.getCppKeywords());
0 commit comments