this.adj=adj; this.opp=opp; System.out.println("in constructor for triangle"+adj+opp);
g.drawLine(100,100,100+adj,100); g.drawLine(100+adj,100,100+adj,100+opp); g.drawLine(100+adj,100+opp,100,100); System.out.println("In paint");
System.out.println("in triangle");