diff --git a/src/Main.java b/src/Main.java index 51b157b..c21df79 100644 --- a/src/Main.java +++ b/src/Main.java @@ -4,29 +4,24 @@ import javax.swing.JFrame; import javax.swing.SwingUtilities; +import frames.MainFrame; import panels.*; public class Main { - - private static MainPanel posPane; - + + // ------------------------------------------------------------------------- + // public static void main(String[] args) { - // TODO Auto-generated method stub + + // ------------------------------------------------------------------------- + // SwingUtilities.invokeLater(new Runnable() { public void run() { - JFrame mainFrame = new JFrame("ToDo���X�g"); - mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - - // generate view - posPane = new MainPanel(); - Container contentPane = mainFrame.getContentPane(); - contentPane.add(posPane, BorderLayout.CENTER); - - // - mainFrame.pack(); - mainFrame.setVisible(true); + // generate window + JFrame mainFrame = new MainFrame(); } }); + // ------------------------------------------------------------------------- } }