File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create applet pop menu? who can provide a good example?

 
Geoffrey Ren
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am swing beginner.I want to implement a applet popmenu.
for example:
menu1 menu2 ..............
item1 item1 ..............
item2 item2 ..............
item3 item3 ..............
item4 ..............
when your mouse point the menu1. It pop the item1,item2,item3 menu
All of item came from a xml file

Thanks!!!
 
Paul McKenna
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a MouseListener and override the method mouseEntered for each component in the popup. As for the XML file, parse the data beforehand and use it to generate the additional popup menus as desired.
HTH
PMC
 
Geoffrey Ren
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you provide for me a example?
Thanks!!!
 
Paul McKenna
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Paul McKenna
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically.. I just scribbled something right out of my mind.. but I hope you get the idea.
HTH
PMc
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic