Stefano,

A quick glance at the JavaFX ListView Javadoc (
https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ListView.html)
reveiled this very interesting section:

Customizing ListView Visuals

The visuals of the ListView can be entirely customized by replacing the
default cell factory
<https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ListView.html#cellFactoryProperty-->.
A cell factory is used to generate ListCell
<https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ListCell.html>
instances,
which are used to represent an item in the ListView. See the Cell
<https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/Cell.html>
class
documentation for a more complete description of how to write custom Cells.

I'm not a JavaFX expert, but I'm going to take an educated guess and say
that this might be what you're looking for :-)

Hope this helps,
Lukas

2015-04-26 12:03 GMT+02:00 <[email protected]>:

> Thank you for your fast answer.
>>
>
> Your suggestion solved the main problem: getting data into an
> ObservableList.
> But when I assign it to the ListView
>
> lstClienti.setItems(obsResult);
>
> this is what its content looks like:
>
> [+----------+---------+---------+------------------------------
> |CustomerId|FirstName|LastName |Company
> +----------+---------+---------+-------------------------------
> |         1|Luís     |Gonçalves|Embraer - Empresa Brasileira de
> +----------+---------+---------+-------------------------------
> |CustomerId|FirstName|LastName|Company|Address                |
> +----------+---------+--------+-------+-----------------------+
> |         2|Leonie   |Köhler  |{null} |Theodor-Heuss-Straße 34|
> +----------+---------+--------+-------+-----------------------+
>
> Am I missing some option in the ListView, maybe?
>
> --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to