It seems that the Menu interface component does not behave correctly when operating on a parent Panel. Consider a Panel p who has a child Menu m. Calling p.clear() removes m from p's children, however m stays visible and can still be interacted with. In a similar way, calling p.redoBoundaries() after resizing p's container, it does not redraw m and it stays at the location where it was when it was first instantiated. I have not experimented with this much more to see what other Panel methods aren't updating the Menu, but I believe p.remove() has the same effect (or lack thereof).
It seems that the Menu interface component does not behave correctly when operating on a parent Panel. Consider a Panel
p
who has a child Menum
. Callingp.clear()
removesm
fromp
's children, howeverm
stays visible and can still be interacted with. In a similar way, callingp.redoBoundaries()
after resizingp
's container, it does not redrawm
and it stays at the location where it was when it was first instantiated. I have not experimented with this much more to see what other Panel methods aren't updating the Menu, but I believep.remove()
has the same effect (or lack thereof).