Page MenuHomec4science

CertifiedInstitutionApp.java
No OneTemporary

File Metadata

Created
Tue, Jan 7, 00:24

CertifiedInstitutionApp.java

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UnsupportedLookAndFeelException;
import ui.GUI;
import utils.CertifiedInstitutionProperties;
public class CertifiedInstitutionApp {
public static void main(String args[]) {
Logger logger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
logger.setLevel(Level.FINEST);
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Windows".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(GUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
ex.printStackTrace();
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
CertifiedInstitutionProperties props = new CertifiedInstitutionProperties("config/config_CI.fry.properties");
// CertifiedInstitutionProperties props = new CertifiedInstitutionProperties("config/config_CI.properties");
new GUI(props).setVisible(true);
}
});
}
}

Event Timeline