Can you increase line thickness when using Java Graphics for an applet? I don't believe that BasicStroke works [duplicate]
问题 This question already has answers here : Java2D: Increase the line width (2 answers) Closed 6 years ago . I am having trouble adjusting line thickness. Can I do that in Graphics or do i have to do it in Graphics2D? If so, how do I alter the program to make it run? Thanks! import java.applet.Applet; import java.awt.*; public class myAppletNumberOne extends Applet { public void paint (Graphics page) { //Something here??? } } 回答1: Yes you have to do it in Graphics2D, but that's hardly an issue,