How do I draw a Triangle in java?
807589Oct 25 2008 — edited Oct 25 2008Yes, 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