Hide Arrow of the
Hay All,
I am using a JComboBox and I wish to remove the arrow button that triggers the Popupmenu as I use an alternative way and the arrow is redundant and making my application ugly :) ...... is there a way to remove this button?
Thanks for your Help!
[272 byte] By [
ekoshaa] at [2007-11-27 11:47:38]

# 1
set your own MetalComboBoxUI, overriding createArrowButton()
to create and setVisible(false) the button.
the popup will still be as wide as the combo with button, if you don't want this
search the forums for
SteppedComboBox
and reverse what it does to narrow the popup