-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved some UI and imporve README.md
- Loading branch information
Showing
5 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/com/zzg/mybatis/generator/view/AlertUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.zzg.mybatis.generator.view; | ||
|
||
import javafx.scene.control.Alert; | ||
|
||
/** | ||
* Created by Owen on 6/21/16. | ||
*/ | ||
public class AlertUtil { | ||
|
||
public static void showInfoAlert(String message) { | ||
Alert alert = new Alert(Alert.AlertType.INFORMATION); | ||
alert.setContentText(message); | ||
alert.show(); | ||
} | ||
|
||
public static void showWarnAlert(String message) { | ||
Alert alert = new Alert(Alert.AlertType.WARNING); | ||
alert.setContentText(message); | ||
alert.show(); | ||
} | ||
|
||
public static void showErrorAlert(String message) { | ||
Alert alert = new Alert(Alert.AlertType.ERROR); | ||
alert.setContentText(message); | ||
alert.show(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters