• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

Changing a thickness of a line

How can I draw lines, rectangles, oval etc. with different thickness? Currently, I am using the drawLine()method of the Graphics class.
0
asukai
Asked:
asukai
1 Solution
 
CEHJCommented:

Graphics2D g = (Graphics2D)_g; // _g is ref to Graphics
g.setStroke(new BasicStroke(5.f));
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now