I am using netbeans to code java and i was wondering if there is an option to have a program stopped by pressing a shortcut. I can press F6 to execute program, but I
You can use Ctrl+Shift+DEL.
It is defined in Tools > Options > Keymap as System > Cancel Process.
Tools > Options > Keymap
System > Cancel Process