private void doRowData() { tableModel.removeAllRows(); for (int i = 0, j = font.getStartIndex(); i < font.getCharCount(); i++, j++) { FontCharacter fc = font.getCharacter(i); String hexVal = (Integer.toHexString(j)).toUpperCase(); if (hexVal.length() == 1) hexVal = "0" + hexVal; String asciiC = ""; if (j >= 32 && j < 127) { asciiC = "" + (char) j; } Object[] tableData = {"" + j, "0x" + hexVal, asciiC, "" + fc.getWidth(), fc.getComment()}; tableModel.addRow(tableData); } charTable.setRowSelectionInterval(0, 0); }