Hi
I don`t know if this is the right place to post my topic but I really need help from you.
I have two questions that I can`t find any answers to them.
In java.awt package there is an graphics class this class is abstract class and within it a lot of abstract methods for example lets take drawOval method all I want to know:
1- when I override paint method of an component like this:
public void paint(Graphics g) { /*some code*/ }
If I write g.drawOval and give the method it`s parameter it`s really draw an oval how this happened when this method is abstract and it has no code within it ??? Is there are some default code in abstract methods or what??? And if this is true whrer to write this code ???
2- when I want to call paint method I have read that I should use repaint(). why? and how repaint call paint if I checked repaint source code & it does not call paint method??? and why I can`t just call paint method ???
I really don`t know if these questions are stupid but if they are or not please answer me cause I can`t do any thing except searching answers .....