int column) { if (isSelected) { this.setForeground(table.getSelectionForeground()); this.setForeground(table.getForeground()); this.setSelected(((value != null) && (Boolean) value)); this.setEnabled(table.isEnabled()); .getFocusStrength(hasFocus)); this.setBorder(border); } else { this.setBorder(BooleanRenderer.noFocusBorder); this.setBorder(UIManager .getBorder("Table.focusCellHighlightBorder")); } else { this.setBorder(BooleanRenderer.noFocusBorder); this.setOpaque(false);
int column) { if (isSelected) { this.setForeground(table.getSelectionForeground()); this.setForeground(table.getForeground()); this.setSelected(((value != null) && ((Boolean) value) .booleanValue())); this.setEnabled(table.isEnabled()); .getFocusStrength(hasFocus)); this.setBorder(border); } else { this.setBorder(BooleanRenderer.noFocusBorder); this.setBorder(UIManager .getBorder("Table.focusCellHighlightBorder")); } else { this.setBorder(BooleanRenderer.noFocusBorder); this.setOpaque(false);
/** * Creates a new renderer for boolean columns. */ public BooleanRenderer() { super(); this.setHorizontalAlignment(SwingConstants.CENTER); this.setBorderPainted(true); }
/** * Creates a new renderer for boolean columns. */ public BooleanRenderer() { super(); this.setHorizontalAlignment(SwingConstants.CENTER); this.setBorderPainted(true); }