-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathController.java
117 lines (97 loc) · 3.37 KB
/
Controller.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
package sample;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.chart.PieChart;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout.Pane;
import javafx.stage.Modality;
import javafx.stage.Stage;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
public class Controller{
@FXML
private TextField plakaNoGirinizTF;
public void aboneEkleButtonClicked(ActionEvent event) throws IOException{
try {
FXMLLoader loader = new FXMLLoader(getClass().getResource("/sample/Abonelik.fxml"));
Parent root = loader.load();
Stage stage = new Stage();
stage.setScene(new Scene(root, 600, 600));
stage.setTitle("Abonelik");
stage.show();
} catch(IOException e){
e.printStackTrace();
}
}
public void aboneleriGosterButtonClicked(ActionEvent event) throws IOException{
try {
FXMLLoader loader = new FXMLLoader(getClass().getResource("/sample/AboneleriGoster.fxml"));
Parent root = loader.load();
Stage stage = new Stage();
stage.setScene(new Scene(root, 600, 600));
stage.setTitle("Aboneler Bilgi Ekranı");
stage.show();
} catch(IOException e){
e.printStackTrace();
}
}
public void raporlamaButtonClicked(){
try {
FXMLLoader loader = new FXMLLoader(getClass().getResource("/sample/Raporlama.fxml"));
Parent root = loader.load();
Stage stage = new Stage();
stage.setScene(new Scene(root, 600, 600));
stage.setTitle("Raporlama");
stage.show();
} catch(IOException e){
e.printStackTrace();
}
}
public void loglamaButtonClicked(){
try {
FXMLLoader loader = new FXMLLoader(getClass().getResource("/sample/Loglama.fxml"));
Parent root = loader.load();
Stage stage = new Stage();
stage.setScene(new Scene(root, 600, 600));
stage.setTitle("Loglama");
stage.show();
} catch(IOException e){
e.printStackTrace();
}
}
public void ucretlendirmeButtonClicked(){
try {
FXMLLoader loader = new FXMLLoader(getClass().getResource("/sample/ucretlendirme.fxml"));
Parent root = loader.load();
Stage stage = new Stage();
stage.setScene(new Scene(root, 600, 600));
stage.setTitle("Ucretlendirme");
stage.show();
} catch(IOException e){
e.printStackTrace();
}
}
@FXML
private PieChart pieChart;
int dolu = 100;
int bos = 50;
public void loadData(){
ObservableList<PieChart.Data> list = FXCollections.observableArrayList(
new PieChart.Data("Dolu", 100),
new PieChart.Data("Boş", 50)
);
pieChart.setData(list);
}
public void girisClicked(){
}
public void cikisClicked(){
}
}