Wenn ich dispose() für ein Form oder Dialog-Fenster aufrufe, in dem ein CalendarPopUp enthalten ist, wird setGlassPane() in JFrame eine NPE. Keine Anhnung warum, zumal die GlassPane ja beim Erzeugen des Popup über getGlassPane() ausgelesen wird. Da sollte doch nicht schiefgehen.
Caused by: java.lang.NullPointerException
at javax.swing.JFrame.setGlassPane(Unknown Source)
at de.guibuilder.framework.GuiCalendarPopup$CalendarPopup.hide(GuiCalendarPopup.java:207)
at java.awt.Window$1DisposeAction.run(Unknown Source)
at java.awt.Window.doDispose(Unknown Source)
at java.awt.Window.dispose(Unknown Source)
at java.awt.Window.disposeImpl(Unknown Source)
at java.awt.Window$1DisposeAction.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)