JOptionPane.showMessageDialog( comp, message, title, JOptionPane.ERROR_MESSAGE );
MatrixTree tree = MatrixTreeBus.getActiveTree(); if (tree == null) { JOptionPane.showMessageDialog( comp, message, title, JOptionPane.ERROR_MESSAGE ); return; } ErrorDialog errorDialog = ErrorDialog.getErrorDialog(message, title, tree.getLocationOnScreen(), tree.getSize()); errorDialog.show();
	public static void error(Component comp, String message, String title) {		JOptionPane.showMessageDialog(			comp,			message,			title,			JOptionPane.ERROR_MESSAGE		);	}