SlideShare une entreprise Scribd logo
1  sur  15
María Dolores Vivancos Abad
UNIT 2
CREATING A
SIMULATION
SCENARIO WITH
JAVAFX 2.0
María Dolores Vivancos Abad
In this Unit…
 We are going to develop an application to apply all concepts of
prevention, acquired in previous units, which will be implemented for
the prevention and resolution of an emergency.
 First of all, we create the scenarios where the action will be placed. In this case,
an office building with ground floor, first floor and parking..
 Sequence of steps:
– Create scenarios: Images with flat floor, first floor and parking.
– Create a menu for changing between different scenarios of the building.
– Insert a button for creating an emergency situation (in this case, a fire).
– We show the emergency situation introducing new visual elements in the
scene, like fire, smoke…
– Insert a button to create the necessary notices in case of an emergency
situation.
María Dolores Vivancos Abad
STEP 1. CREATING A SCENE OF
ACTION
 First, create the scenario of the ground floor.
 We associate the image of the ground floor.
 Remember to set a width and height for the image and to add the imageView
to the Group element.
Image d = new Image("planta_baja.png");
ImageView image = new ImageView();
image.setImage(d);
María Dolores Vivancos Abad
STEP 1. CREATING A SCENE OF
ACTION
 We do the same with the others images of the building: First floor and parking.
Image d1 = new Image("primera_planta.png");
Image d2 = new Image("parking.png");
First floor:
María Dolores Vivancos Abad
STEP 1. CREATING A SCENE OF
ACTION
Parking:
Advice: For using images, you have to put them into the src folder.
María Dolores Vivancos Abad
STEP 2. CREATING A MENU TO
CHANGE THE SETTING
 We are going to create a menu to choose between the various stages
of building.
MenuBar menuBar = new MenuBar();
Menu menu = new Menu("Escenarios");
MenuItem menuitem1=new MenuItem("Primera Planta");
MenuItem menuitem2=new MenuItem("Planta Baja");
MenuItem menuitem3=new MenuItem("Parking");
María Dolores Vivancos Abad
STEP 2. CREATING A MENU TO
CHANGE THE SETTING
 The next thing is to establish a new scenario each time you change
the option in the menu.
menuitem1.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent t) {
image.setImage(d);
}
});
menuitem2.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent t) {
image.setImage(d1);
}
});
menuitem3.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent t) {
image.setImage(d2);
}
});
María Dolores Vivancos Abad
STEP 2. CREATING A MENU TO
CHANGE THE SETTING
María Dolores Vivancos Abad
STEP 3. INSERT EXTINGUISHING
MEDIA
 We have different extinction elements that we need to put in the stage, using
the theory of prevention:
 You can search for other images or use these.
 Using the theory you have learned, you have to position these elements in the
correct zone for proper use.
María Dolores Vivancos Abad
STEP 3. INSERT EXTINGUISHING
MEDIA
 Example:
 Important: You have to put your elements in the stage, so you
need to specify the x position and the y position for your element.
Image img = new Image(getClass().getResourceAsStream("fuego.jpg"));
ImageView imgv1= new ImageView(img);
imgv1.setFitWidth(40);
imgv1.setFitHeight(40);
Label fuego1= new Label("",imgv1);
fuego1.setLayoutX(160);
fuego1.setLayoutY(500);
fuego1.setLayoutX(160);
fuego1.setLayoutY(500);
María Dolores Vivancos Abad
STEP 4. INSERT NEW ELEMENTS TO
SIMULATE EMERGENCY
 Insert a button whose action is to generate the fire.
 How can we show the fire? We can insert a fire image in the position
where the fire has been iniciate.
 Fire image:
Image img = new
Image(getClass().getResourceAsStream("fuego.jpg"));
ImageView imgv= new ImageView(img);
Label fuego= new Label("",imgv);
fuego.setLayoutX(250);
fuego.setLayoutY(500);
María Dolores Vivancos Abad
STEP 4. INSERT NEW ELEMENTS TO
SIMULATE EMERGENCY
 Create the button:
 We now indicate the button’s action is showing images of the fire:
