Page MenuHomec4science

ClientApp.java
No OneTemporary

File Metadata

Created
Thu, Jan 30, 23:25

ClientApp.java

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UnsupportedLookAndFeelException;
import ui.GUI;
import utils.ClientProperties;
public class ClientApp {
private final static Logger LOGGER = Logger.getLogger(ClientApp.class.getName());
public static void main(String args[]) {
// Handler handler = new ConsoleHandler();
// handler.setLevel(Level.FINEST);
// Logger.getLogger("").addHandler(handler);
// set LookAndFeel
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 e) {
LOGGER.log(Level.SEVERE, null, e);
} catch (InstantiationException e) {
LOGGER.log(Level.SEVERE, null, e);
} catch (IllegalAccessException e) {
LOGGER.log(Level.SEVERE, null, e);
} catch (UnsupportedLookAndFeelException e) {
LOGGER.log(Level.SEVERE, null, e);
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
// get client configuration
ClientProperties props = new ClientProperties("config/config_client.fry.properties");
// ClientProperties props = new ClientProperties("config/config_client.properties");
new GUI(props).setVisible(true);
}
});
}
}

Event Timeline