@@ -0,0 +1,1505 @@
+package gui.modal;%0A%0A%0Aimport data.Instrument;%0Aimport gui.root.RootPane;%0Aimport gui.styling.StyledButton;%0Aimport javafx.scene.layout.VBox;%0Aimport lombok.Getter;%0A%0Apublic class AddInstrumentModalView extends CameraModificationModalView %7B%0A%0A    private static final int WIDTH = 400;%0A    private static final int HEIGHT = 300;%0A    %0A    @Getter%0A    private StyledButton addInstrumentButton;%0A    %0A    public AddInstrumentModalView(RootPane rootPane) %7B%0A        this(rootPane, WIDTH, HEIGHT);%0A    %7D%0A    %0A    public AddInstrumentModalView(RootPane rootPane, int width, int height) %7B%0A        super(rootPane, width, height);%0A        initializeView();%0A    %7D%0A    %0A    public AddInstrumentModalView(RootPane rootPane, Instrument instrument) %7B%0A        this(rootPane, WIDTH, HEIGHT);%0A        this.nameField.setText(instrument.getName());%0A        this.descriptionField.setText(instrument.getDescription());%0A        this.addInstrumentButton.setText(%22Save%22);%0A        this.titleLabel.setText(%22Edit an instrument%22);%0A    %7D%0A    %0A    private void initializeView() %7B%0A        // force minimum size%0A        forceBounds(HEIGHT, WIDTH);%0A        %0A        this.viewPane = new VBox();%0A        initTitleLabel();%0A        initButtons();%0A        %0A        super.setModalView(this.viewPane);%0A        super.displayModal();%0A    %7D%0A    %0A    private void initButtons() %7B%0A        addInstrumentButton = createButton(%22Add%22, false);%0A        initCancelButton();%0A        initHBoxForButtons().getChildren().addAll(addInstrumentButton, cancelButton);%0A    %7D%0A%7D%0A

Create instrument modal