null pointer exception remedy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • true blue
    New Member
    • Jul 2007
    • 8

    #1

    null pointer exception remedy

    hi ppl the code i had sent earlier works fine when <Graphics g=getGraphics() ;>
    is added in each loop ie the object has to be reinitialized again and again beats me why can anyone explain???(plz note all the if loops have to be replaced by while ones logical mistake)
Working...