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 |
How can you draw using Swing components?
What is import javax swing?
Why swings are used in java?
What is java swing application?
What is pane in swing?
How is parsing html used in swing?
How to perform action on button in java swing?
What is import javax swing jframe?
How to create a swing gui in java?
What are the benefits if Swing over AWT?
What is meant by Swing?
How to merging the particular cells in JTable