clean up
This commit is contained in:
parent
0aca3b964a
commit
c6f51fbc76
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -27,7 +27,6 @@ import java.io.IOException;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
import javafx.application.Application;
|
import javafx.application.Application;
|
||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
|
@ -43,7 +42,7 @@ public class Main extends Application {
|
||||||
|
|
||||||
Stage primaryStage;
|
Stage primaryStage;
|
||||||
private String path;
|
private String path;
|
||||||
String currentWorkingDirectory;
|
String currentWorkingDirectory;
|
||||||
private String COLOR = "ee3523";
|
private String COLOR = "ee3523";
|
||||||
private String FONT_FAMILY = "System";
|
private String FONT_FAMILY = "System";
|
||||||
private String mode = "local"; //local or streaming TODO
|
private String mode = "local"; //local or streaming TODO
|
||||||
|
@ -61,12 +60,12 @@ public class Main extends Application {
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage primaryStage) throws IOException {
|
public void start(Stage primaryStage) throws IOException {
|
||||||
currentWorkingDirectory = new java.io.File( "." ).getCanonicalPath();
|
currentWorkingDirectory = new java.io.File( "." ).getCanonicalPath();
|
||||||
this.primaryStage = primaryStage;
|
this.primaryStage = primaryStage;
|
||||||
mainWindow();
|
mainWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void mainWindow(){
|
private void mainWindow(){
|
||||||
|
|
||||||
try {
|
try {
|
||||||
FXMLLoader loader = new FXMLLoader(Main.class.getResource("MainWindow.fxml"));
|
FXMLLoader loader = new FXMLLoader(Main.class.getResource("MainWindow.fxml"));
|
||||||
AnchorPane pane = loader.load();
|
AnchorPane pane = loader.load();
|
||||||
|
|
|
@ -138,7 +138,6 @@ public class apiQuery{
|
||||||
im = new Image("recources/icons/close_black_2048x2048.png");
|
im = new Image("recources/icons/close_black_2048x2048.png");
|
||||||
mainWindowController.image1.setImage(im);
|
mainWindowController.image1.setImage(im);
|
||||||
}else{
|
}else{
|
||||||
//
|
|
||||||
nameText.add(0, new Text(mainWindowController.title+": "));
|
nameText.add(0, new Text(mainWindowController.title+": "));
|
||||||
nameText.add(1, new Text(mainWindowController.year+": "));
|
nameText.add(1, new Text(mainWindowController.year+": "));
|
||||||
nameText.add(2, new Text(mainWindowController.rating+": "));
|
nameText.add(2, new Text(mainWindowController.rating+": "));
|
||||||
|
@ -156,7 +155,6 @@ public class apiQuery{
|
||||||
nameText.add(14, new Text(mainWindowController.imdbRating+": "));
|
nameText.add(14, new Text(mainWindowController.imdbRating+": "));
|
||||||
nameText.add(15, new Text(mainWindowController.type+": "));
|
nameText.add(15, new Text(mainWindowController.type+": "));
|
||||||
|
|
||||||
|
|
||||||
for(int i=0; i<nameText.size(); i++){
|
for(int i=0; i<nameText.size(); i++){
|
||||||
nameText.get(i).setFont(Font.font (fontFamily, FontWeight.BOLD, fontSize));
|
nameText.get(i).setFont(Font.font (fontFamily, FontWeight.BOLD, fontSize));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue