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,107
  • 18
  • 130
  • 305
SimonT
  • 2,141
  • 1
  • 16
  • 31

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
  • 200,320
  • 28
  • 229
  • 974