I want to change the icon of the title bar of the Java window, as shown below:
I'mgoingintheinitComponents()
methodandleavingitasitisinthecodebelow,butthesetIconImage(iconeTitulo);
lineisanerror.
publicFrmConfiguracoes(){initComponents();URLcaminhoImagem=this.getClass().getClassLoader().getResource("smile.png");
Image iconeTitulo = Toolkit.getDefaultToolkit().getImage(caminhoImagem);
setIconImage(iconeTitulo);
}
Does not recognize the command and does not change the icon. What can I do? And how to change the logo that is in the minimized icon, shape image below?