Ticket #1160 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Menu bar creation is slow

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b3-headless
Component: UI Framework Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1162, #1182

Description (last modified by curtis) (diff)

As part of addressing these limitations we need to improve the speed of duplicating the menu bars when Displays are created. Right now on the mac when displays are created a new menubar is created. This process takes a long time. One can see the issue by running Stack To Images. There is a long pause before windows appear on the screen. Removing the call to createMenuBar() in SwingUI::onDisplayCreated() improves the problem considerably.

Change History

comment:1 Changed 7 years ago by curtis

  • Description modified (diff)
  • Summary changed from Menu code needs some improvements to Menu bar creation is slow

comment:2 Changed 7 years ago by curtis

  • Blocking 1162 added

comment:3 Changed 7 years ago by bdezonia

  • Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta2

comment:4 Changed 7 years ago by bdezonia

  • Milestone changed from imagej-2.0.0-beta2 to imagej-2.0.0-beta3

comment:5 Changed 7 years ago by bdezonia

  • Blocking 1182 added

comment:6 Changed 7 years ago by bdezonia

The current approach is to use the setDefaultJMenubar() command on the mac platform and not duplicate menus. That is partially committed to master at the moment. With this change Stack To Images is zippy. But it may not make it into final implementation.

comment:7 Changed 7 years ago by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed

The default menubar approach was adopted. This bug is now fixed.

Note: See TracTickets for help on using tickets.