A quick look-over and it looks like you're just setting a string inside the class, not the actual title of the frame. Use setTitle() to make sure the title gets set.

frame.setTitle("My Frame");