// Overrides the draw method in Gamecore
  public void draw(Graphics g) {
    if (loggedIn) g.drawImage(bgImage, 0, 0, null);
    // g.drawImage()

    // the layered pane contains things like popups (tooltips,
    // popup menus) and the content pane.
    screen.getLayeredPane().paintComponents(g);
  }
 public JLayeredPane getLayeredPane() {
   return jFrame.getLayeredPane();
 }