I was building a simple text editor.
The code below is to initialize text component which extends JTextPane:
Now, I have JTabbedPane and every tab contains above component. I use CaretEvent to refresh label on status bar that displays current line/column number.
I also added ChangeListener to tabbedPane and implemented stateChanged() method. Is there any way to invoke caretUpdate() every time I select different tab, so above mentioned label is automatically refreshed?
The quieter you are, the more you are able to hear.