Can you attach a demo project to tinker a little? Sound like fun what you are doing/try to do
My code is rather tightly coupled with inheritance. A brief description of what I’m doing is..
1. I have a base frame with a flowpanel->
2.a frame with Label and combobox inside flow panel ->
3. A frame with label and combobox which loads a list selected and unselected filtering Boolean Columns from an sqlite table->
4. A frame with a Boolean filter labeled combobox which creates frames with buttons to set a Boolean column to false in sqlite table.
The idea is to select one of the items in the combobox which generates an sql statement for example item ‘favorites’ generates ... select * from mytable where favorite = 1
‘Non favorite’ gives select * from mytable Where favorite = 0
I keep track of how many items in each column are selected using an array .
Only items that will generate a non empty dataset are permitted in combobox.
There are frames with button added to the ancestor flowpanel for for each Boolean column. Only button frames corresponding to Sqlite table columns with selected Values are visible. Hence the strange behavior of flowpanel being too tall if some are hidden. Which I solve by changing their parent to the frame itself.
I constrain the controls to fit their captions usually. I often have nested frames that are descendants of same flowpanel ancestor.