Here you can find the source of getPercentFormatter()
private static NumberFormat getPercentFormatter()
//package com.java2s; //License from project: Apache License import java.text.DecimalFormat; import java.text.NumberFormat; public class Main { private static NumberFormat getPercentFormatter() { NumberFormat format = DecimalFormat.getPercentInstance(); format.setMinimumFractionDigits(1); format.setMaximumFractionDigits(1); return format; }//from w w w . jav a 2 s . co m }