// Available in download http://mindprod.com/products1.html#COMMON11
import com.mindprod.common11.StringTools;
...
// Prepare unsigned hex string padded out to 4 places with lead zeroes.
final String display = StringTools.toLzHexString( value, 4 /* desired length */ );