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 f50509d commit 0d5aaccCopy full SHA for 0d5aacc
src/simplejavatexteditor/UI.java
@@ -138,7 +138,8 @@ public UI() {
138
@Override
139
public void keyReleased(KeyEvent e) {
140
setTitle("Untitled | " + SimpleJavaTextEditor.NAME + " [ Length: " + textArea.getText().length()
141
- + " Lines: " + (textArea.getText() + "|").split("\n").length + " ]");
+ + " Lines: " + (textArea.getText() + "|").split("\n").length
142
+ + " Words: " + textArea.getText().trim().split("\\s+").length + " ]");
143
}
144
145
0 commit comments