Custom cellrenderer with wrong getColumn [message #593874] |
Fri, 06 March 2009 15:06 |
David F. Messages: 12 Registered: July 2009 |
Junior Member |
|
|
Hello,
I try to customize the nebula grid to display a particular class called
MyClass.
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 ?
Thanks
David
|
|
|
Powered by
FUDForum. Page generated in 0.02359 seconds