Java Swing. PaintingComponent -
could tell me, how can pass variables (in case - a) paintcomponent? think way wrong:
class paintingcomponent extends jpanel { public void paintcomponent(graphics g, int a) { raster.setpixel( 12, a, clr ); }//paintcomponent(graphics g) }
there no way. thats how class hierarchies work, if want override method, has have same signature. thing a method call.
Comments
Post a Comment