-
Enhancement
-
Resolution: Fixed
-
P4
-
17
-
None
-
b07
BasicLookAndFeel calls getComponentPopupMenu once (line 2221) to determine if a menu is needed. If the result is not null, then BasicLookAndFeel calls getComponentPopMenu again (line 2228) to obtain the menu to be shown. It should instead save the result of the first invocation.
As menus are sometimes constructed on demand, making a second call is less efficient. There is also the (unlikely) possibility that the second invocation will return null.
As menus are sometimes constructed on demand, making a second call is less efficient. There is also the (unlikely) possibility that the second invocation will return null.