/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pdfdb.gui.panels;
import java.awt.BorderLayout;
import java.awt.Font;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;
import pdfdb.gui.customcomponents.MultilineLabel;
/** Pane shown in the AboutFrame.
* @author ug22cmg */
public class AboutPane extends JPanel
{
private static final String ABOUT_TXT = getText();
/** Gets the text of the about panel.
* @return The about pane text. */
private static final String getText()
{
StringBuffer sb = new StringBuffer();
sb.append("The academic document retrieval system is software ");
sb.append("primarily designed for searching academic PDF files. ");
sb.append("Licenses and source code were ");
sb.append("made available at installation and are also available in ");
sb.append("the installation directory. \n\n");
sb.append("This software is licensed as free software under the ");
sb.append("terms of the BSD license. This product is the ");
sb.append("intellectual property of the University of Birmingham. ");
sb.append("Copyright 2009,");
sb.append("University of Birmingham, All Rights Reserved. Originally ");
sb.append("designed by Christopher Green under supervision by ");
sb.append("Dr Behzad Bordbar");
return sb.toString();
}
/** Initializes the AboutPane. */
public AboutPane()
{
MultilineLabel lbl = new MultilineLabel();
Border border = BorderFactory.createEmptyBorder(10, 10, 10, 10);
JLabel title = new JLabel("ADRS");
Font font1 = new Font("Arial", Font.PLAIN, 24);
Font font2 = new Font("Arial", Font.PLAIN, 12);
super.setBorder(border);
super.setLayout(new BorderLayout());
super.setOpaque(false);
title.setFont(font1);
lbl.setText(ABOUT_TXT);
lbl.setFont(font2);
super.add(title, BorderLayout.NORTH);
super.add(lbl, BorderLayout.CENTER);
}
}