double power = Double.parseDouble(temp);
double power = 2.2; try{ power = Double.parseDouble(temp); } catch (NumberFormatException nfE) { if (logger.isEnabledFor(Level.ERROR)) logger.error("Unbehandelte Exception", nfE); ratio.setText("2.2"); }
    void btnPdl_actionPerformed(ActionEvent e) {        try        {            Object[] selectedItems = parentPanel.getSelectedDownloadItems();            if (selectedItems != null && selectedItems.length != 0)            {                int powerDownload = 0;                if (!btnInaktiv.isSelected())                {                    String temp = ratio.getText();                    double power = Double.parseDouble(temp);                    powerDownload = (int) (power * 10 - 10);                }                ArrayList temp = new ArrayList();                for (int i = 0; i < selectedItems.length; i++)                {                    if (selectedItems[i].getClass() == DownloadMainNode.class)                    {                        temp.add(new Integer(((DownloadMainNode) selectedItems[i]).getDownloadDO().getId()));                    }                }                int[] ids = new int[temp.size()];                for (int i=0; i<temp.size(); i++){                    ids[i] = ((Integer)temp.get(i)).intValue();                }                ApplejuiceFassade.getInstance().setPowerDownload(ids, powerDownload);                if (btnAktiv.isSelected()){                    SoundPlayer.getInstance().playSound(SoundPlayer.POWER);                }            }        }        catch (Exception ex)        {            if (logger.isEnabledFor(Level.ERROR))                logger.error("Unbehandelte Exception", ex);        }    }