code: private void updateMenuIcon() {
          Icon            frameIcon = frame.getFrameIcon();
          SeaGlassContext context   = getContext(this);
  
          if (frameIcon != null) {
              Dimension maxSize   = (Dimension) context.getStyle().get(context, "InternalFrameTitlePane.maxFrameIconSize");
              int       maxWidth  = 16;
              int       maxHeight = 16;
  
              if (maxSize != null) {
                  maxWidth  = maxSize.width;
                  maxHeight = maxSize.height;
              }
  
              if ((frameIcon.getIconWidth() > maxWidth || frameIcon.getIconHeight() > maxHeight) && (frameIcon instanceof ImageIcon)) {
                  frameIcon = new ImageIcon(((ImageIcon) frameIcon).getImage().getScaledInstance(maxWidth, maxHeight, Image.SCALE_SMOOTH));
              }
          }
  
          context.dispose();
          menuButton.setIcon(frameIcon);
      }
docs: Resets the menuButton icon to match that of the frame.