unless there's been a change in recent releases, the only way to add a listener to the titlebar
was to set the L&F to
java's default, allowing java to build the titlebar (and it's not a good looking L&F)
if you don't want a screen dump of your app, how are you controlling say notepad opening alongside,
(or in front, if full screen), and, with notepad having focus, the screen is printed.