I’m wondering, how can I set the title of my Java JFrame GUI to something different later on? My program is a basic text editor, and I want to change the title to whatever you just saved your file as, or New File if you hit the New File button, or you just started the application up. The method I’m using right now is just a simple setName("" + file + ""); where file is the File that was just written or read.
I’m wondering, how can I set the title of my Java JFrame GUI to
Share
setTitle is what you need, not setName.