/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package my.pokeboard;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.UIManager;
//import javax.swing.JDialog;
import my.pokeboard.Views.PokeboardUI;
//import my.pokeboard.Views.ResourceDownloader;
/**
* @author Michael
*/
public class Main
{
/**
* @param args
* the command line arguments
*/
public static void main(String args[])
{
setApplicationStyle();
EventQueue.invokeLater(() -> {
try
{
//TODO Add behavior for launching the resource downloader
// JDialog dialog = new ResourceDownloader();
JFrame frame = new PokeboardUI();
frame.setVisible(true);
} catch (Exception e)
{
e.printStackTrace();
}
});
}
private static void setApplicationStyle()
{
try
{
UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
}
catch (ClassNotFoundException | InstantiationException | IllegalAccessException
| javax.swing.UnsupportedLookAndFeelException ex)
{
java.util.logging.Logger.getLogger(PokeboardUI.class.getName()).log(java.util.logging.Level.INFO, null, ex);
}
}
}