| 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
|
 |
 |
|
|
subject: how to create applet pop menu? who can provide a good example?
|
|
|