setColor (Color.orange); g.drawLine(50, 50, 150, 50);. This segment of code will print Love this Java! in blue and will then draw a line in orange.
確定! 回上一頁