mirror of
https://github.com/Akomry/sae302_applicom.git
synced 2025-12-06 08:43:54 +00:00
Merge branch '4-ajout-d-une-page-a-propos' into 'dev'
feat(aboutMenuItem): Ajout d'une page À propos Closes #4 See merge request iut_rt/but2/sae302-applicom/bouclyma!20
This commit is contained in:
commit
43152c9587
1 changed files with 7 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import javafx.collections.ObservableList;
|
||||||
import javafx.embed.swing.SwingFXUtils;
|
import javafx.embed.swing.SwingFXUtils;
|
||||||
import javafx.event.ActionEvent;
|
import javafx.event.ActionEvent;
|
||||||
import javafx.event.Event;
|
import javafx.event.Event;
|
||||||
|
import javafx.event.EventHandler;
|
||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.fxml.Initializable;
|
import javafx.fxml.Initializable;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
|
|
@ -169,6 +170,12 @@ public class ChatController implements Initializable {
|
||||||
avatarImageView.setOnMouseClicked(this::handleAvatarChange);
|
avatarImageView.setOnMouseClicked(this::handleAvatarChange);
|
||||||
sendButton.setOnAction(this::onActionSend);
|
sendButton.setOnAction(this::onActionSend);
|
||||||
messageTextField.setOnAction(this::onActionSend);
|
messageTextField.setOnAction(this::onActionSend);
|
||||||
|
aboutMenuItem.setOnAction((ActionEvent) -> {
|
||||||
|
Alert alert = new Alert(Alert.AlertType.INFORMATION, i18nBundle.getString("welcomeText"));
|
||||||
|
alert.setTitle(i18nBundle.getString("welcomeTitle"));
|
||||||
|
alert.setHeaderText(null);
|
||||||
|
alert.show();
|
||||||
|
});
|
||||||
|
|
||||||
initContextMenu();
|
initContextMenu();
|
||||||
postListView.setOnContextMenuRequested(this::handleContextMenu);
|
postListView.setOnContextMenuRequested(this::handleContextMenu);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue