Skip to content

Commit

Permalink
updated with missing class
Browse files Browse the repository at this point in the history
  • Loading branch information
S. Asad Rahman committed Apr 13, 2017
1 parent a55573b commit 08057bb
Showing 1 changed file with 12 additions and 12 deletions.
Expand Up @@ -79,17 +79,17 @@
import uk.ac.ebi.smsd.gui.helper.molFileFilter;

/*
* SMSDGUI.java
* SMSDFrame.java
* @author Syed Asad Rahman, EBI-EMBL,
* @contact: asad@ebi.ac.uk
*
* Created on Mar 29, 2009, 3:07:42 AM
*/
public class SMSDGUI extends JFrame {
public class SMSDFrame extends JFrame {

private static final long serialVersionUID = 7878619981017L;
/**
* Creates new form SMSDGUI
* Creates new form SMSDFrame
*/
private final static String NEW_LINE = System.getProperty("line.separator");
private File QueryFileName = null;
Expand All @@ -99,7 +99,7 @@ public class SMSDGUI extends JFrame {
static private JPanel panels;
private File file;

public SMSDGUI() {
public SMSDFrame() {
count = 0;
initComponents();

Expand Down Expand Up @@ -284,7 +284,7 @@ private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS

jTextArea1.setCaretPosition(jTextArea1.getDocument().getLength());
} catch (Exception ex) {
Logger.getLogger(SMSDGUI.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(SMSDFrame.class.getName()).log(Level.SEVERE, null, ex);
}

}
Expand Down Expand Up @@ -418,7 +418,7 @@ public void actionPerformed(ActionEvent e) {
}

} catch (Exception ex) {
Logger.getLogger(SMSDGUI.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(SMSDFrame.class.getName()).log(Level.SEVERE, null, ex);
}

}//GEN-LAST:event_jButton3ActionPerformed
Expand Down Expand Up @@ -446,9 +446,9 @@ private IAtomContainer readMol(File file) {
jTextArea1.setCaretPosition(jTextArea1.getDocument().getLength());

} catch (IOException ex) {
Logger.getLogger(SMSDGUI.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(SMSDFrame.class.getName()).log(Level.SEVERE, null, ex);
} catch (CDKException ex) {
Logger.getLogger(SMSDGUI.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(SMSDFrame.class.getName()).log(Level.SEVERE, null, ex);
}

return molecule;
Expand Down Expand Up @@ -532,7 +532,7 @@ private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS
}

//Show it.
int returnVal = fileChooser.showDialog(SMSDGUI.this,
int returnVal = fileChooser.showDialog(SMSDFrame.this,
"Attach");

//Process the results.
Expand All @@ -546,7 +546,7 @@ private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS
molFiles.add(count++, mol);
jTextArea1.append("Attaching file: " + QueryFileName.getName() + "." + NEW_LINE);
} catch (Exception ex) {
Logger.getLogger(SMSDGUI.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(SMSDFrame.class.getName()).log(Level.SEVERE, null, ex);
}
break;
case "TargetFile":
Expand All @@ -557,7 +557,7 @@ private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS
molFiles.add(count++, mol);
jTextArea1.append("Attaching file: " + TargetFileName.getName() + "." + NEW_LINE);
} catch (Exception ex) {
Logger.getLogger(SMSDGUI.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(SMSDFrame.class.getName()).log(Level.SEVERE, null, ex);
}
break;
}
Expand Down Expand Up @@ -609,7 +609,7 @@ public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
new SMSDGUI().setVisible(true);
new SMSDFrame().setVisible(true);

}
});
Expand Down

0 comments on commit 08057bb

Please sign in to comment.