I just wanted to know how to draw a thick line and also can anyone tell how drawArc works , in know how to make it work (x,y,width,height,startAngle,Arcangle) but i cant figure it out. Line just arc in ways i dont really understand. Thanks.
tdizzle342
0
Newbie Poster
Recommended Answers
Jump to PostRun this code below. See the comments for an explanation. This should help understand what you need to use.
import javax.swing.*; import java.awt.*; class TestPanel extends JPanel { //paint function public void paint(Graphics g) { //cast to Graphics2D Graphics2D g2D = (Graphics2D)(g); //set stroke int lineWidth = …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.