Increase height of table rows slightly

This commit is contained in:
drdev
2014-01-14 03:55:54 +00:00
parent 62bfb66e11
commit 13a6310ac0
3 changed files with 5 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ public class ColorSetRenderer extends ItemCellRenderer {
final int cellWidth = this.getWidth();
int x = padding0;
int y = padding0;
int y = padding0 + 1;
final int cntGlyphs = cs.countColors();
final int offsetIfNoSpace = cntGlyphs > 1 ? (cellWidth - padding0 - elemtWidth) / (cntGlyphs - 1) : elemtWidth + elemtGap;

View File

@@ -128,7 +128,7 @@ public final class ItemListView<T extends InventoryItem> extends ItemView<T> {
this.table.setFont(FSkin.getFont(12));
this.table.setBorder((Border)null);
this.table.getTableHeader().setBorder(null);
this.table.setRowHeight(18);
this.table.setRowHeight(20);
this.table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
// prevent tables from intercepting tab focus traversals

View File

@@ -99,7 +99,7 @@ public class ManaCostRenderer extends ItemCellRenderer {
*/
private void drawCost(final Graphics g, ManaCost value, final int padding, final int cellWidth) {
int x = padding;
int y = padding0;
int y = padding0 + 1;
final int genericManaCost = value.getGenericCost();
final int xManaCosts = value.countX();
final boolean hasGeneric = (genericManaCost > 0) || this.v1.isPureGeneric();