lisa alben
September 25th, 2000, 08:27 PM
This is a tough one....
Any ideas (i.e. sample code) on how to dynamically build a JPopupMenu?
I am attempting to build a JPopupMenu with the alphabet and submenus composed of companies starting with each letter of the alphabet (dynamic part).
The alphabet and companies are stored in a HashMap in which a letter of the alphabet is the key and the object is a ArrayList of companies (starting with that letter).
ANY HELP is greatly appreciated!!!
Any ideas (i.e. sample code) on how to dynamically build a JPopupMenu?
I am attempting to build a JPopupMenu with the alphabet and submenus composed of companies starting with each letter of the alphabet (dynamic part).
The alphabet and companies are stored in a HashMap in which a letter of the alphabet is the key and the object is a ArrayList of companies (starting with that letter).
ANY HELP is greatly appreciated!!!