AbstractBorder class is the better, since certain Swing classes has optimizations for the AbstractBorder-specific methods.