B4J Question combobox , how to set visible raws count programatically

Daestrum

Expert
Licensed User
Longtime User
You can get strange results from this as it seems to depend on the order you do things.

combo created in designer in both cases

1,
load layout
show form
add items
try to resize - size is wrong (seems to be just over 1 line high)
no resize - combo shows correct number of rows from designer.

2,
load layout
add items
show form
resize works as expected.

Maybe someone could confirm this
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

have tested (using latest version = JavaFX 8u40) "load layout, show form, add items, change visible rowcount" without issues.

See attached example.
 

Attachments

  • Ex4SetVisibleRowCount.zip
    2 KB · Views: 287
Upvote 0
Top