Subclass your component from this class and the main window will focus it to allow copy pasting with shortcuts. More...
Subclass your component from this class and the main window will focus it to allow copy pasting with shortcuts.
Then, in your mouseDown method, call grabCopyAndPasteFocus(). If you call paintOutlineIfSelected from your paint method, it will be automatically highlighted.