docs: public static Container splash(Container container, Image image)
      {
          if (instance == null && image != null) {
              Window frame = null;
              int heading = 0;
              if (container == null)
              {
                  frame = new JWindow();
                  container = new JApplet();  // Just to be consistent
                  ((JWindow)frame).getContentPane().add(container);
              }
              else
              {
                  frame = new JFrame();
                  ((JFrame)frame).getContentPane().add(container);
                  if (container instanceof JApplet)
                      heading = 50;   // TODO There must be a way to get this
              }                
  
              // Create the splash image
              instance = new Splash(container, image);
              
              Dimension dimension = container.getSize();
              frame.setSize(dimension.width, dimension.height + heading);
              Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();
              frame.setLocation(
              (screenDim.width - dimension.width) / 2,
              (screenDim.height - dimension.height) / 2
              );
  
              // Show the window.
              frame.setVisible(true);
              
              // Wait until its paint method has been called at least once.
              if (! EventQueue.isDispatchThread() 
              && Runtime.getRuntime().availableProcessors() == 1) {
                  synchronized (instance) {
                      while (! instance.paintCalled) {
                          try { instance.wait(); } catch (InterruptedException e) {}
                      }
                  }
              }
          }
          return container;
      }