Browse Source

made alert windows nicer

dominik.renkel 7 years ago
parent
commit
c1544ab6fa

+ 3 - 3
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/ui/ButtonManager.java

@@ -311,9 +311,9 @@ public final class ButtonManager {
 	 */
 	public static void showConnectionErrorMsg() {
 		Alert alert = new Alert(AlertType.WARNING);
-		alert.setTitle("Connection Error");
-		alert.setHeaderText("Could not reach OpenStreetMap server");
-		alert.setContentText(null);
+		alert.setTitle("Warning");
+		alert.setHeaderText("Connection Error");
+		alert.setContentText("Could not reach OpenStreetMap server");
 
 		alert.showAndWait();
 	}

+ 3 - 3
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/ui/OptionsManager.java

@@ -228,9 +228,9 @@ public final class OptionsManager {
 		
 		// Alert window -> when problems with input
 		Alert alert = new Alert(AlertType.WARNING);
-		alert.setTitle("Preferences-Type Alert");
-		alert.setHeaderText("Some Input doesnt fit the Convention (INT for Smybol Layer, Double for Default GeoPosition)");
-		alert.setContentText(null);
+		alert.setTitle("Warning");
+		alert.setHeaderText("Preferences-Type Alert");
+		alert.setContentText("Some Input doesnt fit the Convention (INT for Smybol Layer, Double for Default GeoPosition)");
 
 		// set dialog
 		addPropDialog.getDialogPane().setContent(grid);

+ 3 - 3
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/ui/PropertiesManager.java

@@ -463,9 +463,9 @@ public final class PropertiesManager {
 
 		// Alert window -> when problems with input
 		Alert alert = new Alert(AlertType.WARNING);
-		alert.setTitle("Property-Type Alert");
-		alert.setHeaderText("The selected Type doesnt fit the Input");
-		alert.setContentText(null);
+		alert.setTitle("Warning");
+		alert.setHeaderText("Property-Type Alert");
+		alert.setContentText("The selected Type doesnt fit the Input");
 
 		ButtonType addButtonType = new ButtonType("Confirm", ButtonData.OK_DONE);
 		addPropDialog.getDialogPane().getButtonTypes().addAll(addButtonType, ButtonType.CANCEL);