try { ArrayList lookAndFeels = new ArrayList(); String temp = "."; String temp2; int i=1; while (temp!= null && temp.length()>0){ temp = getFirstAttrbuteByTagName(new String[] {"options", "lookandfeels", "laf" + i, "value"}); ; if (temp!= null && temp.length()>0){ temp2 = getFirstAttrbuteByTagName(new String[] {"options", "lookandfeels", "laf" + i, "name"}); ; lookAndFeels.add(new LookAFeel(temp2, temp)); } i++; } return (LookAFeel[])lookAndFeels.toArray(new LookAFeel[lookAndFeels.size()]);
try { ArrayList lookAndFeels = new ArrayList(); String temp = "."; String temp2; int i = 1; while (temp != null && temp.length() > 0) { temp = propertyHandler.get("options_lookandfeels_laf" + i + "_value"); if (temp.length() > 0) { temp2 = propertyHandler.get("options_lookandfeels_laf" + i + "_name"); lookAndFeels.add(new LookAFeel(temp2, temp)); } i++; } return (LookAFeel[]) lookAndFeels .toArray(new LookAFeel[lookAndFeels.size()]);
    public LookAFeel[] getLookAndFeels() {        try {            ArrayList lookAndFeels = new ArrayList();            String temp = ".";            String temp2;            int i=1;            while (temp!= null && temp.length()>0){                temp = getFirstAttrbuteByTagName(new String[] {"options",                    "lookandfeels", "laf" + i, "value"}); ;                if (temp!= null && temp.length()>0){                    temp2 = getFirstAttrbuteByTagName(new String[] {"options",                        "lookandfeels", "laf" + i, "name"}); ;                    lookAndFeels.add(new LookAFeel(temp2, temp));                }                i++;            }            return (LookAFeel[])lookAndFeels.toArray(new LookAFeel[lookAndFeels.size()]);        }        catch (Exception e) {            AppleJuiceDialog.rewriteProperties = true;            if (logger.isEnabledFor(Level.ERROR)) {                logger.error(PROPERTIES_ERROR_MESSAGE, e);            }            AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false);        }        return null;    }