To receive full credit your answer must use only one instance of a Java2D line and must use transforms.
You should make the following assumptions:
Do not show me any code other than the paintComponent method. Here is the beginning of the code:
public void paintComponent(Graphics g) { super.paintComponent(g); // work on a copy of the graphics context Graphics2D g2 = (Graphics2D)g.create(); // set up the dash in its own coordinate system Line2D tickmark = new Line2D.Double(0, 0, length, 0);