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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -