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 are the features of swing in java?
Which method of the Component class is used to set the position and size of a component?
What is the difference between a scrollbar and a jscrollpane ?
What are swing components in java?
What are the features of JFC?
What are the components of swing in java?
Why are swing components called lightweight?
What is import javax swing * used for?
What is the purpose of action interface in swing?
Explain the difference between awt and swt.
How to add calendar in java swing using eclipse?
What are all the components used in Swing?