You can recreate this in the demo.
- Go to the MDIDemo.cpp
- In the
Note
constructor add the lineeditor.setSelectAllWhenFocused(true);
- Now run the MDI Demo
- Try to single click on different words in the text editor,. Notice the whole text stays selected.
This is because every time you click the text editor, it is losing focus then getting it back.
It seems something to do with a DocumentWindow being a child to another component.
Thanks in advance for any help