Hello Sir, u can do the ctr mask on your button like this JButton b1 =new JButton("Copy");
b1.setMnemonic('C'); when u pressed alt +c it works [ June 25, 2004: Message edited by: Ravi Lekhwani ]
Joined: Oct 20, 2001
Hello Thank You for your reply.
I know that setMnemonic can used to apply shortcutkey but it is with ALT Key
b1.setMnemonic('C'); = ALT + C
my question was how can i apply CTRL + C on JButton.
Joined: Jun 16, 2004
Hello Ikram, First Of all i m sorry 4 not sending the right solution, Now I made a code for you which gives u a exact solution ,just have a look into it, Please give me a reply weather it solves your solution or not