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 an event and what are the models available for event handling?
What are the components of swing in java?
What is an event in Swing?
Why should the implementation of any swing callback (like a listener) execute quickly?
What is the role of java swing?
What are swing controls?
Which layout does swing use by default?
What is jfc? What are the features of jfc?
What is swing package in java?
What are the advantages of swing?
What are the various components of swing?
How to move from one page to another in java swing?
Why would you use swingutilities.invokeandwait or swingutilities.invokelater?
What is swing and its features in java?
What is swing in java javatpoint?