The best way I can think of right off the bat is to add a key listener to the JFrame (JFrame.addKeyListener()) that listens for Control-C. When control-C is found, it puts up a warning dialog.
Originally posted by mike farad:
I have a Java Frame that closes when I press Ctrl-C. I expected it to paste. Please let me know how a warning message should pop up when I press Ctrl-C instead of closing the window suddenly. Thanks