• Post Reply Bookmark Topic Watch Topic
  • New Topic

popup menu add in jlsit  RSS feed

 
panku gupta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi im new in java.. please solve this problem.. i want to popup menu add in jlist and select file than open and save through context menu. but popup menu show on frame not in list please help me.


 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi panku and welcome to the Ranch! Next time oyu post, please UseCodeTags <-that's a link, click it. I've added them for you this time and doesn't the code look better?

Your question is about displaying a popup menu, but the code seems to have a lot more ... like showing a JFileChooser. I spotted at least one unused import, and there may be more. It will be much easier to help you if you can reduce the code to a SSCCE (Short, Self Contained, Correct (Compilable), Example).

Have you discovered the Oracle tutorials? Bringing Up a Popup Menu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!