I had made one Java Swing based application.
On my application,if i click anywhere on the JFrame or anything, then my right click is not working?
i had not set anything like that..then why is not working?
Basically my key board was not working then i try to copy – paste data using mouse then, i came about to know that…my right click is not working on any area of my application…
Your right click is working just fine – in Swing it’s normal to not be getting the context menus you’re used to in other apps. If you want to have a popup menu that opens up on right click with cut/copy/paste actions for example – you have to implement it yourself. I use something like this in my apps:
In the end you should attach this listener to any text components that you want to have a context menu on right click.