This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
The following is what is diplayed after I compile my project and then try to run it. It will compile without any errors but when I press run this comes up.
Exception in thread "main" java.lang.NullPointerException at java.awt.Container.addImpl(Container.java:1019) at java.awt.Container.add(Container.java:351) at MainPage.<init>(MainPage.java:36) at startApp.<init>(startApp.java:37) at startApp.main(startApp.java:70)