Saturday, October 30, 2004 08:46 AM
I am currently creating a
.And i have created the "Main Frame(Jframe)" , "Shape Properties(JDialog)" and "Drawing Area(JPanel)" in seperate packages.
When the user clicks on the Draw Area (say that he has selected to draw a line), the "LineProperties Dialog" opens and when he enters the line thickness,line location and clicks "ok" I call the "paint(Graphics g)" method which is in the "Drawing Area(JPanel)" .
But it throws a NullPointer Exception" .
Or even simply "How do I call the paint method which is in another Package?"