-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.java
35 lines (29 loc) · 1.04 KB
/
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class Main extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception{
Parent root = FXMLLoader.load(getClass().getResource("fxml_layout.fxml"));
FXMLLoader loader = new FXMLLoader(getClass().getResource("fxml_layout.fxml"));
primaryStage.setTitle("Jeff Messenger");
primaryStage.setScene(new Scene(root, 500, 350));
primaryStage.show();
Button sendButton = (Button) loader.getNamespace().get("send");
sendButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
}
});
}
}