Hunter0x7c7
2024-09-12 60a3f2bc64b7a5f502e4133ced31f0b25c88d3f1
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
package com.github.hunter0x7c7.sync;
 
import com.github.hunter0x7c7.sync.model.storage.Session;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;
 
import static com.github.hunter0x7c7.sync.model.global.Parameters.AppNameString;
 
public class Main extends Application {
 
    /*    {
  "sh": "db.tyuniot.com:20235",
  "sn": "sa",
  "sp": "uQo/ij8nAbTmhCv/BKAMxQ\u003d\u003d",
  "sdn": "TY_SPDB",
  "th": "220.203.22.91:1466",
  "tn": "sa",
  "tp": "UpVahnS5ZlI/uNaNUNdmuQ\u003d\u003d",
  "tdn": "proj_hbzgfy",
  "fv": "10",
  "fu": 2,
  "ss": true
}     */
 
    @Override
    public void start(Stage stage) throws Exception {
        Session.getInstance().setPrimaryStage(stage);
 
        Parent root = FXMLLoader.load(getClass().getResource("/forxml/sample.fxml"));
        stage.setTitle(AppNameString);//数据同步工具(传感器) v1.0
        stage.setScene(new Scene(root, 600, 380));
        stage.getIcons().add(new Image("mipmap/ic_chinese_cabbage_48.png"));
        stage.setResizable(false);
        stage.show();
    }
 
 
    public static void main(String[] args) {
        launch(args);
    }
 
    @Override
    public void init() throws Exception {
        super.init();
    }
 
 
}