Add dynamic change of title for JFrame