Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

invoking windows popupmenu from my JFrame[urgent]  RSS feed

 
netharam ram
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a JFrame that lists the files of the specified directory.When a right click is done on a file displayed in Jlist,I want to display the windows popupmenu with properties,cut,paste etc.the links should also be activated when a menu is selected.If it is possible,please help me out with some code.
Happy middling with java.
Netharam
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Netharam,
How about the example code below?

It might help some ...
Regards,
Manfred.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!