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
Why is model-view-controller architecture used in swing?
What is jlabel java swing?
Why do we use swing in java?
What is an event handler in swing?
What are the advantages of java swing over angular?
What are the benefits of swing over awt?
What is the base class for all swing components?
How to print in java swing application?
Is swing an api?
How does accessibility works in swings?
What is Java Swing?
What is awt and swing?
Is swing still used?
How to move from one page to another in java swing?
What is import javax swing * used for?