Re: Checkboxes in a combobox popup

2013-09-16 Thread Werner Lehmann
Never mind. I tried to cut some corners reusing a combobox for a checkbox list popup but this got too complicated. I am using a ComboBoxBase extending class now. Unfortunately it is still quite hard to determine a useful listview size for the popup. The original combobox uses package private

Re: Checkboxes in a combobox popup

2013-09-16 Thread Werner Lehmann
Jasper, a listview does not seem to use a ScrollPane. That's what its virtualization effort is about, using the VirtualFlow instead. Or do you mean I should nest the popup listview in a scrollpane? The MenuButton approach would be completely different and seems to have a few disadvantages

Re: Checkboxes in a combobox popup

2013-09-16 Thread Jasper Potts
You could try http://docs.oracle.com/javafx/2/api/javafx/scene/control/ScrollPane.html#setFitToWidth(boolean) Or what about using MenuButton with check box menu items? Jasper On Sep 16, 2013, at 5:44 AM, Werner Lehmann lehm...@media-interactive.de wrote: Never mind. I tried to cut some

Checkboxes in a combobox popup

2013-09-13 Thread Werner Lehmann
Hi, I am displaying checkboxes in the popup of a combobox via custom cell factory. Only problem is that a click on the checkbox actually hides the popup, even before that checkbox was selected. As I can see, the combobox skin has a MOUSE_PRESSED event filter which hides the popup. Current