// TODO Replace by Font.MONOSPACED with JDK 6
private static void displayTextPrivate(JFrame aFrame, String aTitle, String aText, boolean aModalFlag, List<Action> anActions) {
		final JDialog tempDialog = new JDialog(aFrame, aTitle);
		tempDialog.setModal(aModalFlag);
		Dimension tempScreen = Toolkit.getDefaultToolkit().getScreenSize();
		tempDialog.setSize(tempScreen.width * 4 / 10, tempScreen.height * 4 / 5);
		tempDialog.setLocation(tempScreen.width / 4, tempScreen.height / 10);
		tempDialog.getContentPane().setLayout(new BorderLayout());
		ScrollPane tempScrollPane = new ScrollPane();
		JEditorPane tempEditorPane = new JEditorPane();
		// TODO Replace by Font.MONOSPACED with JDK 6
		tempEditorPane.setFont(new Font("Monospaced", 0, aFrame.getFont().getSize()));
		tempEditorPane.setText(aText);
		tempScrollPane.add(tempEditorPane);
		tempDialog.getContentPane().add(tempScrollPane, BorderLayout.CENTER);
		Action tempActionListener = new AbstractAction("OK") {
			@Override
			public void actionPerformed(ActionEvent aE) {
				tempDialog.dispose();
			}
		};
		List<Action> tempActions = new ArrayList<Action>();
		tempActions.add(tempActionListener);
		if (anActions != null) {
			tempActions.addAll(anActions);
		}
		tempDialog.getContentPane().add(createButtons(tempActions.toArray(new Action[tempActions.size()])), BorderLayout.SOUTH);
		tempDialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		tempDialog.setAlwaysOnTop(false);
		tempDialog.setVisible(true);
	}
ScrollPane tempScrollPane = new ScrollPane();
JEditorPane tempEditorPane = new JEditorPane();
// TODO Replace by Font.MONOSPACED with JDK 6
tempEditorPane.setFont(new Font("Monospaced", 0, aFrame.getFont().getSize()));
tempEditorPane.setText(aText);
private static void displayTextPrivate(JFrame aFrame, String aTitle, String aText, boolean aModalFlag, List<Action> anActions) {
final JDialog tempDialog = new JDialog(aFrame, aTitle);
tempDialog.setModal(aModalFlag);
Dimension tempScreen = Toolkit.getDefaultToolkit().getScreenSize();
tempDialog.setSize(tempScreen.width * 4 / 10, tempScreen.height * 4 / 5);
tempDialog.setLocation(tempScreen.width / 4, tempScreen.height / 10);
tempDialog.getContentPane().setLayout(new BorderLayout());
ScrollPane tempScrollPane = new ScrollPane();
JEditorPane tempEditorPane = new JEditorPane();
// TODO Replace by Font.MONOSPACED with JDK 6
tempEditorPane.setFont(new Font("Monospaced", 0, aFrame.getFont().getSize()));
tempEditorPane.setText(aText);
tempScrollPane.add(tempEditorPane);
tempDialog.getContentPane().add(tempScrollPane, BorderLayout.CENTER);
Action tempActionListener = new AbstractAction("OK") {
@Override
public void actionPerformed(ActionEvent aE) {
tempDialog.dispose();
}
};
private static void displayTextPrivate(JFrame aFrame, String aTitle, String aText, boolean aModalFlag, List<Action> anActions) {
final JDialog tempDialog = new JDialog(aFrame, aTitle);
tempDialog.setModal(aModalFlag);
Dimension tempScreen = Toolkit.getDefaultToolkit().getScreenSize();
tempDialog.setSize(tempScreen.width * 4 / 10, tempScreen.height * 4 / 5);
tempDialog.setLocation(tempScreen.width / 4, tempScreen.height / 10);
tempDialog.getContentPane().setLayout(new BorderLayout());
ScrollPane tempScrollPane = new ScrollPane();
JEditorPane tempEditorPane = new JEditorPane();
// TODO Replace by Font.MONOSPACED with JDK 6
tempEditorPane.setFont(new Font("Monospaced", 0, aFrame.getFont().getSize()));
tempEditorPane.setText(aText);
tempScrollPane.add(tempEditorPane);
tempDialog.getContentPane().add(tempScrollPane, BorderLayout.CENTER);
Action tempActionListener = new AbstractAction("OK") {
@Override
public void actionPerformed(ActionEvent aE) {
tempDialog.dispose();
}
};
List<Action> tempActions = new ArrayList<Action>();
tempActions.add(tempActionListener);
if (anActions != null) {
tempActions.addAll(anActions);
}
tempDialog.getContentPane().add(createButtons(tempActions.toArray(new Action[tempActions.size()])), BorderLayout.SOUTH);
tempDialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
tempDialog.setAlwaysOnTop(false);
tempDialog.setVisible(true);
}