/Users/lyon/j4p/src/bookExamples/ch26Graphics/draw2d/Point2d.java

1    package bookExamples.ch26Graphics.draw2d; 
2     
3     
4    import java.awt.*; 
5     
6    class Point2d extends Shape { 
7        int x1 = 0; 
8        int y1 = 0; 
9     
10       public void paint(Graphics g) { 
11           g.drawLine(x1, y1, x1 + 1, y1 + 1); 
12       } 
13   }