JDialog loadDialog = loadView.buildDialog();
Util.locateOnScreenCenter(loadDialog);
loadDialog.setVisible(true);
final PackageProductionViewHandler packageProductionViewHandler = new PackageProductionViewHandler();
PackageProductionView packageProductionView = new PackageProductionView(
packageProductionViewHandler);
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame jFrame = new JFrame("Produksjonsstatistikk");
jFrame.setExtendedState(Frame.MAXIMIZED_BOTH);
jFrame.setIconImage(IconEnum.ICON_UGLAND_BIG.getIcon().getImage());
jFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
WindowInterface frame = new JFrameAdapter(jFrame);
frame.add(packageProductionView.buildPanel());
Timer t = new javax.swing.Timer(10000, new ActionListener() {
public void actionPerformed(ActionEvent e) {
packageProductionViewHandler.refresh();
}
});
t.start();
frame.setVisible(true);