@Override
    public void actionPerformed(ActionEvent e) {
        if(e.getSource().equals(finish)){
            ansname = name.getText();
            anstype = type.getText();
            ansx = xsize.getText();
            ansy = ysize.getText();
            if(tset == null){
                tset = new TileSet();
                //tset.setTile(0, new Tile(0, ""));
            }
            succeeded = true;
            setVisible(false);
        }
        if(e.getSource().equals(cancel)){
            succeeded = false;
            setVisible(false);
        }
        if(e.getSource().equals(tsetPathButton)){
            tset = operations.loadTileSet();
            
        }
    }