feat(message): Création message quand bouton send cliqué

This commit is contained in:
bouclyma 2024-12-11 10:54:28 +01:00
parent 63c165f024
commit c2ef4108cb
2 changed files with 30 additions and 6 deletions

View file

@ -7,6 +7,8 @@ import java.io.File;
import java.io.IOException;
import java.util.Objects;
import static rtgre.chat.ChatApplication.LOGGER;
public class Contact {
protected String login;
protected java.awt.Image avatar;
@ -52,9 +54,9 @@ public class Contact {
try {
this.avatar = avatarFromLogin(banques_avatars, login);
} catch (IOException e) {
System.out.println("Impossible de créer l'utilisateur " + login);
System.out.println(e.getMessage());
System.out.println(banques_avatars);
LOGGER.severe("Impossible de créer l'utilisateur " + login);
LOGGER.severe(e.getMessage());
LOGGER.severe(banques_avatars.getAbsolutePath());
}
this.connected = connected;
this.currentRoom = null;