Skip to content
Snippets Groups Projects
Commit 529acd34 authored by Eilert Tunheim's avatar Eilert Tunheim
Browse files

minor updates

parent 48ea170c
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,7 @@ public class LineChartFunctionality {
//System.out.println(String.format("Mean: %f", stats.getMean()));
double lower = stats.getMean() - ci;
double upper = stats.getMean() + ci;
System.out.println(String.format("Confidence Interval "+ Settings.CONFIDENCE_INTERVAL*100+"%%: %f, %f", lower, upper));
//System.out.println(String.format("Confidence Interval "+ Settings.CONFIDENCE_INTERVAL*100+"%%: %f, %f", lower, upper));
// Deletes entries if they are out of bounds with the confidence interval
entry.getValue().removeIf(value -> Double.compare(value, lower) < 0 || Double.compare(value, upper) > 0);
......
package com.application.GUI.PopUpWindows;
import com.application.DB.Account_handler;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.*;
......@@ -39,6 +38,10 @@ public class LoginPopup {
try {
getAccountInformation(userNameTextField.getText(), hashPassword(getPasswordTextField().getText()));
if(getLogin().getText().equals("Admin")) {
LoginPopup.adminPopup();
window.close();
}
} catch (Exception e) {
e.printStackTrace();
}
......
......@@ -6,6 +6,7 @@ import com.application.GUI.Panes.LogoBar;
import com.application.GUI.Panes.SideBar;
import com.application.GUI.LineChartFunctionality;
import com.application.GUI.PopUpWindows.LoginPopup;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.chart.LineChart;
......@@ -137,6 +138,7 @@ public class Main extends Application {
primaryStage.show();
// Displays the input parameters popup window
LoginPopup.login();
InputPopup.display();
}
......
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment