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 swing gui in java?
What is the function of internal frame in swing?
What is the use of jcomponent class in swing?
Which method is used for setting security in applets?
Why would you use swingutilities.invokeandwait or swingutilities.invokelater?
Which types of components are used in designing swing based gui?
What is double buffering ?
What are the advantages of the event-delegation model over the event-inheritance model?
What is import javax swing?
Is java swing still used?
What are the benefits of swing over awt?
Is java swing deprecated?
What is java awt and swing?
Write a program to include the internal frame in swing.
What is jpanel swing?