-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHome.java
More file actions
36 lines (27 loc) · 1 KB
/
Home.java
File metadata and controls
36 lines (27 loc) · 1 KB
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
36
package CalP2;
public class Home extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
GridPane Gp2=new GridPane();
Gp2.setHgap(10);
Gp2.setVgap(30);
Button btnfd = new Button();
btnfd.setText(" Fixed Deposit");
btnfd.setPrefHeight(200);
btnfd.setPrefWidth(200);
btnfd.setStyle("-fx-background-color: #24478f;-fx-font: 18 verdana; -fx-text-fill:white;-fx-font-weight: bold;");
btnfd.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
Cal1 Cal=new Cal1();
Stage fdstage=new Stage();
try {
Cal.start(fdstage);
} catch (Exception e) {
e.printStackTrace();
}
fdstage.show();
primaryStage.close();
}
});
Button btnsave = new Button();