Hi,

here is a simple example on how to register a keyboard action listener for a 
certain key
(it works for me):

        ULCTable table = new ULCTable(new Object[][] { {"a", "b"}, {"c", "d"}}, 
new String[] {"x", "y"});
        table.registerKeyboardAction(new IActionListener() {
            public void actionPerformed(ActionEvent arg0) {                
                System.out.println("z pressed");
            };
        }, KeyStroke.getKeyStroke('z'), ULCComponent.WHEN_FOCUSED);

        ULCRootPane frame = createRootPane();
        frame.add(table);
        frame.setVisible(true);

In this case an event is only sent to the server, if the table has the focus 
and the key 'z'
is pressed. 

Greetings,

Daniel

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of prashanth tr
Sent: Donnerstag, 18. Mai 2006 15:21
To: [email protected]
Subject: [ULC-developer] In table cell ( ie textfield) on press of F9 Funtion 
Key, I need to do some action. How can I accomplish this in ulc.


I swing table  i am not facing any problem. i just registered F9 key to the 
desired table column and it worked fine using registerKeyboardAction() method.
But it didnt work in ulc table.
Well I didnt try with keymap. 

If there is  any way  then let me know.


-- 
Thanks
Prashanth 

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to