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

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -