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
What is sling swing?
Which method of the Component class is used to set the position and size of a component?
What are the components of swing?
What is the difference between swing and awt in java?
What is the what is the difference between invokeandwait() and invokelater()? ?
What is swing in java javatpoint?
What is the class in swing to change the appearance of the frame in runtime?
What are the advantage of swing over awt?
Which window contains the swing controls?
What is the difference between swing and awt?
What are the benefits of swing over awt?
What are swing components in java?
What is javax swing joptionpane?
Why swing is used in java?
In what context should the value of swing components be updated directly?