Fixed deprecation warning for "show()".

main version-2.1
Deryck Brown 3 years ago
parent 1bc91a2394
commit ae20dc2126
  1. 2
      Triangle.Compiler/src/main/java/Triangle/TreeDrawer/Drawer.java

@ -46,7 +46,7 @@ public class Drawer {
theDrawing = (DrawingTree) theAST.visit(layout, null); theDrawing = (DrawingTree) theAST.visit(layout, null);
theDrawing.position(new Point(2048, 10)); theDrawing.position(new Point(2048, 10));
frame.show(); frame.setVisible(true);
} }
public void paintAST(Graphics g) { public void paintAST(Graphics g) {