System.out.println("textList action code failed"); return;
if (tmp.equals(tabShortNames[i])) { currentList = i; currentSelection = Integer.parseInt(ae.getActionCommand() .substring(11)); showInfo(); return; }
    public void actionPerformed(ActionEvent ae)    {        if (ae.getActionCommand().startsWith("textList"))        {            String tmp = ae.getActionCommand().substring(8, 11);            if (tmp.equals("tpt"))                currentList = TPT;            else if (tmp.equals("raw"))                currentList = RAW;            else if (tmp.equals("exp"))                currentList = EXP;            else            {                System.out.println("textList action code failed");                return;            }            currentSelection = Integer.parseInt(ae.getActionCommand()                .substring(11));            showInfo();        }        else if (ae.getActionCommand().equals("copy"))        {            ta.copy();        }        else if (ae.getActionCommand().equals("cut"))        {            ta.cut();        }        else if (ae.getActionCommand().equals("paste"))        {            ta.paste();        }        else if (ae.getActionCommand().equals("delete"))        {            ta.replaceSelection("");        }        else if(ae.getActionCommand().equals("undo"))        {            undo();        }        else if(ae.getActionCommand().equals("redo"))        {            redo();        }        else if (ae.getActionCommand().equals("useComp"))        {            updateCurrSize();        }        else if (ae.getActionCommand().equals("find"))        {            initFindWindow();            findWindow.setVisible(true);        }        else if (ae.getActionCommand().equals("findNext"))        {            find();        }        else if (ae.getActionCommand().equals("goto"))        {            if (!gotoDialogInited)            {                gotoDialogInited = true;                initGotoDialog();            }            gotoDialog.setVisible(true);        }        else if (ae.getActionCommand().equals("codesOnly"))        {            String text = useComp.isSelected()                && cc.getStringLength(ta.getText(), true) > 0 ? cc                .compressString(ta.getText()) : ta.getText();            String tmp = cc.deparseString(text);            if (isCodesOnly())            {                ta.setText(cc.parseCodesOnly(tmp));            }            else            {                ta.setText(cc.parseString(tmp));            }        }        else if (ae.getActionCommand().equals("showCodeHelp"))        {            if (codeHelp == null)                initCodeHelp();            codeHelp.setVisible(true);            updateCodeHelp();        }        else if (ae.getActionCommand().equals("showPreview"))        {            initPreview();            previewDialog.setVisible(true);            updatePreview();        }        else if (ae.getActionCommand().equals("showEntry"))        {            showEntry();        }        else if (ae.getActionCommand().equalsIgnoreCase("close"))        {            hide();        }        else if (ae.getActionCommand().equalsIgnoreCase("apply"))        {            saveInfo();        }    }