tag:blogger.com,1999:blog-6809771297766259367.post4785210402351170493..comments2024-06-22T19:13:54.726+12:00Comments on Software Development Journey: JavaFX App Development Part 2Anonymoushttp://www.blogger.com/profile/14583113629644552123noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6809771297766259367.post-89590293569776471692010-06-21T09:46:21.038+12:002010-06-21T09:46:21.038+12:00When you take over the cell factory you&#39;re tak...When you take over the cell factory you&#39;re taking over the rendering of all cells - empty or not. Null is a perfectly valid value to display, so we don&#39;t stop it, although we do block selection as we know it&#39;s not a populated row. Cell Factory creates a cell for every visible row in the ListView, so it&#39;s important to handle these edge cases.<br /><br />You can now update your post above regarding custom list cells :-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6809771297766259367.post-49280777009814341342010-06-21T09:42:10.699+12:002010-06-21T09:42:10.699+12:00Your empty string method (for the ListCell) did th...Your empty string method (for the ListCell) did the trick. Is it part of the ListView&#39;s design to allow null items (not selectable) to be displayed?Anonymoushttps://www.blogger.com/profile/14583113629644552123noreply@blogger.comtag:blogger.com,1999:blog-6809771297766259367.post-1854406499617694252010-06-21T07:59:55.014+12:002010-06-21T07:59:55.014+12:00It sounds like your custom cell factory might not ...It sounds like your custom cell factory might not be correct - why not do something like I did in this post here:<br />http://fxexperience.com/2010/06/javafx-checkboxtreeview/<br /><br />Note I actually test for null and put an empty string in the cell in that case.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6809771297766259367.post-26223396457834498242010-06-21T07:57:57.396+12:002010-06-21T07:57:57.396+12:00Jonathan - With the ListView it displays &quot;nul...Jonathan - With the ListView it displays &quot;null&quot; cells (non existing items) that shouldn&#39;t be displayed at all. These null cells are displayed with the text &quot;null&quot; after the existing items.<br /><br />Null cells do not appear if a cell factory isn&#39;t being used in the ListView.Anonymoushttps://www.blogger.com/profile/14583113629644552123noreply@blogger.comtag:blogger.com,1999:blog-6809771297766259367.post-84652925496735698412010-06-15T11:49:04.327+12:002010-06-15T11:49:04.327+12:00Can you provide any information about the trouble ...Can you provide any information about the trouble you&#39;re having with ListView/ListCell?Anonymousnoreply@blogger.com