src/authoring/views/EntityBuilderView.java
private void build() {
		HBox addImageMenu = new HBox();
		try {
			tooltipProperties.load(new FileInputStream("src/resources/tooltips/EntityBuilderViewTooltips.properties"));
			this.root = new VBox();
			this.root.setAlignment(Pos.CENTER);
			ComboBox<String> typeComboBox = buildTypeComboBox();
			addImageMenu = buildSingleButtonMenu("addImage", e -> {addImage();});
			this.entityPreview = new ImageView();

			File imageFile = new File("data/images/Collin.png");
			updateEntityPreview(SwingFXUtils.toFXImage(ImageIO.read(imageFile), null));
			this.root.getChildren().addAll(entityPreview, typeComboBox, addImageMenu, componentFormCollection);
			this.root.getStyleClass().add("entity-builder-view");
		}  catch (Exception e) {
			LOGGER.log(java.util.logging.Level.SEVERE, e.getMessage(), e);
		}

	}
/**
	 * Builds the view to be displayed
	 */
Builds the view to be displayed
Builds the view to be displayed
private void build() {
		HBox addImageMenu = new HBox();
		try {
			tooltipProperties.load(new FileInputStream("src/resources/tooltips/EntityBuilderViewTooltips.properties"));
			this.root = new VBox();
			this.root.setAlignment(Pos.CENTER);
			ComboBox<String> typeComboBox = buildTypeComboBox();
			addImageMenu = buildSingleButtonMenu("addImage", e -> {addImage();});
			this.entityPreview = new ImageView();
			File imageFile = new File("data/images/Collin.png");
			updateEntityPreview(SwingFXUtils.toFXImage(ImageIO.read(imageFile), null));
			this.root.getChildren().addAll(entityPreview, typeComboBox, addImageMenu, componentFormCollection);
			this.root.getStyleClass().add("entity-builder-view");
		}  catch (Exception e) {
			LOGGER.log(java.util.logging.Level.SEVERE, e.getMessage(), e);
		}
	}
private void build ( ) { HBox addImageMenu = new HBox ( ) ; try { tooltipProperties . load ( new FileInputStream ( "src/resources/tooltips/EntityBuilderViewTooltips.properties" ) ) ; this . root = new VBox ( ) ; this . root . setAlignment ( Pos . CENTER ) ; ComboBox < String > typeComboBox = buildTypeComboBox ( ) ; addImageMenu = buildSingleButtonMenu ( "addImage" , e -> { addImage ( ) ; } ) ; this . entityPreview = new ImageView ( ) ; File imageFile = new File ( "data/images/Collin.png" ) ; updateEntityPreview ( SwingFXUtils . toFXImage ( ImageIO . read ( imageFile ) , null ) ) ; this . root . getChildren ( ) . addAll ( entityPreview , typeComboBox , addImageMenu , componentFormCollection ) ; this . root . getStyleClass ( ) . add ( "entity-builder-view" ) ; } catch ( Exception e ) { LOGGER . log ( java . util . logging . Level . SEVERE , e . getMessage ( ) , e ) ; } }
Builds the view to be displayed
Builds the view to be displayed