/* Copyright (c) 2002-2012 The University of the West Indies
 *
 * Contact: robert.lancashire@uwimona.edu.jm
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library 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
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 */

package jspecview.unused;

//import java.awt.BorderLayout;
//import java.awt.Dimension;
//import java.awt.Font;
//
//
//import javax.swing.JDialog;
//import javax.swing.JEditorPane;
//import javax.swing.JPanel;
//import javax.swing.JScrollPane;
//
//import org.jmol.util.Logger;

/**
 * Dialog that displays String of text or contents of a file in a
 * </code>JEditorPane</code>.
 * @author Debbie-Ann Facey
 * @author Khari A. Bryan
 * @author Prof Robert J. Lancashire
 */

public class TextDialog {//extends JDialog {
//  /**
//   * 
//   */
//  private static final long serialVersionUID = 1L;
//  private JPanel contentPanel = new JPanel();
//  private BorderLayout borderLayout = new BorderLayout();
//  private JScrollPane scrollPane;
//  private JEditorPane sourcePane = new JEditorPane();
//  JPanel contentPanel = new JPanel()
//  /**
//   * Intilialises a <code>TextDialog</code> with a Reader from which to read the
//   * pane content
//   * @param frame the parent frame
//   * @param title the title
//   * @param modal true if modal, otherwise false
//   * @param text
//   */
//  public TextDialog(Object frame, String title, boolean modal, String text) {
//    super((JDialog) null, title, modal);
//    try {
//      contentPanel.setLayout(borderLayout);
//      sourcePane.setText(text);
//      sourcePane.setEditable(false);
//      sourcePane.setFont(new Font(null, Font.BOLD, 12));
//      getContentPane().add(contentPanel);
//      scrollPane = new JScrollPane(sourcePane);
//      scrollPane.setPreferredSize(new Dimension(500, 400));
//      scrollPane.setMinimumSize(new Dimension(500, 400));
//      contentPanel.add(scrollPane,  BorderLayout.CENTER);
//      pack();
//      setVisible(true);
//    }
//    catch(Exception ex) {
//    	Logger.error(ex.getMessage());
//    }
//  }
}
