diff --git a/src/main/java/com/rohitawate/everest/controllers/DashboardController.java b/src/main/java/com/rohitawate/everest/controllers/DashboardController.java index 722bca1..941c252 100644 --- a/src/main/java/com/rohitawate/everest/controllers/DashboardController.java +++ b/src/main/java/com/rohitawate/everest/controllers/DashboardController.java @@ -155,7 +155,7 @@ public class DashboardController implements Initializable { }); errorTitle.setText("Oops... That's embarrassing!"); - errorDetails.setText("Something went wrong. Try to make another getRequest.\nRestart Everest if that doesn't work."); + errorDetails.setText("Something went wrong. Try to make another request.\nRestart Everest if that doesn't work."); visualizer = new Visualizer(); visualizerTab.setContent(visualizer); @@ -199,7 +199,6 @@ public class DashboardController implements Initializable { configureRequestManager(); requestManager.start(); break; - // DataDispatchRequestManager will generate appropriate getRequest based on the type. case "POST": case "PUT": case "PATCH": @@ -274,7 +273,7 @@ public class DashboardController implements Initializable { Services.loggingService.logSevere("Request execution failed.", E, LocalDateTime.now()); errorLayer.setVisible(true); errorTitle.setText("Oops... That's embarrassing!"); - errorDetails.setText("Something went wrong. Try to make another getRequest.\nRestart Everest if that doesn't work."); + errorDetails.setText("Something went wrong. Try to make another request.\nRestart Everest if that doesn't work."); } } @@ -290,7 +289,7 @@ public class DashboardController implements Initializable { promptLayer.setVisible(false); Throwable throwable = requestManager.getException(); Exception exception = (Exception) throwable; - Services.loggingService.logWarning(httpMethodBox.getValue() + " getRequest could not be processed.", exception, LocalDateTime.now()); + Services.loggingService.logWarning(httpMethodBox.getValue() + " request could not be processed.", exception, LocalDateTime.now()); if (throwable.getClass() == UnreliableResponseException.class) { UnreliableResponseException URE = (UnreliableResponseException) throwable; @@ -311,7 +310,7 @@ public class DashboardController implements Initializable { if (requestManager.getClass() == DataDispatchRequestManager.class) { if (throwable.getCause() != null && throwable.getCause().getClass() == IllegalArgumentException.class) { errorTitle.setText("Did you forget something?"); - errorDetails.setText("Please specify at least one body part for your " + httpMethodBox.getValue() + " getRequest."); + errorDetails.setText("Please specify at least one body part for your " + httpMethodBox.getValue() + " request."); } else if (throwable.getClass() == FileNotFoundException.class) { errorTitle.setText("File(s) not found:"); errorDetails.setText(throwable.getMessage()); diff --git a/src/main/java/com/rohitawate/everest/main/Main.java b/src/main/java/com/rohitawate/everest/main/Main.java index eaf7870..71976b8 100644 --- a/src/main/java/com/rohitawate/everest/main/Main.java +++ b/src/main/java/com/rohitawate/everest/main/Main.java @@ -21,9 +21,11 @@ import com.rohitawate.everest.util.settings.SettingsLoader; import com.rohitawate.everest.util.themes.ThemeManager; import javafx.application.Application; import javafx.fxml.FXMLLoader; +import javafx.geometry.Rectangle2D; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.image.Image; +import javafx.stage.Screen; import javafx.stage.Stage; public class Main extends Application { @@ -41,6 +43,10 @@ public class Main extends Application { Stage dashboardStage = new Stage(); ThemeManager.setTheme(homeWindow); + Rectangle2D screenBounds = Screen.getPrimary().getBounds(); + dashboardStage.setWidth(screenBounds.getWidth() * 0.83); + dashboardStage.setHeight(screenBounds.getHeight() * 0.74); + dashboardStage.getIcons().add(new Image(getClass().getResource("/assets/Logo.png").toExternalForm())); dashboardStage.setScene(new Scene(homeWindow)); dashboardStage.setTitle("Everest"); diff --git a/src/main/resources/fxml/homewindow/Dashboard.fxml b/src/main/resources/fxml/homewindow/Dashboard.fxml index 1d61d78..febed9f 100644 --- a/src/main/resources/fxml/homewindow/Dashboard.fxml +++ b/src/main/resources/fxml/homewindow/Dashboard.fxml @@ -22,9 +22,8 @@ - + diff --git a/src/main/resources/fxml/homewindow/HomeWindow.fxml b/src/main/resources/fxml/homewindow/HomeWindow.fxml index c160f68..63b6580 100644 --- a/src/main/resources/fxml/homewindow/HomeWindow.fxml +++ b/src/main/resources/fxml/homewindow/HomeWindow.fxml @@ -22,12 +22,12 @@ - -