I'm not sure if that is exactly what you are trying to achieve, but try this before you instantiate any swing components:
// For the border around the icon
UIManager.put("Tree.drawsFocusBorderAroundIcon", false);
// Dashed border
UIManager.put("Tree.drawDashedFocusIndicator", false);