American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

3 PM – Intro To Java

June 6, 2020 @ 3:00 pm - 4:00 pm

  1. We went over how to connect TextField in FXML file into the Controller class.
  2. We went over how to do FlowPane.
  3. Homework:
    1. In the FlowPane project that we did in the class, we added 8 buttons and 1 text field.
    2. Add one Label at the very end. After the 8th button. Make the label says “place holder” and set the color to blue.
    3. Add a code in the controller to do the following
      1. if button number 1 is pressed, it will take text from the text field, and set the Label text from “place holder” to “Hello <text from textfield>”
      2. if button number 2 is pressed, it will get the text from the text field and set the text inside Label ten times. Use for loop. For instance, if user enter “Gamas” in the text field, when number 2 is pressed, the Label will become “Gamas Gamas Gamas Gamas Gamas Gamas Gamas Gamas Gamas Gamas”.
      3. if button number 3 is pressed, it will take whatever text from the text field and set the Label text 3 times. If user enter “Hello World”, the label will become “Hello World Hello World Hello World”. Use for loop.

Details

Date:
June 6, 2020
Time:
3:00 pm - 4:00 pm
Event Category:
Verified by MonsterInsights