else if(e.getActionCommand().equals("Load...")) { try { openMap();  } catch (Exception e1) { e1.printStackTrace(); JOptionPane.showMessageDialog(this, e1.toString(), "Load Brush", JOptionPane.WARNING_MESSAGE); } repaint(); }
    public void actionPerformed(ActionEvent e) {        Object source = e.getSource();        if (source == bOk) {            createFromOptions();            editor.setBrush(myBrush);            dispose();        }        else if (source == bApply) {            createFromOptions();            editor.setBrush(myBrush);            bApply.setEnabled(false);        }        else if (source == bCancel) {            dispose();        }        else if (source == cbRandomBrush) {            sRandomAmount.setEnabled(cbRandomBrush.isSelected());        }    }