Reputation: 21
The default Combobox in Mac OS is as follows:
How can I change to following one?:
P.S. - The Combobox is created in JTable
.
Upvotes: 1
Views: 949
Reputation: 205785
The default UI delegate for JComboBox
on Mac OS X is com.apple.laf.AquaComboBoxUI
. You can replace it with your own variation of BasicComboBoxUI
. There's a related example here and a more complete example in the MacWidgets collection suggested by @Dilum.
Upvotes: 1
Reputation: 13374
Check out the brilliant MacWidgets
Here are the key steps:
JComboBox
with the appropriate L&F.DefaultCellEditor
setDefaultEditor(...)
TableCellRenderer getDefaultRenderer(Class columnClass)
Upvotes: 1