Remove white outline JFrame

I have JFrame with a JTextPane in it. Kind of a very simple text editor. Now the problem is there is a very thin white border around the frame. This is ok if the color of the text pane is white but if …