2
* Copyright Copyright 2010-12 Simon Andrews
4
* This file is part of FastQC.
6
* FastQC is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 3 of the License, or
9
* (at your option) any later version.
11
* FastQC is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with FastQC; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
package uk.ac.babraham.FastQC.Dialogs;
24
import uk.ac.babraham.FastQC.FastQCApplication;
27
import java.awt.event.*;
30
* Shows the generic about dialog giving details of the current version
31
* and copyright assignments. This is just a thin shell around the
32
* SeqMonkTitlePanel which actually holds the relevant information and
33
* which is also used on the welcome screen.
35
public class AboutDialog extends JDialog {
38
* Instantiates a new about dialog.
40
* @param a The SeqMonk application.
42
public AboutDialog (FastQCApplication a) {
44
setTitle("About FastQC...");
45
Container cont = getContentPane();
46
cont.setLayout(new BorderLayout());
48
add(new FastQCTitlePanel(),BorderLayout.CENTER);
50
JPanel buttonPanel = new JPanel();
52
JButton closeButton = new JButton("Close");
53
getRootPane().setDefaultButton(closeButton);
54
closeButton.addActionListener(new ActionListener() {
55
public void actionPerformed(ActionEvent arg0) {
60
buttonPanel.add(closeButton);
62
cont.add(buttonPanel,BorderLayout.SOUTH);
65
setLocationRelativeTo(a);