Hi all,

I have coded the following in the constructor of my custom
ComboBoxWidget
that extends JComboBox ... but i donot get the s.o.p.

   InputMap inputMap =
this.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
   inputMap.put(KeyStroke.getKeyStroke("ENTER"),"ENTER_KEY_PRESS");
   inputMap.put(KeyStroke.getKeyStroke("ESCAPE"),"ESCAPE_KEY_PRESS");

inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,KeyEvent.VK_SHIFT),"SHIFT_TAB_PRESS");



   ActionMap actionMap = this.getActionMap();
   actionMap.put("ENTER_KEY_PRESS",hideAction);
   actionMap.put("ESCAPE_KEY_PRESS",hideAction);
   actionMap.put("SHIFT_TAB_PRESS",new AbstractAction() {
    public void actionPerformed(ActionEvent ae) {
     System.out.println("abhay: Shift + Tab pressed");
    }
   });

Am I missing anything ... anywhere ?

Is there any other way of handling shift + Tab key event ?

I'm using jdk1.3 (and am aware of the bug that keyListener cannot
be added to the comboBox directly.)

can anyone point out any link to capture shift + tab events ?

Thanks in advance.

kind regards
abhay


---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to