Rouven: NullPointerException

Beitrag lesen

Hello,

Und dabei ist die Zeile "g.FillRect(326,50,3,300);" gelb hinterlegt.

okay, das legt also nah, dass du zeichneX mit null als Parameter aufgerufen hast - da es sich wohl nicht um die Standard paint-Methode handelt also die Frage: woher nimmst du das Graphics-Objekt, mit dem du die Methode aufrufst?

MfG
Rouven

--
-------------------
sh:| fo:} ch:? rl:( br:& n4:{ ie:| mo:} va:) js:| de:] zu:| fl:( ss:) ls:& (SelfCode)
Buy when there's blood running in the street and sell when everyone is pounding at your door, clawing to own your equities  --  Wisdom on Wallstreet