hi,
     hope this is what u asked for...

private class KeyEnter extends KeyAdapter {
     public void keyPressed(KeyEvent e) {
          System.out.println ("Key pressed");
          if ((e.getKeyCode() == KeyEvent.VK_F4) &&
               (e.getModifiers() ==
java.awt.event.InputEvent.ALT_MASK)) {
                    System.out.println ("Alt F4");
          }
     }
}

regards,
   Manoj



                                                                                       
                              
                    "Soumitra Dhankar"                                                 
                              
                    <soumitra.dhankar@        To:     <[EMAIL PROTECTED]>          
                              
                    wipro.com>                cc:                                      
                              
                    Sent by:                  Subject:     Capturing Alt-F4            
                              
                    advanced-swing-adm                                                 
                              
                    [EMAIL PROTECTED]                                                          
                              
                                                                                       
                              
                                                                                       
                              
                    10/21/02 02:49 PM                                                  
                              
                                                                                       
                              
                                                                                       
                              




Hi

I want to capture Alt-F4 keyboard event in the keyPressed () method of
KeyListener.
Any idea how to do this ?

Rgds
-Soumitra
 (See attached file: InterScan_Disclaimer.txt)

Attachment: InterScan_Disclaimer.txt
Description: Binary data

Reply via email to