more string builders 1

This commit is contained in:
2015-05-20 15:01:58 +02:00
parent 0670f0e36f
commit 18592b7a72
21 changed files with 357 additions and 294 deletions
@@ -124,11 +124,12 @@ public class DumpViewPanel extends JPanel {
if (address != -1) {
int b2 = b & 0xff;
selectedByteInfo.setText("Addr: " + Helper.padZeros(address, 8)
+ " Hex: " + Helper.padZeros(Integer.toHexString(b2), 2)
selectedByteInfo.setText("Addr: " + String.format("%08X", address)
+ " Hex: " + String.format("%02X", b)
+ " Dec: " + b2
+ " Bin: " + Helper.padZeros(Integer.toBinaryString(b2), 8)
+ " Ascii: " + (char) b2);
+ " Ascii: " + (char) b2
);
} else {
selectedByteInfo.setText("-");
}