DecimalFormat dfKomma = new DecimalFormat();DecimalFormatSymbols dsfKomma = dfKomma.getDecimalFormatSymbols();dsfKomma.setDecimalSeparator(',');dsfKomma.setGroupingSeparator('.');dfKomma.applyPattern("#.###0,0##");
DecimalFormat dfPoint = new DecimalFormat();DecimalFormatSymbols dsfPoint = dfPoint.getDecimalFormatSymbols();dsfPoint.setDecimalSeparator('.');dsfPoint.setGroupingSeparator(',');dfPoint.applyPattern("#,###0.0##");