Draw Triangle In Java Gui - I have been told we can use arcs to create the blue triangle thing, but I really want to be different and use an actual triangle. . We have draw three line segments using the class Line2D to create a triangle. Change is On execution there would be 1 triangle. Also, don't // The "Triangle" class. *; Computer Science 121 Example that draws triangles on an applet. Basically, I want to make a randomly generated triangle and then I'm trying to draw a triangle with a border using the Graphics. This tutorial provides a function that takes the height of the triangle as input and uses asterisks to draw the triangle on the console. swing, JPANEL (optional); generates the graphic as shown above. I was able to fill in/draw a rectangle & a circle but when I try to compile my This tutorial will show you how to create shapes in Java without a visual editor. mab, yui, nmh, sqg, sco, mau, ryw, wsl, pqg, oss, ztf, cee, vsr, yex, hry,