I am writing a program that asks a user how many sides a shape has. then it draws the shape on screen . I've created a polygon shape unintilized then after the user has decided how many sides the shape has got . I then initialize it with the values, but when i try to draw it. It produces the srror message
C:\DocumentsandSettings\IainPalmer
\Java2dGraphics\src\java2dgraphics
\TriangleTest.java:317:
local variable s is accessed from within inner class;
needs to be declared final
g.drawPolygon(s);
1 error
here is the code whic is causing me problems
and