/*
* AboutPaperScopeWindow.java
*
* Created on 05 September 2007, 15:07
*/
package paperscope;
import edu.stanford.ejalbert.BrowserLauncher;
import java.awt.Cursor;
/**
*
* @author Mark
*/
public class AboutPaperScopeWindow extends javax.swing.JFrame {
/** Creates new form AboutPaperScopeWindow */
public AboutPaperScopeWindow() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
paperScopeLabel = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
descriptionText = new javax.swing.JTextArea();
languageLabel = new javax.swing.JLabel();
guiLabel = new javax.swing.JLabel();
graphLabel = new javax.swing.JLabel();
browserLabel = new javax.swing.JLabel();
jSeparator1 = new javax.swing.JSeparator();
detailsLabel = new javax.swing.JLabel();
versionLabel = new javax.swing.JLabel();
javaLabel = new javax.swing.JLabel();
javaVersionLabel = new javax.swing.JLabel();
swingLabel = new javax.swing.JLabel();
prefuseLabel = new javax.swing.JLabel();
browserLaucherLabel = new javax.swing.JLabel();
engineLabel = new javax.swing.JLabel();
leceneLabel = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
programmingLabel = new javax.swing.JLabel();
nameLabel = new javax.swing.JLabel();
jobLabel = new javax.swing.JLabel();
edinLabel = new javax.swing.JLabel();
jSeparator2 = new javax.swing.JSeparator();
jLabel1 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("About PaperScope");
paperScopeLabel.setFont(new java.awt.Font("Tahoma", 1, 18));
paperScopeLabel.setText("PaperScope 1.0");
descriptionText.setColumns(20);
descriptionText.setEditable(false);
descriptionText.setLineWrap(true);
descriptionText.setRows(5);
descriptionText.setText("PaperScope is a graphical tool for exploring the ADS (Astrophysics Data System)(http://adsabs.harvard.edu/). It allows users to examine published papers and their references and citations in a graph of nodes (each representing a paper) and edges (each representing a relationship between two papers).");
descriptionText.setWrapStyleWord(true);
jScrollPane1.setViewportView(descriptionText);
languageLabel.setFont(new java.awt.Font("Tahoma", 1, 11));
languageLabel.setText("Programming Language: ");
guiLabel.setFont(new java.awt.Font("Tahoma", 1, 11));
guiLabel.setText("GUI Library: ");
graphLabel.setFont(new java.awt.Font("Tahoma", 1, 11));
graphLabel.setText("Graph Visualization Library: ");
browserLabel.setFont(new java.awt.Font("Tahoma", 1, 11));
browserLabel.setText("Browser Launcher: ");
detailsLabel.setFont(new java.awt.Font("Tahoma", 1, 12));
detailsLabel.setText("PaperScope Program Details and utilized libraries");
versionLabel.setFont(new java.awt.Font("Tahoma", 1, 11));
versionLabel.setText("Version: ");
javaLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
javaLabel.setText("Java");
javaVersionLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
javaVersionLabel.setText("1.6.02");
swingLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
swingLabel.setText("Swing");
prefuseLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
prefuseLabel.setText("Prefuse (www.prefuse.org)");
prefuseLabel.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
prefuseLabelMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
prefuseLabelMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
prefuseLabelMouseExited(evt);
}
});
browserLaucherLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
browserLaucherLabel.setText("Browser Laucher 2 (http://browserlaunch2.sourceforge.net/)");
browserLaucherLabel.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
browserLaucherLabelMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
browserLaucherLabelMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
browserLaucherLabelMouseExited(evt);
}
});
engineLabel.setFont(new java.awt.Font("Tahoma", 1, 11));
engineLabel.setText("Search Engine: ");
leceneLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
leceneLabel.setText("Apache Lucene 1.9 (http://lucene.apache.org/)");
leceneLabel.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
leceneLabelMouseClicked(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
leceneLabelMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
leceneLabelMouseExited(evt);
}
});
jButton1.setText("Close");
jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton1MouseClicked(evt);
}
});
programmingLabel.setFont(new java.awt.Font("Tahoma", 1, 11));
programmingLabel.setText("Programming and Design: ");
nameLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
nameLabel.setText("Mark Holliman");
jobLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
jobLabel.setText("VOTECH Web Developer");
edinLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
edinLabel.setText("Univeristy of Edinburgh");
jLabel1.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\Mark\\Java Projects\\PaperScope\\dist\\lib\\PaperScopeLogo.gif"));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 509, Short.MAX_VALUE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 509, Short.MAX_VALUE)
.addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 509, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addComponent(engineLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(leceneLabel))
.addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(programmingLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jobLabel)
.addComponent(nameLabel)
.addComponent(edinLabel))))
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addComponent(graphLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(prefuseLabel))
.addGroup(layout.createSequentialGroup()
.addComponent(browserLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(browserLaucherLabel))
.addGroup(layout.createSequentialGroup()
.addComponent(paperScopeLabel)
.addContainerGap(379, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(detailsLabel)
.addGroup(layout.createSequentialGroup()
.addComponent(languageLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(javaLabel)
.addGap(50, 50, 50)
.addComponent(versionLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(javaVersionLabel))
.addGroup(layout.createSequentialGroup()
.addComponent(guiLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(swingLabel)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 129, Short.MAX_VALUE)
.addComponent(jLabel1)
.addContainerGap())))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(paperScopeLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(detailsLabel)
.addGap(15, 15, 15)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(languageLabel)
.addComponent(javaLabel)
.addComponent(versionLabel)
.addComponent(javaVersionLabel))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(guiLabel)
.addComponent(swingLabel))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(graphLabel)
.addComponent(prefuseLabel))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(browserLabel)
.addComponent(browserLaucherLabel))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(engineLabel)
.addComponent(leceneLabel)))
.addComponent(jLabel1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(2, 2, 2)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(programmingLabel)
.addComponent(nameLabel))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jobLabel)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton1)
.addContainerGap())
.addGroup(layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(edinLabel)
.addContainerGap())))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void leceneLabelMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_leceneLabelMouseExited
Cursor cursor = new Cursor(Cursor.DEFAULT_CURSOR);
setCursor(cursor);
}//GEN-LAST:event_leceneLabelMouseExited
private void browserLaucherLabelMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_browserLaucherLabelMouseExited
Cursor cursor = new Cursor(Cursor.DEFAULT_CURSOR);
setCursor(cursor);
}//GEN-LAST:event_browserLaucherLabelMouseExited
private void prefuseLabelMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_prefuseLabelMouseExited
Cursor cursor = new Cursor(Cursor.DEFAULT_CURSOR);
setCursor(cursor);
}//GEN-LAST:event_prefuseLabelMouseExited
private void leceneLabelMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_leceneLabelMouseEntered
Cursor cursor = new Cursor(Cursor.HAND_CURSOR);
setCursor(cursor);
}//GEN-LAST:event_leceneLabelMouseEntered
private void browserLaucherLabelMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_browserLaucherLabelMouseEntered
Cursor cursor = new Cursor(Cursor.HAND_CURSOR);
setCursor(cursor);
}//GEN-LAST:event_browserLaucherLabelMouseEntered
private void prefuseLabelMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_prefuseLabelMouseEntered
Cursor cursor = new Cursor(Cursor.HAND_CURSOR);
setCursor(cursor);
}//GEN-LAST:event_prefuseLabelMouseEntered
private void leceneLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_leceneLabelMouseClicked
try{
//==== Create the browser launcher, open the URL in the user's browser
BrowserLauncher launch = new BrowserLauncher();
launch.openURLinBrowser("http://lucene.apache.org");
}
catch (Exception e){
System.out.println(e);
}
}//GEN-LAST:event_leceneLabelMouseClicked
private void browserLaucherLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_browserLaucherLabelMouseClicked
try{
//==== Create the browser launcher, open the URL in the user's browser
BrowserLauncher launch = new BrowserLauncher();
launch.openURLinBrowser("http://browserlaunch2.sourceforge.net/");
}
catch (Exception e){
System.out.println(e);
}
}//GEN-LAST:event_browserLaucherLabelMouseClicked
private void prefuseLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_prefuseLabelMouseClicked
try{
//==== Create the browser launcher, open the URL in the user's browser
BrowserLauncher launch = new BrowserLauncher();
launch.openURLinBrowser("http://www.prefuse.org");
}
catch (Exception e){
System.out.println(e);
}
}//GEN-LAST:event_prefuseLabelMouseClicked
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
this.dispose();
}//GEN-LAST:event_jButton1MouseClicked
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel browserLabel;
private javax.swing.JLabel browserLaucherLabel;
private javax.swing.JTextArea descriptionText;
private javax.swing.JLabel detailsLabel;
private javax.swing.JLabel edinLabel;
private javax.swing.JLabel engineLabel;
private javax.swing.JLabel graphLabel;
private javax.swing.JLabel guiLabel;
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JSeparator jSeparator2;
private javax.swing.JLabel javaLabel;
private javax.swing.JLabel javaVersionLabel;
private javax.swing.JLabel jobLabel;
private javax.swing.JLabel languageLabel;
private javax.swing.JLabel leceneLabel;
private javax.swing.JLabel nameLabel;
private javax.swing.JLabel paperScopeLabel;
private javax.swing.JLabel prefuseLabel;
private javax.swing.JLabel programmingLabel;
private javax.swing.JLabel swingLabel;
private javax.swing.JLabel versionLabel;
// End of variables declaration//GEN-END:variables
}