File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes how to create applet pop menu? who can provide a good example? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to create applet pop menu? who can provide a good example?" Watch "how to create applet pop menu? who can provide a good example?" New topic
Author

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

Geoffrey Ren
Greenhorn

Joined: Nov 25, 2002
Posts: 18
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

Joined: Jan 17, 2003
Posts: 8
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

Joined: Nov 25, 2002
Posts: 18
can you provide for me a example?
Thanks!!!
Paul McKenna
Greenhorn

Joined: Jan 17, 2003
Posts: 8
Paul McKenna
Greenhorn

Joined: Jan 17, 2003
Posts: 8
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
 
subject: how to create applet pop menu? who can provide a good example?