Having tried my code there when I call the method addSeparator(), it creates a space between the buttons, but without a visible dividing line.
But if I change the method to addSeparator(new Dimension(20,20)), it will create a visible dividing line.
The problem may be that the default appearance creates a height separator of 1, so you won’t be able to see it.
I run it on Mac OSX.