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 / 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 |
What is an event handler in swing?
What are swings awt?
What is java swing gui?
What is difference between jframe and swing?
What are the benefits of using Swing over AWT?
What is the use of jfc in java swing?
What is the use of swing in java?
What are the different types of layout managers used in swing?
What are the two key features of swing?
What is swing and awt in java?
How is multi-threading gets implemented using swing?
What are the advantages of the event-delegation model over the event-inheritance model?