Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I draw a Triangle in java?

807589Oct 25 2008 — edited Oct 25 2008
Yes, I know it has probably already been posted but I couldnt really find anything like what I am looking for.

I know how to do basic things in Java, I can read from and write to the command prompt, create objects, use inheritance, etc. But have yet to do any graphical programming.

All I wish to know is how to draw a triangle. i.e., hard code or pass in 3 points/apex's and then connect those points so that I have an unfilled triangle.

If someone could point me in the right direction or post a really basic piece of code that does what I asked above, that would be great, I tend to learn a lot from pulling apart code and modifying it.

Trent
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2008
Added on Oct 25 2008
4 comments
105 views