Hie, folks I am new on this forum and I hope my subject does fall in the right place. I was trying to attach PopupMenus to a component in an applet. I can do this quite oky, but I have a problem getting rid of the popmenu. To show it I am basically using the show() method of the Popupclass, but I just can not find a method to get rid of it when I am done with it. Could someone help ?
Tom, Apparently PopupMenu has three methods only and setVisible() is not one of them. I think this method is from the Component class and PopupMenu does not descend from this heirachy, so it does not inherit it. Herbert.
Joined: May 06, 2000
Actually I was thinking of the JPopupMenu which does support setVisible(). The PopupMenu is designed to stay visible until the user clicks anywhere outside of the PopupMenu. There is no way to hide it once it is displayed.