You mean extending TableViewCellRenderer instead of Label? That would be ok for this renderer. However i plan to add other renderers that are more complex, extending BoxPane for example, is that allowed in general?
----- Mail original ----- De: "Sandro Martini" <[email protected]> À: [email protected] Envoyé: Mardi 20 Décembre 2011 12:24:28 Objet: Re: NullPointerException when using Label as CellRenderer Hi, > No, it doesn't solve the issue. Yes, because it only solve the NullPointerException > I don't get NullPointerException anymore, but the renderer doesn't display > anything. Once again, calling layout() works around the problem. Yes, because the data structure used is initialized/reinitialized only during layout(), so at least force a call to it as a workaround should be enough > Here is my renderer. When layout() is commented, the column displays empty. I'm sorry but haven't enough time to look at the code in the right way ... can you try to use the classes I committed yesterday (in my additional test/minimal sample), and then see in your Renderer if you can do the same as in mine ? Tell me. Bye
