createFromOptions(); me.setBrush(myBrush); } else if (e.getActionCommand().equals("Close")) {
} else if (source == bCancel) {
    public void actionPerformed(ActionEvent e) {        Object source = e.getSource();        if (source == bApply) {            bApply.setEnabled(false);            createFromOptions();            me.setBrush(myBrush);        } else if (e.getActionCommand().equals("Close")) {            dispose();        } else if (source == cbRandomBrush) {            sRandomAmount.setEnabled(cbRandomBrush.isSelected());        }    }