controller/Controller.java
public void acessarRCEscritor(int id) throws Exception {
    Platform.runLater(() -> {
      switch(id){
      case 0:
        imageViewQuadro.setImage(new Image("images/equation1.jpg"));
        break;
      case 1:
        imageViewQuadro.setImage(new Image("images/equation2.jpg"));
        break;
      case 2:
        imageViewQuadro.setImage(new Image("images/equation3.jpg"));
        break;
      case 3:
        imageViewQuadro.setImage(new Image("images/equation4.jpg"));
        break;
      case 4:
        imageViewQuadro.setImage(new Image("images/equation5.jpg"));
        break;
    }
    });
    
  }
/************************************************************************
   * Metodo: acessarRCEscritor
   * Funcao: escritor acessa o recurso compartilhado
   * Parametros: int -> ID
   * Retorno: void
   ***********************************************************************/
acessarRCEscritor
Funcao: escritor acessa o recurso compartilhado
Parametros: int -> ID
Retorno: void
acessarRCEscritor Funcao : escritor acessa o recurso compartilhado Parametros : int - > ID Retorno : void
public void acessarRCEscritor(int id) throws Exception {
    Platform.runLater(() -> {
      switch(id){
      case 0:
        imageViewQuadro.setImage(new Image("images/equation1.jpg"));
        break;
      case 1:
        imageViewQuadro.setImage(new Image("images/equation2.jpg"));
        break;
      case 2:
        imageViewQuadro.setImage(new Image("images/equation3.jpg"));
        break;
      case 3:
        imageViewQuadro.setImage(new Image("images/equation4.jpg"));
        break;
      case 4:
        imageViewQuadro.setImage(new Image("images/equation5.jpg"));
        break;
    }
    });
  }
public void acessarRCEscritor ( int id ) throws Exception { Platform . runLater ( ( ) -> { switch ( id ) { case 0 : imageViewQuadro . setImage ( new Image ( "images/equation1.jpg" ) ) ; break ; case 1 : imageViewQuadro . setImage ( new Image ( "images/equation2.jpg" ) ) ; break ; case 2 : imageViewQuadro . setImage ( new Image ( "images/equation3.jpg" ) ) ; break ; case 3 : imageViewQuadro . setImage ( new Image ( "images/equation4.jpg" ) ) ; break ; case 4 : imageViewQuadro . setImage ( new Image ( "images/equation5.jpg" ) ) ; break ; } } ) ; }
Metodo: acessarRCEscritor
 Funcao: escritor acessa o recurso compartilhado
 Parametros: int -> ID
 Retorno: void
Metodo : acessarRCEscritor Funcao : escritor acessa o recurso compartilhado Parametros : int - > ID Retorno : void