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 |
Name the method, to expand & collapse nodes in a Jtree?
what is the diff's between swing and applet?
What is swing control?
How does accessibility works in swings?
Does Swing contains any heavy weight component?
What is the difference between swing and awt in java?
How is multi-threading gets implemented using swing?
how to give transparency to JComboBox,JList and JTable
Why would you use swingutilities.invokeandwait or swingutilities.invokelater?
What is the default look and feel of a Swing Component?
What is java swing gui?
How are Swing and AWT be differentiated?