G
Gast
Gast
Moin 
Ich hätt da gern mal ein Problem, und zwar tritt mir an dieser Stelle:
dieser Fehler auf:
java.lang.NullPointerException
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at classes.dictionary.GlobalElements$1.dispatchEvent(GlobalElements.java:184)//an dieser Stelle bringt mir Eclipse nen link der mich auf die oben genannte Stelle verweisst.
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)
In paintImmediately null graphics
Also mag ja sein das ich doof bin, aber das einzige was in dieser Zeile noch null sein könnte wäre super oder wie??
Ich hätt da gern mal ein Problem, und zwar tritt mir an dieser Stelle:
Code:
if(event!=null)
{
try {
super.dispatchEvent(event); //hier tritt der Fehler auf
} catch (NullPointerException e) {
e.printStackTrace();
}
}
dieser Fehler auf:
java.lang.NullPointerException
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at classes.dictionary.GlobalElements$1.dispatchEvent(GlobalElements.java:184)//an dieser Stelle bringt mir Eclipse nen link der mich auf die oben genannte Stelle verweisst.
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)
In paintImmediately null graphics
Also mag ja sein das ich doof bin, aber das einzige was in dieser Zeile noch null sein könnte wäre super oder wie??