Browse Source

AddMovie Window updated

toomanysugar 4 years ago
parent
commit
8d0d0bea91

+ 2 - 0
JavaFxApplication.iml

@@ -80,5 +80,7 @@
     <orderEntry type="library" name="Maven: javax.inject:javax.inject:1" level="project" />
     <orderEntry type="library" name="Maven: org.codehaus.plexus:plexus-component-annotations:1.7.1" level="project" />
     <orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.8.1" level="project" />
+    <orderEntry type="library" name="Maven: com.sun.jna:jna:3.0.9" level="project" />
+    <orderEntry type="library" name="Maven: com.sun.jna:platform:1.0.0" level="project" />
   </component>
 </module>

+ 86 - 0
src/main/java/com/moviesdb/AddMovieController.java

@@ -1,5 +1,6 @@
 package com.moviesdb;
 
+import javafx.event.EventHandler;
 import javafx.fxml.FXML;
 import javafx.fxml.FXMLLoader;
 import javafx.scene.Node;
@@ -7,8 +8,10 @@ import javafx.scene.control.Button;
 import javafx.scene.control.ScrollPane;
 import javafx.scene.control.TextArea;
 import javafx.scene.control.TextField;
+import javafx.scene.input.MouseEvent;
 import javafx.scene.layout.AnchorPane;
 import javafx.scene.layout.HBox;
+import javafx.scene.layout.Pane;
 import javafx.scene.layout.VBox;
 import javafx.stage.Modality;
 
