Re: Overwritten Boolean in table cell




"hiwa" <HGA03630@xxxxxxxxxxx> wrote in message
news:1135823593.968106.294480@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> A stab in the dark:
> Your cell renderer method doesn't return a check box.
>

Yep, I tried that. Same result. The JCheckbox is only visible is you
MouseDown on the cell.

I tried setBackground(Color.WHITE) and even that overwrote the checkbox. I
have to let the default renderer paint it or it just doesn't happen right.

I think I already tried extending default renderer and using
super.setBackground() but it was the same result.


.



Relevant Pages

  • Re: How can I render a JList cell with JCheckBox?
    ... > public class CheckBoxCellRenderer extends JCheckBox implements ... > super(); ... A Renderer is a component that is never really "present" in the ... If what you want is an editable JList with a JCheckbox as the editor, ...
    (comp.lang.java.gui)
  • Re: How do I put a JCheckBox into a cell of a JTable?
    ... > my own Renderer class. ... > public Component prepareRenderer(TableCellRenderer renderer, int row, ... > How can I extend this code with the necessary JCheckBox additions? ...
    (comp.lang.java.help)
  • Re: How do I put a JCheckBox into a cell of a JTable?
    ... > my own Renderer class. ... > public Component prepareRenderer(TableCellRenderer renderer, int row, ... > How can I extend this code with the necessary JCheckBox additions? ...
    (comp.lang.java.help)
  • Re: How do I put a JCheckBox into a cell of a JTable?
    ... > my own Renderer class. ... > How can I extend this code with the necessary JCheckBox additions? ... get the cell at that column/row from the model ... It should be a Boolean, ...
    (comp.lang.java.help)