docs: public JPanel addScrollbars(JComponent screen)
      {
          Dimension dimension = screen.getPreferredSize();
          if ((dimension.height == 0) && (dimension.width == 0))
              dimension = JScreenConstants.PREFERRED_SCREEN_SIZE;
          else if ((screen.getBounds().width != 0) && (screen.getBounds().height != 0))
          {
              dimension.width = screen.getBounds().width;
              dimension.height = screen.getBounds().height;
          }
          dimension.width = Math.max(JScreenConstants.MIN_SCREEN_SIZE.width, Math.min(dimension.width + 20, JScreenConstants.PREFERRED_SCREEN_SIZE.width));
          dimension.height = Math.max(JScreenConstants.MIN_SCREEN_SIZE.height, Math.min(dimension.height + 20, JScreenConstants.PREFERRED_SCREEN_SIZE.height));
          JScrollPane scrollpane = new JScrollPane(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
          if (dimension != null)
              scrollpane.setPreferredSize(dimension);
          scrollpane.setAlignmentX(Component.LEFT_ALIGNMENT);
          scrollpane.getViewport().add(screen);
          JPanel panel = new JPanel();
          panel.setAlignmentX(Component.LEFT_ALIGNMENT);
          panel.add(scrollpane);
          panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
          panel.setOpaque(false);
          screen.setOpaque(false);
          scrollpane.setOpaque(false);
          scrollpane.getViewport().setOpaque(false);
          return panel;
      }