Problem with that code is the frame is still movable, it just goes back to where it started after it's moved. I'm not aware of anyway to achieve this short of creating an undecorated window and painting a titlebar yourself. I don't think you have control over the title bar otherwise since it's part of the OS and not Java.