updates
This commit is contained in:
parent
2ff56a1874
commit
c6321cc588
|
|
@ -10,7 +10,6 @@ import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
|
|
||||||
import com.r0r5chach.competitor.Competitor;
|
import com.r0r5chach.competitor.Competitor;
|
||||||
import com.r0r5chach.competitor.Name;
|
import com.r0r5chach.competitor.Name;
|
||||||
import com.r0r5chach.competitor.Rank;
|
import com.r0r5chach.competitor.Rank;
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,12 @@ import java.io.File;
|
||||||
|
|
||||||
import javafx.application.Application;
|
import javafx.application.Application;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
|
import com.r0r5chach.controllers.MainController;
|
||||||
|
|
||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.scene.Parent;
|
import javafx.scene.Parent;
|
||||||
|
import javafx.stage.Popup;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import static com.r0r5chach.CompetitorList.createErrorLog;
|
import static com.r0r5chach.CompetitorList.createErrorLog;
|
||||||
|
|
@ -12,12 +16,15 @@ import static com.r0r5chach.CompetitorList.createErrorLog;
|
||||||
public class Manager extends Application {
|
public class Manager extends Application {
|
||||||
|
|
||||||
private static Scene scene;
|
private static Scene scene;
|
||||||
|
private static Stage stage;
|
||||||
|
private static Popup filters;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage stage) throws IOException {
|
public void start(Stage stage) throws IOException {
|
||||||
scene = new Scene(loadFXML("main"), 640, 480);
|
scene = new Scene(loadFXML("main"), 640, 480);
|
||||||
stage.setScene(scene);
|
Manager.stage = stage;
|
||||||
stage.show();
|
Manager.stage.setScene(scene);
|
||||||
|
Manager.stage.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -56,4 +63,16 @@ public class Manager extends Application {
|
||||||
}
|
}
|
||||||
return competitors;
|
return competitors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void filtersOpen() throws IOException {
|
||||||
|
filters = new Popup();
|
||||||
|
FXMLLoader loader = new FXMLLoader(Manager.class.getResource("pages/filters.fxml"));
|
||||||
|
filters.getContent().add((Parent)loader.load());
|
||||||
|
filters.show(Manager.stage);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void filtersClose() {
|
||||||
|
filters.hide();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ module com.r0r5chach {
|
||||||
|
|
||||||
opens com.r0r5chach to javafx.fxml;
|
opens com.r0r5chach to javafx.fxml;
|
||||||
opens com.r0r5chach.pages to javafx.base;
|
opens com.r0r5chach.pages to javafx.base;
|
||||||
|
opens com.r0r5chach.controllers to javafx.fxml;
|
||||||
exports com.r0r5chach;
|
exports com.r0r5chach;
|
||||||
exports com.r0r5chach.competitor;
|
exports com.r0r5chach.competitor;
|
||||||
exports com.r0r5chach.competitor.r6;
|
exports com.r0r5chach.competitor.r6;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue