Main UI implemented.

This commit is contained in:
Asal Lotfi
2025-08-15 19:56:00 +03:30
parent 96fcfdd7c4
commit f80fd60a48
15 changed files with 438 additions and 49 deletions
@@ -0,0 +1,26 @@
package org.to.telegramfinalproject.UI;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import java.io.IOException;
public class ChatItemController {
@FXML private ImageView profileImage;
@FXML private Label chatName;
@FXML private Label lastMessage;
@FXML private Label chatTime;
@FXML private Label unreadCount;
public void setChatData(String name, String lastMsg, String time, int unread) {
chatName.setText(name);
lastMessage.setText(lastMsg);
chatTime.setText(time);
unreadCount.setVisible(unread > 0);
unreadCount.setText(String.valueOf(unread));
}
}