@@ -0,0 +1,664 @@
+import javax.swing.*;%0Aimport java.awt.*;%0Aimport javax.swing.border.*;%0A%0Apublic class mainPage extends JFrame%7B%0A    public mainPage(int i)%7B%0A      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A      Dimension wndSize = new Dimension(800, 500);%0A      setSize(wndSize);%0A      setMinimumSize(wndSize);%0A      setMaximumSize(wndSize);%0A      setResizable(false);%0A      pack();%0A      if(i == 0)%7B%0A        add(new panelMainPage());%0A        setTitle(%22Main Page%22);%0A      %7D%0A      else if (i == 1)%7B%0A        add(new panelResources());%0A        setTitle(%22Welcome%22);%0A      %7D%0A%0A      setVisible(true);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A       new mainPage(1);%0A   %7D%0A%7D%0A

Create mainPage.java