@@ -24,6 +27,16 @@ public class AddMovieController extends Controller {
     @FXML
     Button addActorButton;
 
+    @FXML
+    AnchorPane borderTop;
+
+    @FXML
+    Pane borderLeft;
+    @FXML
+    Pane borderRight;
+    @FXML
+    Pane borderBottom;
+
     @FXML
     ScrollPane actorsGrid;
     @FXML
@@ -49,9 +62,82 @@ public class AddMovieController extends Controller {
     TextField rateTextBox;
 
     Object caller;
+    double xOffset;
+    double yOffset;
+
+    double basePos;
+    double baseWidth;
+
 
     public void open(Object caller) {
         prepare();
+        borderTop.setOnMousePressed(pressEvent -> {
+            borderTop.setOnMouseDragged(dragEvent -> {
+                stage.setX(dragEvent.getScreenX() - pressEvent.getSceneX());
+                stage.setY(dragEvent.getScreenY() - pressEvent.getSceneY());
+            });
+        });
+
+        borderLeft.setOnMousePressed(new EventHandler<MouseEvent>() {
+            @Override
+            public void handle(MouseEvent event) {
+                xOffset = stage.getWidth() + event.getScreenX();
+                basePos = event.getScreenX();
+                baseWidth = stage.getWidth();
+            }
+        });
+
+        borderLeft.setOnMouseDragged(new EventHandler<MouseEvent>() {
+            @Override
+            public void handle(MouseEvent event) {
+                if ((xOffset - event.getScreenX()) >= stage.getMinWidth()) {
+                    stage.setWidth(xOffset - event.getScreenX());
+                    stage.setX(event.getScreenX());
+                } else {
+                    stage.setX(xOffset - stage.getMinWidth());
+                    stage.setWidth(stage.getMinWidth());
+                }
+            }
+        });
+
+        borderBottom.setOnMousePressed(new EventHandler<MouseEvent>() {
+            @Override
+            public void handle(MouseEvent event) {
+                yOffset = stage.getHeight() - event.getScreenY();
+            }
+        });
+
+
+        borderBottom.setOnMouseDragged(new EventHandler<MouseEvent>() {
+            @Override
+            public void handle(MouseEvent event) {
+
+                //stage.setWidth(event.getScreenX()  + xOffset);
+                if (event.getScreenY() + yOffset >= stage.getMinHeight())
+                    stage.setHeight(event.getScreenY() + yOffset);
+                else
+                    stage.setHeight(stage.getMinHeight());
+            }
+        });
+
+        borderRight.setOnMousePressed(new EventHandler<MouseEvent>() {
+            @Override
+            public void handle(MouseEvent event) {
+                xOffset = stage.getWidth() - event.getScreenX();
+            }
+        });
+
+        borderRight.setOnMouseDragged(new EventHandler<MouseEvent>() {
+            @Override
+            public void handle(MouseEvent event) {
+                if (event.getScreenX()  + xOffset >= stage.getMinWidth())
+                    stage.setWidth(event.getScreenX()  + xOffset);
+                else
+                    stage.setWidth(stage.getMinWidth());
+            }
+        });
+
+
         stage.initModality(Modality.WINDOW_MODAL);
         stage.initOwner(((BrowserController) caller).stage.getScene().getWindow());
         this.caller = caller;

+ 5 - 1
src/main/java/com/moviesdb/BrowserController.java

@@ -22,6 +22,7 @@ import javafx.stage.Stage;
 import javafx.scene.Parent;
 import javafx.scene.Scene;
 import javafx.fxml.FXMLLoader;
+import javafx.stage.StageStyle;
 
 import java.io.FileInputStream;
 import java.io.IOException;
@@ -481,7 +482,10 @@ public class BrowserController extends Controller {
             Parent root = loader.load();
             addWindow = loader.getController();
             addWindow.stage = new Stage();
-            addWindow.stage.setScene(new Scene(root, 610, 540));
+            addWindow.stage.setScene(new Scene(root, 629, 561));
+            addWindow.stage.initStyle(StageStyle.UNDECORATED );
+            addWindow.stage.setMinWidth(629); //+16
+            addWindow.stage.setMinHeight(561); //+31+16
             addWindow.stage.setUserData(loader);
             addWindow.open(this);
 

+ 202 - 183
src/main/resources/AddMovieWindow.fxml

@@ -1,186 +1,205 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<?import javafx.scene.control.Label?>
-<?import javafx.scene.control.ScrollPane?>
-<?import javafx.scene.control.TextArea?>
-<?import javafx.scene.control.TextField?>
-<?import javafx.scene.layout.AnchorPane?>
-<?import javafx.scene.layout.Pane?>
-<?import javafx.scene.layout.VBox?>
-<?import javafx.scene.text.Font?>
+<?import javafx.scene.control.*?>
+<?import javafx.scene.layout.*?>
+<?import javafx.scene.text.*?>
 
-<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="470.0" prefWidth="604.0" style="-fx-background-color: #212121;" stylesheets="@AddMovieWindowStyle.css" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.moviesdb.AddMovieController">
-    <AnchorPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="42.0">
-    <ScrollPane fitToHeight="true" fitToWidth="true" AnchorPane.BottomAnchor="0" AnchorPane.LeftAnchor="0" AnchorPane.RightAnchor="0" AnchorPane.TopAnchor="0">
-          <VBox>
-             <AnchorPane prefHeight="318.0" prefWidth="604.0" VBox.vgrow="NEVER">
-                <Label layoutX="24.0" layoutY="65.0" text="Title" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="13.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </Label>
-                <Pane layoutX="24.0" layoutY="74.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="33.0" />
-                <Pane layoutX="169.0" layoutY="96.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="33.0" />
-                <TextField id="actorName" fx:id="titleTextBox" layoutX="175.0" layoutY="47.0" maxWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="7.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </TextField>
-                <Label layoutX="23.0" layoutY="82.0" text="Cover Link" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="53.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </Label>
-                <Pane layoutX="29.0" layoutY="140.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="73.0" />
-                <Pane layoutX="174.0" layoutY="162.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="73.0" />
-                <TextField id="actorName" fx:id="urlTextBox" layoutX="180.0" layoutY="113.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="48.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </TextField>
-                <Label layoutX="16.0" layoutY="176.0" text="Genre" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="93.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </Label>
-                <Pane layoutX="22.0" layoutY="234.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="113.0" />
-                <Pane layoutX="167.0" layoutY="256.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="113.0" />
-                <TextField id="actorName" fx:id="genreTextBox" layoutX="221.0" layoutY="134.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="88.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </TextField>
-                <Label layoutX="26.0" layoutY="186.0" text="Year" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="133.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </Label>
-                <Pane layoutX="32.0" layoutY="244.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="153.0" />
-                <Pane layoutX="177.0" layoutY="266.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="153.0" />
-                <TextField id="actorName" fx:id="yearTextBox" layoutX="183.0" layoutY="217.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="128.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </TextField>
-                <Label layoutX="26.0" layoutY="186.0" text="Duration" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="173.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </Label>
-                <Pane layoutX="32.0" layoutY="244.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="193.0" />
-                <Pane layoutX="177.0" layoutY="266.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="193.0" />
-                <TextField id="actorName" fx:id="timeTextBox" layoutX="183.0" layoutY="217.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="168.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </TextField>
-                <Label layoutX="36.0" layoutY="196.0" text="Studio" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="213.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </Label>
-                <Pane layoutX="42.0" layoutY="254.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="233.0" />
-                <Pane layoutX="187.0" layoutY="276.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="233.0" />
-                <TextField id="actorName" fx:id="studioTextBox" layoutX="193.0" layoutY="227.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="208.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </TextField>
-                <Label layoutX="6.0" layoutY="291.0" text="Director" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="253.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </Label>
-                <Pane layoutX="12.0" layoutY="349.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="273.0" />
-                <Pane layoutX="157.0" layoutY="371.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="273.0" />
-                <TextField id="actorName" fx:id="directorTextBox" layoutX="163.0" layoutY="322.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="248.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </TextField>
-                <Label layoutX="28.0" layoutY="333.0" text="Actor" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="293.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </Label>
-                <Pane layoutX="124.0" layoutY="370.0" minWidth="304.0" prefHeight="3.0" prefWidth="304.0" style="-fx-background-color: #9f9f9f;" visible="false" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="126.0" AnchorPane.topAnchor="313.0" />
-                <Pane layoutX="22.0" layoutY="359.0" maxHeight="1.0" maxWidth="150.0" minHeight="1.0" minWidth="150.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="313.0" />
-                <Label layoutX="422.0" layoutY="378.0" text="Role" textFill="#9f9f9f" AnchorPane.rightAnchor="68.0" AnchorPane.topAnchor="293.0">
-                   <font>
-                      <Font size="14.0" />
-                   </font>
-                </Label>
-                <Pane layoutX="392.0" layoutY="369.0" maxHeight="1.0" maxWidth="64.0" minHeight="1.0" minWidth="64.0" prefHeight="1.0" prefWidth="64.0" style="-fx-background-color: #9f9f9f;" AnchorPane.rightAnchor="62.0" AnchorPane.topAnchor="313.0" />
-                <Label alignment="CENTER" layoutX="555.0" layoutY="323.0" onMouseClicked="#addActor" prefHeight="17.0" prefWidth="24.0" text="+" textFill="#9f9f9f" AnchorPane.rightAnchor="38.0" AnchorPane.topAnchor="283.0">
-                   <font>
-                      <Font name="System Bold" size="24.0" />
-                   </font>
-                </Label>
-                <Label alignment="CENTER" layoutX="495.0" layoutY="323.0" prefHeight="17.0" prefWidth="24.0" text="-" textFill="#9f9f9f" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="283.0">
-                   <font>
-                      <Font name="System Bold" size="24.0" />
-                   </font>
-                </Label>
-                <ScrollPane fx:id="actorsGrid" fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" layoutX="174.0" layoutY="362.0" minHeight="4.0" prefHeight="70.0" prefWidth="416.0" vbarPolicy="NEVER" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="173.0" AnchorPane.rightAnchor="123.0" AnchorPane.topAnchor="287.0">
-                   <content>
-                      <VBox fx:id="actorsGridAncor" prefHeight="200.0" prefWidth="100.0" style="-fx-background-color: transparent;" />
-                   </content>
-                </ScrollPane>
-             </AnchorPane>
-             <AnchorPane prefWidth="604.0" VBox.vgrow="SOMETIMES">
-                <children>
-                   <Label text="User Rating" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="6.0">
-                      <font>
-                         <Font size="14.0" />
-                      </font>
-                   </Label>
-                   <Pane prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="26.0" />
-                   <Pane prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="26.0" />
-                   <TextField id="actorName" fx:id="rateTextBox" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="1.0">
-                      <font>
-                         <Font size="14.0" />
-                      </font>
-                   </TextField>
-                   <Label text="Description" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="46.0">
-                      <font>
-                         <Font size="14.0" />
-                      </font>
-                   </Label>
-                   <Pane prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="66.0" />
-                   <TextArea fx:id="descriptionTextBox" minHeight="70.0" prefHeight="70.0" prefWidth="200.0" style="-fx-text-fill: #9f9f9f;" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="39.0">
-                      <font>
-                         <Font size="14.0" />
-                      </font>
-                   </TextArea>
-                   <Pane prefHeight="43.0" prefWidth="1.0" style="-fx-background-color: #9f9f9f;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.topAnchor="66.0" />
-                   <Pane prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" />
-                </children>
-             </AnchorPane>
-             <AnchorPane prefWidth="200.0" VBox.vgrow="NEVER">
-                <children>
-                   <Label onMouseClicked="#executeForm" text="Add" textFill="#9f9f9f" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0">
-                      <font>
-                         <Font name="System Bold" size="16.0" />
-                      </font>
-                   </Label>
-                </children>
-             </AnchorPane>
-          </VBox>
-       </ScrollPane>
-    </AnchorPane>
-    <Label layoutX="24.0" layoutY="24.0" text="Add movie" textFill="#9f9f9f" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="14.0">
-        <font>
-            <Font size="24.0" />
-        </font>
-    </Label>
-    <Label fx:id="closeButton" onMouseClicked="#closeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="4.0">
-        <font>
-            <Font name="Arimo" size="12.0" />
-        </font>
-    </Label>
-    <Label fx:id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="24.0" AnchorPane.topAnchor="4.0">
-        <font>
-            <Font name="Arimo" size="12.0" />
-        </font>
-    </Label>
-</AnchorPane>
+<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="0.0" prefHeight="553.0" prefWidth="616.0" stylesheets="@AddMovieWindowStyle.css" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.moviesdb.AddMovieController">
+   <right>
+      <Pane fx:id="borderRight" maxWidth="5.0" prefHeight="520.0" prefWidth="230.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER" />
+   </right>
+   <bottom>
+      <Pane fx:id="borderBottom" prefHeight="5.0" prefWidth="755.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER" />
+   </bottom>
+   <center>
+      <AnchorPane minHeight="0.0" minWidth="0.0" style="-fx-background-color: #212121;" BorderPane.alignment="CENTER">
+		 <AnchorPane prefWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
+			<children>
+			   <Label onMouseClicked="#executeForm" text="Add" textFill="#9f9f9f" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0">
+				  <font>
+					 <Font name="System Bold" size="16.0" />
+				  </font>
+			   </Label>
+			</children>
+		 </AnchorPane>
+         <ScrollPane fitToHeight="true" fitToWidth="true" minHeight="0.0" AnchorPane.BottomAnchor="0" AnchorPane.LeftAnchor="0" AnchorPane.RightAnchor="0" AnchorPane.TopAnchor="0" AnchorPane.bottomAnchor="53.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="42.0">
+            <content>
+                 <VBox>
+					 <AnchorPane prefHeight="318.0" prefWidth="604.0" VBox.vgrow="NEVER">
+						<Label layoutX="24.0" layoutY="65.0" text="Title" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="13.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</Label>
+						<Pane layoutX="24.0" layoutY="74.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="33.0" />
+						<Pane layoutX="169.0" layoutY="96.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="33.0" />
+						<TextField id="actorName" fx:id="titleTextBox" layoutX="175.0" layoutY="47.0" maxWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="7.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</TextField>
+						<Label layoutX="23.0" layoutY="82.0" text="Cover Link" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="53.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</Label>
+						<Pane layoutX="29.0" layoutY="140.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="73.0" />
+						<Pane layoutX="174.0" layoutY="162.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="73.0" />
+						<TextField id="actorName" fx:id="urlTextBox" layoutX="180.0" layoutY="113.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="48.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</TextField>
+						<Label layoutX="16.0" layoutY="176.0" text="Genre" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="93.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</Label>
+						<Pane layoutX="22.0" layoutY="234.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="113.0" />
+						<Pane layoutX="167.0" layoutY="256.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="113.0" />
+						<TextField id="actorName" fx:id="genreTextBox" layoutX="221.0" layoutY="134.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="88.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</TextField>
+						<Label layoutX="26.0" layoutY="186.0" text="Year" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="133.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</Label>
+						<Pane layoutX="32.0" layoutY="244.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="153.0" />
+						<Pane layoutX="177.0" layoutY="266.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="153.0" />
+						<TextField id="actorName" fx:id="yearTextBox" layoutX="183.0" layoutY="217.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="128.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</TextField>
+						<Label layoutX="26.0" layoutY="186.0" text="Duration" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="173.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</Label>
+						<Pane layoutX="32.0" layoutY="244.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="193.0" />
+						<Pane layoutX="177.0" layoutY="266.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="193.0" />
+						<TextField id="actorName" fx:id="timeTextBox" layoutX="183.0" layoutY="217.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="168.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</TextField>
+						<Label layoutX="36.0" layoutY="196.0" text="Studio" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="213.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</Label>
+						<Pane layoutX="42.0" layoutY="254.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="233.0" />
+						<Pane layoutX="187.0" layoutY="276.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="233.0" />
+						<TextField id="actorName" fx:id="studioTextBox" layoutX="193.0" layoutY="227.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="208.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</TextField>
+						<Label layoutX="6.0" layoutY="291.0" text="Director" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="253.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</Label>
+						<Pane layoutX="12.0" layoutY="349.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="273.0" />
+						<Pane layoutX="157.0" layoutY="371.0" prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="273.0" />
+						<TextField id="actorName" fx:id="directorTextBox" layoutX="163.0" layoutY="322.0" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="248.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</TextField>
+						<Label layoutX="28.0" layoutY="333.0" text="Actor" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="293.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</Label>
+						<Pane layoutX="124.0" layoutY="370.0" minWidth="304.0" prefHeight="3.0" prefWidth="304.0" style="-fx-background-color: #9f9f9f;" visible="false" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="126.0" AnchorPane.topAnchor="313.0" />
+						<Pane layoutX="22.0" layoutY="359.0" maxHeight="1.0" maxWidth="150.0" minHeight="1.0" minWidth="150.0" prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="313.0" />
+						<Label layoutX="422.0" layoutY="378.0" text="Role" textFill="#9f9f9f" AnchorPane.rightAnchor="68.0" AnchorPane.topAnchor="293.0">
+						   <font>
+							  <Font size="14.0" />
+						   </font>
+						</Label>
+						<Pane layoutX="392.0" layoutY="369.0" maxHeight="1.0" maxWidth="64.0" minHeight="1.0" minWidth="64.0" prefHeight="1.0" prefWidth="64.0" style="-fx-background-color: #9f9f9f;" AnchorPane.rightAnchor="62.0" AnchorPane.topAnchor="313.0" />
+						<Label alignment="CENTER" layoutX="555.0" layoutY="323.0" onMouseClicked="#addActor" prefHeight="17.0" prefWidth="24.0" text="+" textFill="#9f9f9f" AnchorPane.rightAnchor="38.0" AnchorPane.topAnchor="283.0">
+						   <font>
+							  <Font name="System Bold" size="24.0" />
+						   </font>
+						</Label>
+						<Label alignment="CENTER" layoutX="495.0" layoutY="323.0" prefHeight="17.0" prefWidth="24.0" text="-" textFill="#9f9f9f" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="283.0">
+						   <font>
+							  <Font name="System Bold" size="24.0" />
+						   </font>
+						</Label>
+						<ScrollPane fx:id="actorsGrid" fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" layoutX="174.0" layoutY="362.0" minHeight="4.0" prefHeight="70.0" prefWidth="416.0" vbarPolicy="NEVER" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="173.0" AnchorPane.rightAnchor="123.0" AnchorPane.topAnchor="287.0">
+						   <content>
+							  <VBox fx:id="actorsGridAncor" prefHeight="200.0" prefWidth="100.0" style="-fx-background-color: transparent;" />
+						   </content>
+						</ScrollPane>
+					 </AnchorPane>
+					 <AnchorPane prefWidth="604.0" VBox.vgrow="SOMETIMES">
+						<children>
+						   <Label text="User Rating" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="6.0">
+							  <font>
+								 <Font size="14.0" />
+							  </font>
+						   </Label>
+						   <Pane prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="26.0" />
+						   <Pane prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="26.0" />
+						   <TextField fx:id="rateTextBox" maxWidth="150.0" minWidth="150.0" style="-fx-opacity: 1; -fx-background-color: transparent; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="1.0">
+							  <font>
+								 <Font size="14.0" />
+							  </font>
+						   </TextField>
+						   <Label text="Description" textFill="#9f9f9f" AnchorPane.leftAnchor="30.0" AnchorPane.topAnchor="46.0">
+							  <font>
+								 <Font size="14.0" />
+							  </font>
+						   </Label>
+						   <Pane prefHeight="1.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.leftAnchor="24.0" AnchorPane.topAnchor="66.0" />
+						   <TextArea fx:id="descriptionTextBox" minHeight="70.0" prefHeight="70.0" prefWidth="200.0" style="-fx-text-fill: #9f9f9f;" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="39.0">
+							  <font>
+								 <Font size="14.0" />
+							  </font>
+						   </TextArea>
+						   <Pane prefHeight="43.0" prefWidth="1.0" style="-fx-background-color: #9f9f9f;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.topAnchor="66.0" />
+						   <Pane prefHeight="3.0" prefWidth="150.0" style="-fx-background-color: #9f9f9f;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="174.0" AnchorPane.rightAnchor="14.0" />
+						</children>
+					 </AnchorPane>
+				  </VBox>
+            </content>
+         </ScrollPane>
+         <Label text="Add movie" textFill="#9f9f9f" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="14.0">
+            <font>
+               <Font size="24.0" />
+            </font>
+        	</Label>
+		</AnchorPane>
+   </center>
+   <left>
+      <Pane fx:id="borderLeft" maxWidth="5.0" prefWidth="10.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER" />
+   </left>
+   <top>
+      <AnchorPane fx:id="borderTop" maxHeight="24.0" prefHeight="24.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
+         <children>
+   	  	   		<Label fx:id="closeButton" onMouseClicked="#closeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="4.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="4.0">
+   	  		      <font>
+   	  		          <Font name="Arimo" size="12.0" />
+   	  		      </font>
+   	  		    </Label>
+   		    <Label fx:id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="4.0" AnchorPane.rightAnchor="24.0" AnchorPane.topAnchor="4.0">
+   		        <font>
+   		            <Font name="Arimo" size="12.0" />
+   		        </font>
+   		    </Label>
+            <Label layoutX="10.0" layoutY="2.0" text="Title" textFill="#9f9f9f" visible="false" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="2.0">
+               <font>
+                  <Font size="14.0" />
+               </font>
+            </Label>
+         </children>
+      </AnchorPane>
+   </top>
+</BorderPane>