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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are swings?

498


How to create image slideshow in java swing?

582


What are the containers available in swing?

505


What is jpanel swing?

540


What is difference between jframe and swing?

494






What is pane in swing?

510


What is swing and its features in java?

474


What is swing used for?

466


Which layout does swing use by default?

469


what are the steps required in creating an empty table drop?

555


Why should the implementation of any swing callback (like a listener) execute quickly?

538


In what context should the value of swing components be updated directly?

495


Is swing an adjective?

530


Why are swing components called lightweight components?

461


What are the differences between Swing and AWT?

551