Paul Clapham wrote:Hi vincenzo, welcome to the Ranch!
To me it looks like you're setting the JComboBox's border at line 32 of your code. You say you don't want that border? Then it seems to me you could just remove that line of code.
You also have a method called createArrowButton which does a lot of things with your special border-maker, but I don't see any code which calls that method. Anyway I don't understand why you don't put the special border around the combo box, instead of making a separate button.
Hi Paul, thanks so much.
I'm setting my border round whit this code but the line of the border is round and the border doesn't is round.
To me it looks like you're setting the JComboBox's border at line 32 of your code. You say you don't want that border? Then it seems to me you could just remove that line of code.
Because this method is the method for setting a button od the JComboBox and I inherited all to BasicComboBoxUI
You also have a method called createArrowButton which does a lot of things with your special border-maker, but I don't see any code which calls that method. Anyway I don't understand why you don't put the special border around the combo box, instead of making a separate button
I found the problem and I edited the question with the solution, thanks so much