title: Multi-Catches Problems
body: <p>I copied something from a different class, and yet it gave me an error even though it didn't in the original. Here's the code:</p>
  
  <pre><code>package com.dinobuilding;
  
  import java.awt.EventQueue;
  import java.awt.FontFormatException;
  import java.awt.Image;
  import java.awt.Toolkit;
  import java.awt.image.ImageObserver;
  import java.io.IOException;
  
  import javax.swing.*;
  
  public class Window {
  
  public static int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height;
  public static int screenWidth = Toolkit.getDefaultToolkit().getScreenSize().width;
  
  public static ImageIcon background = new ImageIcon("resources/images/Background.png");
  
  public static ImageObserver observer;
  
  public Window() {
      EventQueue.invokeLater(new Runnable() {
          @Override
          public void run() {
              JFrame frame = new JFrame("DinoBuilding");
  
              try {
                  UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
                  ex.printStackTrace();
              }
  
              frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              frame.setResizable(false);
              frame.pack();
              frame.setSize(screenWidth, screenHeight);
              frame.setVisible(true);
          }
      });
  }
  
  public static void main(String[] args) {
      new Window();
  }
  
  }
  </code></pre>
  
  <p>I've probably messed something up really trivial, but it will not stop telling me "Multi-catches are not supported at this language level". If you need more information that I probably forgot to mention, just ask. Thanks in advance!</p>