/** 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); } }
/** Gets BackgroundColor of this entry */ public Color getBackground(Color color) { return moneyField.getBackground(); }