title: The method format(String, Object[]) in the type String is not applicable for the arguments (String, int, int)
body: <p>okay so I'm new to Java and I'm trying to make my first program and i get this message i cant seem to fix:</p>
  
  <blockquote>
    <p><code>The method format(String, Object[]) in the type String is not applicable for the arguments (String, int, int).</code></p>
  </blockquote>
  
  <p>Here is the Code:</p>
  
  <pre><code>import java.awt.*;
  import java.awt.event.*;
  
  import javax.swing.*;
  
  public class Gui extends JFrame{
      private JPanel GamePanel;
      private JLabel statusbar;
  
      public Gui(){
          super("Title");
          GamePanel = new JPanel();
          GamePanel.setBackground(Color.WHITE);
          add(GamePanel, BorderLayout.CENTER);
  
          statusbar = new JLabel("default");
          add(statusbar, BorderLayout.SOUTH);
  
          HandlerClass handler = new HandlerClass();
          GamePanel.addMouseListener(handler);
      }
  
      class HandlerClass implements MouseListener{
          public void mouseEntered(MouseEvent event){
              //here is where the problem is!
              statusbar.setText(String.format("%d, %d", event.getX(), event.getY());
          }
  
          public void mouseClicked(MouseEvent event) {
              statusbar.setText("ok?");
          }
  
          public void mouseExited(MouseEvent event) {
              statusbar.setText("something");
          }
  
          public void mousePressed(MouseEvent event) {
              statusbar.setText("something");
          }
  
          public void mouseReleased(MouseEvent event) {
              statusbar.setText("something");
          }
  
      }
  }
  </code></pre>