/** Marks, wether this date entry is used as a table cell. */ public void setUsedAsTableCell(boolean isCell) { if (isCell) { removeAll(); setBackground(moneyField.getBackground()); moneyField.setBorder(null); add("East", moneyField); add(Box.createHorizontalStrut(GUI.HorizontalLabelDistance)); add(currencyLabel); } }
/** Border delegation. */ public void setBorder(Border border) { if (guiInitialized) { moneyField.setBorder(border); } }