I get the following exception
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null
My code is
java.net.URL auth = getClass().getResource("auth.jpg");
Icon auth1 = new ImageIcon(auth);
java.net.URL alert = getClass().getResource("alert.jpg");
Icon alert1 = new ImageIcon(alert);
java.net.URL insuf = getClass().getResource("insuf.jpg");
Icon insuf1 = new ImageIcon(insuf);
java.net.URL inva = getClass().getResource("inva.jpg");
Icon inva1 = new ImageIcon(inva);
URL see = getClass().getResource("see.jpg");
Icon see1 = new ImageIcon(see);
java.net.URL tap = getClass().getResource("tap.jpg");
Icon tap1 = new ImageIcon(tap);
java.net.URL wel = getClass().getResource("wel.jpg");
Icon wel1 = new ImageIcon(wel);