I have a JComboBox, but I want it to show only dropdown arrow, that is, without any space on left for the JComboBox element. But when I click the arrow, I want the list to go naturally, without it being empty or something.
This is what I'm dealing with:
I want it to look something like this (also list elements in the center, if that's possible):
Thanks :).


You could do something like this (read comments in code):