diff --git a/src/css/mainpanecss.css b/src/css/mainpanecss.css new file mode 100644 index 0000000000000000000000000000000000000000..c71153a38ea48ff865be4389ce717a55f0711d99 --- /dev/null +++ b/src/css/mainpanecss.css @@ -0,0 +1,9 @@ +#changepw:hover{ + -fx-background-color: #F2F2F2; + -fx-background-radius:5px; + border: 3px solid #000000; /* BLACK */ +} +#changepw{ + -fx-background-color: white; + -fx-background-radius: 5px; +} \ No newline at end of file diff --git a/src/fxml/Personal.fxml b/src/fxml/Personal.fxml index 00c6008ea15ee52f1b5cfe6514b226d8a0a0e003..a7e2060e6f792b2162aa6dfedad350f715f9061d 100644 --- a/src/fxml/Personal.fxml +++ b/src/fxml/Personal.fxml @@ -2,6 +2,7 @@ + @@ -24,30 +25,42 @@ + + + - + + + - + + + - - + diff --git a/src/imgzip/mainpane/Change_email.java b/src/imgzip/mainpane/Change_email.java index 3fd046721254be85ac6d353ba00179c7a8fb0167..130672a1c21cffdc06beed62a04062ce083198a2 100644 --- a/src/imgzip/mainpane/Change_email.java +++ b/src/imgzip/mainpane/Change_email.java @@ -20,9 +20,9 @@ public class Change_email { primaryStage.setTitle("修改用户名"); primaryStage.setScene(new Scene(root, 400, 300)); primaryStage.show(); - - - + primaryStage.setOnCloseRequest(e->{ + new Personal(); + }); }catch (Exception e){ e.printStackTrace(); } diff --git a/src/imgzip/mainpane/Change_tel.java b/src/imgzip/mainpane/Change_tel.java index 9455bdc4365b415d3b28f8735ac153ca66cdd231..b9baac779adea8ed86a4b8cade212ce4753419ba 100644 --- a/src/imgzip/mainpane/Change_tel.java +++ b/src/imgzip/mainpane/Change_tel.java @@ -19,7 +19,9 @@ public class Change_tel { primaryStage.setTitle("修改电话号码"); primaryStage.setScene(new Scene(root, 400, 300)); primaryStage.show(); - + primaryStage.setOnCloseRequest(e->{ + new Personal(); + }); }catch (Exception e){ e.printStackTrace(); }