ws.setEnabled(i != BATTLE || isBatFontWidthHacked());
    public void actionPerformed(ActionEvent ae)    {        if (ae.getActionCommand().equals("fontSelector"))        {            charSelector.repaint();            updateDrawingArea();            prev.setEbFont(fontSelector.getSelectedIndex());            prev.repaint();        }        else if (ae.getActionCommand().equals("charSelector"))        {            updateDrawingArea();        }        else if (ae.getActionCommand().equals("charDrawingArea"))        {            getSelectedChar().setImage(drawingArea.getIntArrImage());            charSelector.repaintCurrent();        }        else if (ae.getActionCommand().equals("apply"))        {            for (int i = 0; i < fonts.length; i++)                fonts[i].writeInfo();            //            /* TODO: DEBUG */            //            readFromRom(this);            //            charSelector.repaint();            //            updateDrawingArea();        }        else if (ae.getActionCommand().equals("close"))        {            hide();        }        //undo        else if (ae.getActionCommand().equals("undo"))        {            drawingArea.undo();            drawingArea.repaint();        }        //copy&paste stuff        else if (ae.getActionCommand().equals("cut"))        {            drawingArea.cut();            drawingArea.repaint();        }        else if (ae.getActionCommand().equals("copy"))        {            drawingArea.copy();            drawingArea.repaint();        }        else if (ae.getActionCommand().equals("paste"))        {            drawingArea.paste();            drawingArea.repaint();        }        else if (ae.getActionCommand().equals("delete"))        {            drawingArea.delete();            drawingArea.repaint();        }        else if (ae.getActionCommand().equals("hFlip"))        {            drawingArea.doHFlip();        }        else if (ae.getActionCommand().equals("vFlip"))        {            drawingArea.doVFlip();        }        else if (ae.getActionCommand().equals("importFont"))        {            importFont(getCurrentFont());            charSelector.repaint();            updateDrawingArea();        }        else if (ae.getActionCommand().equals("exportFont"))        {            exportFont(getCurrentFont());        }    }