1. How would i go about filling a triangle made by connecting 3 points stackoverflow.comim interested i just finished writing a program and one of the functions that has been implemented is drawing a line with a triangle at the end (forming an arrow). How ... |
2. draw a triangle coderanch.comLet me suggest that your syntax error isn't about triangles or polygons per se, but about how to create an array, initialize it and pass it as an argument to a constructor or method. Here are three ways to do that. import java.awt.*; public class A { public static void main(String[] args) { int[] xs0 = new int[3]; int[] ys0 = ... |
3. How to draw triangle in paintcomponent coderanch.com |
4. i want to draw an equilateral sierpinski triangle. coderanch.comi want my triangle to be equivalent and not isoceles. i need help with this code. [code] import java.awt.*; import javax.swing.*; public class Triangle { /**make a new Triangle*/ public Triangle() { Frame f = new Frame(" MCS GroupX CHAOS GAME "); f.setBackground(Color.pink); //add STPane to frame f.add(new STPane()); f.pack(); f.setVisible(true); } public static void main(String[] args){ //make a new frame ... |