Draw a point or a dot.

Could anyone explain me as to how to draw a dot on a JPanel?
Will, [fillRect(x,y,1,1)], this method draw a dot?
If no, please help me with this. Thank you.