System.out.println("Error: File not loaded: File not found."); e.printStackTrace();
String errmsg = "File not found: " + ips.getAbsolutePath(), errtitle = "Error: File not loaded"; JOptionPane.showMessageDialog(null, errmsg, errtitle, JOptionPane.ERROR_MESSAGE); System.out.println(errtitle + ": " + errmsg);
    public static IPSFile loadIPSFile(File ips)    {        try        {            FileInputStream in = new FileInputStream(ips);            byte[] b = new byte[(int) ips.length()];            in.read(b);            in.close();            //			int[] ipsFile = new int[b.length];            //			for (int i = 0; i < b.length; i++)            //			{            //				ipsFile[i] = (b[i] & 255);            //			}            return new IPSFile(b);        }        catch (FileNotFoundException e)        {            System.out.println("Error: File not loaded: File not found.");            e.printStackTrace();        }        catch (IOException e)        {            System.out.println("Error: File not loaded: Could read file.");            e.printStackTrace();        }        return new IPSFile();    }