JComponent getRenderer(PropertyDisplayer_Inline inline) { inGetRenderer = true; JComponent result = rfactory(inline).getRenderer(inline.getProperty()); if (inline.isTableUI()) { //Actually want an empty border, not null - some components treat //a null border as an invitation to improvise result.setBorder(BorderFactory.createEmptyBorder(0,0,0,0)); } inGetRenderer = false; return result; }
JComponent getRenderer(PropertyDisplayer_Inline inline) { inGetRenderer = true; JComponent result = rfactory(inline).getRenderer(inline.getProperty()); if (inline.isTableUI()) { //Actually want an empty border, not null - some components treat //a null border as an invitation to improvise result.setBorder(BorderFactory.createEmptyBorder(0,0,0,0)); } inGetRenderer = false; return result; }
JComponent getRenderer(PropertyDisplayer_Inline inline) { inGetRenderer = true; JComponent result = rfactory(inline).getRenderer(inline.getProperty()); if (inline.isTableUI() && null == result.getBorder() ) { //Actually want an empty border, not null - some components treat //a null border as an invitation to improvise result.setBorder(BorderFactory.createEmptyBorder()); } inGetRenderer = false; return result; }
result = factory().getRenderer((Property) fd);
result = factory().getRenderer((Property) fd); if (selected) { result.setBackground (table.getSelectionBackground());
result = factory().getRenderer((Property) fd); if (selected) { result.setBackground (table.getSelectionBackground());