java - Passing an abstract Graphics object to paintComponent() -


When using the Paint Companent () method for JPNL, the parameter that has been passed to JavaScript in Java is an object from the abstract class.

Graphics. Using an intangible object does not make sense, I actually believe in the object which is from a solid subclass of graphics

My question is, what is this solid subclass of graphics, and where is it? Was prepared?

  Public Zero Paint Head (Graphics G) {...}    

It should be

  sun.java2d.SunGraphics2D which is extended from Java.awt.Graphics2D   

one of the top-level components Should be referred, and the components of any child requests one from their parents unless parents can satisfy the request.

Comments