imageFrame.setLocationRelativeTo(null);// Center the frame
imageFrame.setVisible(true);// Make the frame visible
// Write the argument to the output stream
writer.println(argument);
writer.flush();
}catch(IOExceptionex){
ex.printStackTrace();
outputTextArea.append("Molecule display failed. The provided molecule name may be incorrect or does not match any records in the PubChem database.\n\n");