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

How can you draw using Swing components?

1 Answers  


What is import javax swing?

0 Answers  


Why swings are used in java?

0 Answers  


What is java swing application?

0 Answers  


What is pane in swing?

0 Answers  






How is parsing html used in swing?

0 Answers  


How to perform action on button in java swing?

0 Answers  


What is import javax swing jframe?

0 Answers  


How to create a swing gui in java?

0 Answers  


What are the benefits if Swing over AWT?

0 Answers  


What is meant by Swing?

8 Answers  


How to merging the particular cells in JTable

1 Answers  


Categories