简体   繁体   中英

SWT Combo and CCombo as CellEditor

CCombo

Why is the last item blank? I only have 3 items (it's a tri-state boolean editor).


COMBO1

Can a CCombo achieve this solid Combo look and feel?


Combo2

As a combo cell editor, I would prefer the regular Combo , BUT:
Can this Combo be used as CellEditor , while fitting the table row height? (maybe making the Font smaller?)

The default visible item count for CCombo is 5, try calling setVisibleItemCount(3) .

CCombo does not support much customization. It always sets the same colors for the list and the text for example.

The look of Combo varies a lot between platforms, the Mac version might look odd in a table column. Combo does support setting the font but I don't know if that would work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM