mirror of
https://github.com/Akomry/sae302_applicom.git
synced 2025-12-06 11:43:53 +00:00
feat(graphique): Création environnement graphique, taille minimale, importation fx:id => attribut
This commit is contained in:
parent
da87040ec2
commit
8360fd9982
3 changed files with 134 additions and 16 deletions
|
|
@ -13,6 +13,8 @@ public class ChatApplication extends Application {
|
|||
FXMLLoader fxmlLoader = new FXMLLoader(ChatApplication.class.getResource("chat-view.fxml"));
|
||||
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
|
||||
stage.setTitle("Chat @BOUCLY_Emi (B2GA)");
|
||||
stage.setMinWidth(800);
|
||||
stage.setMinHeight(500);
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,23 @@
|
|||
package rtgre.chat;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.*;
|
||||
import javafx.scene.image.ImageView;
|
||||
|
||||
public class ChatController {
|
||||
@FXML
|
||||
private Label welcomeText;
|
||||
|
||||
@FXML
|
||||
protected void onHelloButtonClick() {
|
||||
welcomeText.setText("Welcome to JavaFX Application!");
|
||||
}
|
||||
|
||||
public MenuItem hostAddMenuItem;
|
||||
public MenuItem avatarMenuItem;
|
||||
public MenuItem aboutMenuItem;
|
||||
public ComboBox hostComboBox;
|
||||
public TextField loginTextField;
|
||||
public ToggleButton connectionButton;
|
||||
public ImageView avatarImageView;
|
||||
public SplitPane exchangeSplitPane;
|
||||
public ListView postListView;
|
||||
public ListView roomsListView;
|
||||
public ListView contactListView;
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue