I want to remove the awkward blue border which I cannot remove by doing myTabbedPane.setBorder(null);. What is a way of doing that?
This is the blue border I am talking about:
As I am new to the swing java library, I would also like to know how all the properties of components are changed if there is no method/it doesn't work. I heard there is something called UIManager but I can't find useful information about it.
The only thing I tried was calling setBorder property and calling null on it.

These properties are defined by the Look & Feel you are using (e.g. Windows L&F or Metal L&F).
You can change these properties globally (i.e. this applies to all JTabbedPanes you are using). The following code works for the Windows L&F and the Motiv L&F (you need to check for other L&F implementations):