How to automatically wrap JavaFX 2 ListView?
java, javafx-2, listview, multiline
Solution
You can put a TextArea in the ListCell.graphicProperty(). This is usually used to set an icon in a list cell but can just as easy to set to any Node subclass.
Problem
How can I make an auto wrap ListView (multiline when the text is too long) in JavaFX 2? I know that if I put a `\n` to the string, it will be multiline, but the content is too dynamic. Or is there a good way to put `\n` to the String after every `xyz` pixel length?