This content has been marked as final. Show 3 replies
Eric Le Ponner wrote:I understand that putting the sample data there was meant for previewing. And once discovered by looking at the XML in a code editor, I removed those items.
Scene Builder puts some sample item strings in ChoiceBox, ComboBox... to
improve previewing experience.
However it currently does not offer a way to clear/edit items. That's a known limitation.
You can workaround this easily by clearing the "items" property manually in the FXML file.
However, I would not describe this as a "limitation". It's bad design, especially since, if you do not work with the FXML directly, but only through Scene Builder (and that's what we should be doing), you wouldn't really know that those items are there. Unless the user selects an option called something like "add sample data to FXML file", not sample data should be there.
Improving previewing experience can be done other ways than inserting "sample" XML into the FXML document. The preview runner can do this as it walks the scene graph, inserting sample data where it would prove useful. There is a "Show Sample Data" if you want to see data. Even that should not be putting the sample data into the FXML file.
The sample data just doesn't belong in the FXML, period.
Time to file a bug report.
Edited by: pfurbacher on Mar 14, 2013 2:59 PM