// Path: src/uk/ac/open/audio/AudioException.java
// public class AudioException extends Exception
// {
// 	/**
// 	 * @param cause Underlying exception
// 	 */
// 	public AudioException(Throwable cause)
// 	{
// 		super(cause);
// 	}
// 
// 	/**
// 	 * @param message Informational message
// 	 */
// 	public AudioException(String message)
// 	{
// 		super(message);
// 	}
// }


import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.text.DateFormat;
import java.util.Date;
import javax.swing.*;
import uk.ac.open.audio.AudioException;
/*
Copyright 2009 The Open University
http://www.open.ac.uk/lts/projects/audioapplets/

This file is part of the "Open University audio applets" project.

The "Open University audio applets" project is free software: you can
redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

The "Open University audio applets" project is distributed in the hope that it
will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with the "Open University audio applets" project.
If not, see <http://www.gnu.org/licenses/>.
*/
package uk.ac.open.audiorecorder;




/**
 * Page displays applet errors.
 */
class ErrorPage extends JPanel
{
	private static final long serialVersionUID=1L;

	/**
	 * @param t Error that occurred
	 */
	ErrorPage(Throwable t)
	{
		super(new BorderLayout(0,8));
		setBackground(Color.WHITE);

		JPanel upper=new JPanel(new BorderLayout(0,8));
		upper.setOpaque(false);
		add(upper,BorderLayout.NORTH);

		JLabel headingLabel = new FLabel(FontType.HEADING, "An error has occurred");
		upper.add(headingLabel,BorderLayout.NORTH);
// Path: src/uk/ac/open/audio/AudioException.java
// public class AudioException extends Exception
// {
// 	/**
// 	 * @param cause Underlying exception
// 	 */
// 	public AudioException(Throwable cause)
// 	{
// 		super(cause);
// 	}
// 
// 	/**
// 	 * @param message Informational message
// 	 */
// 	public AudioException(String message)
// 	{
// 		super(message);
// 	}
// }


// Path: src/uk/ac/open/audiorecorder/ErrorPage.java
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.text.DateFormat;
import java.util.Date;
import javax.swing.*;
import uk.ac.open.audio.AudioException;

/*
Copyright 2009 The Open University
http://www.open.ac.uk/lts/projects/audioapplets/

This file is part of the "Open University audio applets" project.

The "Open University audio applets" project is free software: you can
redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

The "Open University audio applets" project is distributed in the hope that it
will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with the "Open University audio applets" project.
If not, see <http://www.gnu.org/licenses/>.
*/
package uk.ac.open.audiorecorder;




/**
 * Page displays applet errors.
 */
class ErrorPage extends JPanel
{
	private static final long serialVersionUID=1L;

	/**
	 * @param t Error that occurred
	 */
	ErrorPage(Throwable t)
	{
		super(new BorderLayout(0,8));
		setBackground(Color.WHITE);

		JPanel upper=new JPanel(new BorderLayout(0,8));
		upper.setOpaque(false);
		add(upper,BorderLayout.NORTH);

		JLabel headingLabel = new FLabel(FontType.HEADING, "An error has occurred");
		upper.add(headingLabel,BorderLayout.NORTH);
		if((t instanceof AudioException) &&