how to use alt+f4?

hello There i've a little problem writing the code meaning pressing alt+f4(F4 While Holding Alt Key)this is how we write alt key if (k.getKeyCode () == KeyEvent.VK_ALT) so how we write alt+f4 ?thank you
[285 byte] By [First_knighta] at [2007-11-27 7:45:40]
# 1

If you're trying to override the behavior in windows to close a window, then you can't do that.

But to match alt+F4 you can do// assuming that k is a KeyEvent

if (k.isAltDown() && k.getKeyCode() == KeyEvent.VK_F4) {

// do stuff

}

dwga at 2007-7-12 19:26:24 > top of Java-index,Java Essentials,New To Java...
# 2
thanks so much
First_knighta at 2007-7-12 19:26:24 > top of Java-index,Java Essentials,New To Java...