|Custom cellrenderer with wrong getColumn [message #62908]
||Fri, 06 March 2009 10:06
| David F.
Registered: July 2009
I try to customize the nebula grid to display a particular class called
So I have make my own CellRenderer and my own GridItem and I use them with
the nebula grid. My CellRenderer extends DefaultCellRenderer and use an
ArrayList of MyClass to store data (like the GridItem for texts or images).
But in my own paint(GC gc, Object value) method, when I ask to getColumn()
the number of the current column, I always have the number of columns
(like a count).
When I debug step by step, I can see that:
- getBounds is correct
- getRow is correct
- getColumn is wrong
Have you any idea of my error ?
Powered by FUDForum
. Page generated in 0.07562 seconds