StringBuilder msg = new StringBuilder();
StringBuffer msg = new StringBuffer();
	static void recordBug(Exception e)	{		StringBuilder msg = new StringBuilder();		msg.append(e.getClass().getName() + ": " + e.getMessage() + "\n");		for (StackTraceElement i : e.getStackTrace())			msg.append(i + "\n");		if (DEBUG)			JOptionPane.showMessageDialog(null, msg);		else		{			try			{				logFile.createNewFile();				PrintWriter pw = new PrintWriter(new FileOutputStream(logFile));				pw.println(msg);				pw.close();			}			catch (IOException ohWell) {}		}	}