imageFrame.setLocationRelativeTo(null);// Center the frame
imageFrame.setVisible(true);// Make the frame visible
}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");