Skip to content

Commit

Permalink
Make Specimen Editor Visible before Loading Images for Perceived Perf…
Browse files Browse the repository at this point in the history
…ormance
  • Loading branch information
GenieTim committed Jan 28, 2021
1 parent b7d9994 commit c325ff4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ public void displayInEditor() {
// check
// for drawer (115.12) and unit tray (115.12a) level images.
}
// make visible before loading images as those take time
resultFrame.pack();
resultFrame.setVisible(true);

if (drawerImages == null || drawerImages.isEmpty()) {
// Specimen has multiple images, but no drawer images
log.debug("Specimen with no drawer images: " + specimen.getBarcode());
Expand All @@ -387,7 +391,6 @@ public void displayInEditor() {
resultFrame.pack();
resultFrame.centerSpecimen(); // Specimen is expected to be at the center of
// the specimen part of the image.
resultFrame.setVisible(true);
}

/**
Expand Down

0 comments on commit c325ff4

Please sign in to comment.