Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



when we right click on the JTable using mouse it works properly but how to right click on JTable i..

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

Post New Answer

More Swing Interview Questions

What are the features of swing in java?

0 Answers  


Which method of the Component class is used to set the position and size of a component?

0 Answers  


What is the difference between a scrollbar and a jscrollpane ?

0 Answers  


What are swing components in java?

0 Answers  


What are the features of JFC?

1 Answers  


What are the components of swing in java?

0 Answers  


Why are swing components called lightweight?

0 Answers  


What is import javax swing * used for?

0 Answers  


What is the purpose of action interface in swing?

0 Answers  


Explain the difference between awt and swt.

0 Answers  


How to add calendar in java swing using eclipse?

0 Answers  


What are all the components used in Swing?

1 Answers  


Categories