PolyDraw.java(static main method for Application mode)
public static void main(String [] args) {
PolyDraw aPD = new PolyDraw();
theApp = new Frame();
theApp.setSize(800,600);
theApp.setLayout(new BorderLayout());
aPD.init();
theApp.addWindowListener(aPD);
theApp.add(aPD, BorderLayout.CENTER);
theApp.show();
}
Previous slide
Next slide
Back to first slide
View graphic version