how can i receive the combobox arrow icon in windows plaf like that:
and add it to another JLabel as Icon
how can i receive the combobox arrow icon in windows plaf like that:
and add it to another JLabel as Icon
AFAIK you can to use new MetalComboBoxIcon()
directly, required only import javax.swing.plaf.metal.MetalComboBoxIcon;
you (never tried) have to search for equivalent in another L&Fs, no idea if you talking (windows plaf like that:) about SystemL&F
(Windows
) or WindowsClassicLookAndFeel
better ways are_
get Icon
from JComboBox
(loop in JComboBoxes JComponent
there is XxxComboBoxButton
) e.g. MetalComboBoxButton
, this button contains Icon
look into BasicComboBoxUI
or WindowsComboBoxUI
(there is only about paintIcon
), copy those code and create own class for Icon by override paintIcon
create own Icon
I'b be use own Icon
or MetalComboBoxIcon
then result isn't L&F sensitive,