See Window#show
:
You should use Window#setVisible(true)
.
For your second warning, see Serializable
:
A serializable class can declare its own serialVersionUID explicitly by declaring a field named "serialVersionUID" that must be static, final, and of type long