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 is jfc? What are the features of jfc?
What is java swing components?
What is swing gui in java?
How to merging the particular cells in JTable
What is swing in java javatpoint?
Why swings are used in java?
How to add and delete nodes in Jtree?
What is an event in Swing?
What are the benefits of using Swing over AWT?
How to align components in java swing?
When i m clicking on next another frame is open but i want to hide the previous frame...........but it is not happening....still both frame are visible........how to make one frame to hide.......please help me.......
What does x mean in javax.swing?