when we right click on the JTable using mouse it works
properly but how to right click on JTable in java using
keyboard what should be the code for the same.....?

Thanks
Nitin



when we right click on the JTable using mouse it works properly but how to right click on JTable i..

Answer / santro

public void mouseClicked(MouseEvent e)
{
if(e.getButton()==e.BUTTON3)
JOptionPane.showMessageDialog(null, "Mouse right
click");

}

With the help of above u can easily get when you right click
on jtable

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More Swing Interview Questions

Name the method, to expand & collapse nodes in a Jtree?

1 Answers   Wipro,


what is the diff's between swing and applet?

17 Answers   Invictus, Patni,


What is swing control?

0 Answers  


How does accessibility works in swings?

0 Answers  


Does Swing contains any heavy weight component?

5 Answers  


What is the difference between swing and awt in java?

0 Answers  


How is multi-threading gets implemented using swing?

0 Answers  


how to give transparency to JComboBox,JList and JTable

5 Answers   Ness Technologies,


Why would you use swingutilities.invokeandwait or swingutilities.invokelater?

0 Answers  


What is the default look and feel of a Swing Component?

3 Answers  


What is java swing gui?

0 Answers  


How are Swing and AWT be differentiated?

3 Answers   Wipro,


Categories