Dear JavaRanch,
i recently stepped into the world of
java programming leaving my short by enjoyable Python roots behind.
it was not long untill i started to bump into difficulties.
like now for instance, i'm trying to make a ball appear on mouseclick that circles around the cursor.
now i got 2 things that i cant stand.
1, the offset of the ball is odd, its not located in the middle and i tried adding/substracting half of its size to the X,Y.
2, how do i make the ball (or a multiplicity of which) appear without inviking errors like NullPointerExeption.
here comes my code, dont know bricks about text formatting on forums yet
sorry for the mess and the lack of commenting.
and for the Skwer object that i want to make appear.
now where and how do i get n error free ball on my screen by the click of a mouse?