Works now but only with frame.pack() or without borderlayout