I have a code using AWT graphics and applets.
public class Draw extends Applet{
public void paint(Graphics g){
g.drawLine(10,10,20,10);
}
}
The code above draws a line of 10 units. I am not really sure which unit is the one being used by default. However, I am looking to draw a 10mm line. Finally I would be exporting this output as a PDF and I need the PDF to have a line of required length in mm. How can this be achieved? Thanks in advance.