boton1.setOnAction(new EventHandler<ActionEvent>() {
Image img = new Image(getClass().getResourceAsStream("fuego.jpg"));
ImageView imgv1= new ImageView(img);
imgv1.setFitWidth(40);
imgv1.setFitHeight(40);
Label fuego1= new Label("",imgv1);
fuego1.setLayoutX(160);
fuego1.setLayoutY(500);
}
final Button boton1 = new Button("Generar Incendio");
María Dolores Vivancos Abad
STEP 5: Advisories
 We will indicate with messages, which entities are what we need to be
alerted when the alarm was generated.
 You have to get that information on the documents: Who should be
notified when an emergency situation is generated?
 We do this using label elements.
 For example:
Label l1 = new Label("Director del plan de
autoprotección");
María Dolores Vivancos Abad
STEP 5: Advisories
 Who generates the messages?
 We can create a button that on setOnAction button function will
generate the Label elements.
 We’ll press the button after the emergency’s been generated.
Button btnpersonal = new Button("Generar Avisos Equipos de
Intervención");
btnpersonal.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent e) {
Label l1 = new Label("Director del plan de
autoprotección");
l1.setLayoutX(1160);
l1.setLayoutY(10);
root.getChildren().add(l1);
}
});
María Dolores Vivancos Abad
STEP 5: Advisories
 Notice that the size of the scene should be bigger than the
image’s size. This way, we have enough white space for
showing the messages of advice.
 Now you have to continue with the other messages…

Contenu connexe

Similaire à Unidad 2. creación_de_un_escenario_de_simulación_con_jav afx

Android animations
Android animationsAndroid animations
Android animationsKumar
 
Modify the following source code so that when the mouse is clicked w.pdf
Modify the following source code so that when the mouse is clicked w.pdfModify the following source code so that when the mouse is clicked w.pdf
Modify the following source code so that when the mouse is clicked w.pdfarorastores
 
Creating a Facebook Clone - Part XLII - Transcript.pdf
Creating a Facebook Clone - Part XLII - Transcript.pdfCreating a Facebook Clone - Part XLII - Transcript.pdf
Creating a Facebook Clone - Part XLII - Transcript.pdfShaiAlmog1
 
360 Flex Atlanta
360 Flex Atlanta360 Flex Atlanta
360 Flex Atlantartretola
 

Similaire à Unidad 2. creación_de_un_escenario_de_simulación_con_jav afx (9)

Android animations
Android animationsAndroid animations
Android animations
 
Modify the following source code so that when the mouse is clicked w.pdf
Modify the following source code so that when the mouse is clicked w.pdfModify the following source code so that when the mouse is clicked w.pdf
Modify the following source code so that when the mouse is clicked w.pdf
 
Notification android
Notification androidNotification android
Notification android
 
XNA coding series
XNA coding seriesXNA coding series
XNA coding series
 
Creating a Facebook Clone - Part XLII - Transcript.pdf
Creating a Facebook Clone - Part XLII - Transcript.pdfCreating a Facebook Clone - Part XLII - Transcript.pdf
Creating a Facebook Clone - Part XLII - Transcript.pdf
 
360 Flex Atlanta
360 Flex Atlanta360 Flex Atlanta
360 Flex Atlanta
 
Maya
MayaMaya
Maya
 
Unit 1 informatica en ingles
Unit 1 informatica en inglesUnit 1 informatica en ingles
Unit 1 informatica en ingles
 
Unit i informatica en ingles
Unit i informatica en inglesUnit i informatica en ingles
Unit i informatica en ingles
 

Plus de Marisa Torrecillas (20)

Unidad 0 (nueva) español
Unidad 0 (nueva) españolUnidad 0 (nueva) español
Unidad 0 (nueva) español
 
Unit 2 english
Unit 2  englishUnit 2  english
Unit 2 english
 
Unidad 2(español)
Unidad 2(español)Unidad 2(español)
Unidad 2(español)
 
Unit 1 english
Unit 1 englishUnit 1 english
Unit 1 english
 
Unidad 1 (español)
Unidad 1 (español)Unidad 1 (español)
Unidad 1 (español)
 
Unit 0 english
Unit 0  englishUnit 0  english
Unit 0 english
 
Unidad 2. creación_de_un_escenario_de_simulación_con_jav afx_español
Unidad 2. creación_de_un_escenario_de_simulación_con_jav afx_españolUnidad 2. creación_de_un_escenario_de_simulación_con_jav afx_español
Unidad 2. creación_de_un_escenario_de_simulación_con_jav afx_español
 
Unidad 1 (español)
Unidad 1 (español)Unidad 1 (español)
Unidad 1 (español)
 
Contrastive essay
Contrastive essayContrastive essay
Contrastive essay
 
Ed and –ing clauses
Ed and –ing clausesEd and –ing clauses
Ed and –ing clauses
 
Information and techonology texts
Information and techonology textsInformation and techonology texts
Information and techonology texts
 
Plan de autoproteccion
Plan de autoproteccionPlan de autoproteccion
Plan de autoproteccion
 
Unidad o informatica
Unidad o informaticaUnidad o informatica
Unidad o informatica
 
Unidad o informatica en ingles
Unidad o informatica en inglesUnidad o informatica en ingles
Unidad o informatica en ingles
 
PRESENT PERFECT VS PAST SIMPLE IN ENGLISH
PRESENT PERFECT VS PAST SIMPLE IN ENGLISHPRESENT PERFECT VS PAST SIMPLE IN ENGLISH
PRESENT PERFECT VS PAST SIMPLE IN ENGLISH
 
First aids 3
First aids 3First aids 3
First aids 3
 
Fr señales de seguridad
Fr señales de seguridadFr señales de seguridad
Fr señales de seguridad
 
éCrans fr definitif
éCrans fr  definitiféCrans fr  definitif
éCrans fr definitif
 
Fr primeros auxilios-2
Fr primeros auxilios-2Fr primeros auxilios-2
Fr primeros auxilios-2
 
Primeros auxilios
Primeros auxiliosPrimeros auxilios
Primeros auxilios
 

Dernier

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Dernier (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

Unidad 2. creación_de_un_escenario_de_simulación_con_jav afx

  • 1. María Dolores Vivancos Abad UNIT 2 CREATING A SIMULATION SCENARIO WITH JAVAFX 2.0
  • 2. María Dolores Vivancos Abad In this Unit…  We are going to develop an application to apply all concepts of prevention, acquired in previous units, which will be implemented for the prevention and resolution of an emergency.  First of all, we create the scenarios where the action will be placed. In this case, an office building with ground floor, first floor and parking..  Sequence of steps: – Create scenarios: Images with flat floor, first floor and parking. – Create a menu for changing between different scenarios of the building. – Insert a button for creating an emergency situation (in this case, a fire). – We show the emergency situation introducing new visual elements in the scene, like fire, smoke… – Insert a button to create the necessary notices in case of an emergency situation.
  • 3. María Dolores Vivancos Abad STEP 1. CREATING A SCENE OF ACTION  First, create the scenario of the ground floor.  We associate the image of the ground floor.  Remember to set a width and height for the image and to add the imageView to the Group element. Image d = new Image("planta_baja.png"); ImageView image = new ImageView(); image.setImage(d);
  • 4. María Dolores Vivancos Abad STEP 1. CREATING A SCENE OF ACTION  We do the same with the others images of the building: First floor and parking. Image d1 = new Image("primera_planta.png"); Image d2 = new Image("parking.png"); First floor:
  • 5. María Dolores Vivancos Abad STEP 1. CREATING A SCENE OF ACTION Parking: Advice: For using images, you have to put them into the src folder.
  • 6. María Dolores Vivancos Abad STEP 2. CREATING A MENU TO CHANGE THE SETTING  We are going to create a menu to choose between the various stages of building. MenuBar menuBar = new MenuBar(); Menu menu = new Menu("Escenarios"); MenuItem menuitem1=new MenuItem("Primera Planta"); MenuItem menuitem2=new MenuItem("Planta Baja"); MenuItem menuitem3=new MenuItem("Parking");
  • 7. María Dolores Vivancos Abad STEP 2. CREATING A MENU TO CHANGE THE SETTING  The next thing is to establish a new scenario each time you change the option in the menu. menuitem1.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { image.setImage(d); } }); menuitem2.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { image.setImage(d1); } }); menuitem3.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { image.setImage(d2); } });
  • 8. María Dolores Vivancos Abad STEP 2. CREATING A MENU TO CHANGE THE SETTING
  • 9. María Dolores Vivancos Abad STEP 3. INSERT EXTINGUISHING MEDIA  We have different extinction elements that we need to put in the stage, using the theory of prevention:  You can search for other images or use these.  Using the theory you have learned, you have to position these elements in the correct zone for proper use.
  • 10. María Dolores Vivancos Abad STEP 3. INSERT EXTINGUISHING MEDIA  Example:  Important: You have to put your elements in the stage, so you need to specify the x position and the y position for your element. Image img = new Image(getClass().getResourceAsStream("fuego.jpg")); ImageView imgv1= new ImageView(img); imgv1.setFitWidth(40); imgv1.setFitHeight(40); Label fuego1= new Label("",imgv1); fuego1.setLayoutX(160); fuego1.setLayoutY(500); fuego1.setLayoutX(160); fuego1.setLayoutY(500);
  • 11. María Dolores Vivancos Abad STEP 4. INSERT NEW ELEMENTS TO SIMULATE EMERGENCY  Insert a button whose action is to generate the fire.  How can we show the fire? We can insert a fire image in the position where the fire has been iniciate.  Fire image: Image img = new Image(getClass().getResourceAsStream("fuego.jpg")); ImageView imgv= new ImageView(img); Label fuego= new Label("",imgv); fuego.setLayoutX(250); fuego.setLayoutY(500);
  • 12. María Dolores Vivancos Abad STEP 4. INSERT NEW ELEMENTS TO SIMULATE EMERGENCY  Create the button:  We now indicate the button’s action is showing images of the fire: boton1.setOnAction(new EventHandler<ActionEvent>() { Image img = new Image(getClass().getResourceAsStream("fuego.jpg")); ImageView imgv1= new ImageView(img); imgv1.setFitWidth(40); imgv1.setFitHeight(40); Label fuego1= new Label("",imgv1); fuego1.setLayoutX(160); fuego1.setLayoutY(500); } final Button boton1 = new Button("Generar Incendio");
  • 13. María Dolores Vivancos Abad STEP 5: Advisories  We will indicate with messages, which entities are what we need to be alerted when the alarm was generated.  You have to get that information on the documents: Who should be notified when an emergency situation is generated?  We do this using label elements.  For example: Label l1 = new Label("Director del plan de autoprotección");
  • 14. María Dolores Vivancos Abad STEP 5: Advisories  Who generates the messages?  We can create a button that on setOnAction button function will generate the Label elements.  We’ll press the button after the emergency’s been generated. Button btnpersonal = new Button("Generar Avisos Equipos de Intervención"); btnpersonal.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent e) { Label l1 = new Label("Director del plan de autoprotección"); l1.setLayoutX(1160); l1.setLayoutY(10); root.getChildren().add(l1); } });
  • 15. María Dolores Vivancos Abad STEP 5: Advisories  Notice that the size of the scene should be bigger than the image’s size. This way, we have enough white space for showing the messages of advice.  Now you have to continue with the other messages…