title: How to retain selected text in JTextField when focus lost?
body: <p>Now finishing my custom menu popup, but the problem is that if I select some text in <code>JTextField</code> and click mouse button to show popup menu, then focus is transferred to popup window, AND selected text before are no longer highlighted. When focus is back to <code>JTextField</code> - selected text become highlighted again. How to make the selected text stay highlighted on focus lost?</p>