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);
	}
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();
	
		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);
	}
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(); 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); }