PennDraw.java
/**
     * This method cannot be called directly.
     */
This method cannot be called directly.
This method cannot be called directly .
public void actionPerformed(ActionEvent e) {
        FileDialog chooser = new FileDialog(PennDraw.frame, "Use a .png or .jpg extension", FileDialog.SAVE);
        chooser.setVisible(true);
        String filename = chooser.getFile();
        if (filename != null) {
            PennDraw.save(chooser.getDirectory() + File.separator + chooser.getFile());
        }
    }
public void actionPerformed ( ActionEvent e ) { FileDialog chooser = new FileDialog ( PennDraw . frame , "Use a .png or .jpg extension" , FileDialog . SAVE ) ; chooser . setVisible ( true ) ; String filename = chooser . getFile ( ) ; if ( filename != null ) { PennDraw . save ( chooser . getDirectory ( ) + File . separator + chooser . getFile ( ) ) ; } }
This method cannot be called directly.
This method cannot be called directly .