I have a Main Frame which on top of sits a Main Panel. Its on top of this panel that all other panels are being created and added. I want to use a JLayeredPane to pop up a notify box of events that happen within the app. Using this code in that Main Panel...
then when I run the app I receive this error...
Exception in
thread "AWT-EventQueue-0" java.lang.NullPointerException
at gui.MainPanel.<init>(MainPanel.java:47)
at gui.MainFrame.createComponents(MainFrame.java:38)
Where line 47 is the first call to JLayeredPane...
Any ideas?