1

I'd like to be able to make a JComboBox with the arrow centered, below the text, to look like the pictured buttons from Word.

The

I understand that the usage of the pictured buttons here differs from the usage of a JComboBox, but I'm more concerned about getting the arrow in the right position. Does anyone know how to do this?

mKorbel
  • 109,525
  • 20
  • 134
  • 319
SimonT
  • 2,219
  • 1
  • 18
  • 32

1 Answers1

2

The appearance of a JComboBox is determined by the chosen Look & Feel's UI delegate, typically a subclass of BasicComboBoxUI. You can replace the delegate, as shown here, and paint the arrowButton where you want it. Related examples may be found here.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045