this.parent = parent;
    public BrushDialog(MapEditor editor, JFrame parent,            AbstractBrush currentBrush)    {        super(parent, "Brush Options", false);        this.parent = parent;        myBrush = currentBrush;        this.editor = editor;        init();        update();        pack();    }