How can I change the arrow style in a JComboBox?

You can override createArrowButton() in BasicComboBoxUI BasicArrowButton is a convenient starting point.

You can override createArrowButton() in BasicComboBoxUI. BasicArrowButton is a convenient starting point. Class ColorArrowUI extends BasicComboBoxUI { public static ComboBoxUI createUI(JComponent c) { return new ColorArrowUI(); } @Override protected JButton createArrowButton() { return new BasicArrowButton( BasicArrowButton.

SOUTH, Color. Cyan, Color. Magenta, Color.

Yellow, Color. Blue); } } Then install it. JComboBox combo = new JComboBox(); combo.

SetUI(ColorArrowUI. CreateUI(combo)).

Not responsible for garish color scheme. :-) – trashgod Jun 9 '10 at 18:12 Perfect! Thank you very much :) – Stephane Grenier Jun 9 '10 at 18:51 1 for me ... is maybe safiest to extract JButton as JComponent from JComboBox and button.setIcon(), f.e.

With ButtonModel for mousehover effect for JComboBox too.. +1 for BasicUI – mKorbel Jul 2 at 18:45.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions