package view;

import javafx.beans.property.ReadOnlyDoubleProperty;
import javafx.scene.Scene;
import javafx.scene.control.TabPane;
import enums.GUISize;

public class Authoring {

		private static Scene myScene;

		/**
		 * Constructor that takes in the language choice of the user.
		 * @param language that the user chooses the program from.
		 */
		public Authoring(String lang){
			
		}

		/**
		 * Initializes the scene which is displayed in the window.
		 * @return the splash screen scene
		 */
		
		public Scene init(ReadOnlyDoubleProperty height, ReadOnlyDoubleProperty width){
			TabPane display = new TabPane();
			display.prefHeightProperty().bind(height);
			display.prefWidthProperty().bind(width);
			myScene = new Scene(display,GUISize.AUTHORING_START.getSize(), GUISize.AUTHORING_START.getSize());
			return myScene;
		}
		

	}


@@ -81,21 +81,81 @@
 x.scene.
-Scene
+Group;%0Aimport javafx.scene.Scene;%0Aimport javafx.scene.control.Tab
 ;%0Aimport
@@ -181,24 +181,59 @@
 ol.TabPane;%0A
+%0Aimport java.util.ResourceBundle;%0A%0A
 import enums
@@ -268,16 +268,18 @@
 oring %7B%0A
+%09%09
 %0A%09%09priva
@@ -285,28 +285,86 @@
 ate 
-static Scene myScene
+ResourceBundle myResources;%0A%09%09private Scene myScene;%0A%09%09private TabPane display
 ;%0A%0A%09
@@ -535,16 +535,76 @@
 ng)%7B%0A%09%09%09
+myResources = ResourceBundle.getBundle(%22resources/english%22);
 %0A%09%09%7D%0A%0A%09%09
@@ -799,24 +799,16 @@
 th)%7B%0A%09%09%09
-TabPane 
 display 
@@ -1016,16 +1016,16 @@
 ize());%0A
-
 %09%09%09retur
@@ -1041,14 +1041,190 @@
 ;%0A%09%09%7D%0A%09%09
+%0A%09%09public void createTab(Group tabContent, String key)%7B%0A%09%09%09Tab tab = new Tab(myResources.getString(key));%0A%09%09%09tab.setContent(tabContent);%0A%09%09%09display.getTabs().add(tab);%0A%09%0A%09%09%7D%0A%09%09
 %0A%0A%09%7D%0A%0A

create tabs