I'm guessing this is a simple enough work around but I'm stumped:
Is it possible to determine from which component of container a popupmenu derives?
I currently have a loop that adds components to a JPanel adding a popupmenu to each component.
I guess I could alter the ActionCommand to identify each component uniquely?
but is there a simpler way?
I'm using:
newCourseView.setComponentPopupMenu(popup);
(newCourseView being a JPanel)
if I use the above implementation for the popup...how do i then access the old popup command where i could get x/y coords??
(since I'm thinking that maybe I can use "getcomponentAt(x,y)" to accomplish this?)
TIA
Michael
Edited by: choc_budda on Nov 5, 2009 4:12 PM