java - How to reduce the default size(height of a item) of a Combo box in SWT? -
the size of combo box created swt has fixed size(height of item cannot changed). there way alter default height.? thought tried reducing font size of items, no success.
the short reply is: cannot explicitly set height of combo item.
like swt widgets, combo box uses native widget of os/window scheme , hence restricted respecive widgets capabilities. on windows item height adapts font size
combo.setfont( new font( combo.getdisplay(), "arial", 27, swt.none ) );
combo.setfont( new font( combo.getdisplay(), "arial", 7, swt.none ) );
but other platforms may adapt grade or not adapt @ all.
java combobox height swt size
No comments:
Post a Comment