Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

What is swing package in java?

0 Answers  


What is java awt and swing?

0 Answers  


Is swing still used?

0 Answers  


What is the mean of swing?

0 Answers  


Difference between AWT and Swing compenents?

3 Answers  






What is swing api?

0 Answers  


What is the function of lightweight components used in swing?

0 Answers  


What is jlabel java swing?

0 Answers  


What is java swing package?

0 Answers  


how to give transparency to JComboBox,JList and JTable

5 Answers   Ness Technologies,


How are Swing and AWT be differentiated?

3 Answers   Wipro,


what are the root classes of all classes?

4 Answers  






Categories