Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

List object and PopupMenu  RSS feed

 
david allen
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a list object that contains 5 items. When a user selects one I want a PopupMenu to appear. I am having a few problems with this. Could anyone show me how to do this.
Thank you for everyones comments
david
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
if you have not already had a look at it:
http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html#popup
there is some sample code that worked fine for me.
chantal
 
david allen
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have it working thank you
david
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!