题目
多项填空题
Given the following code: These nodes are used to construct the following app: Fill in the missing code which sets the event handler for helloButton. helloButton.[Fill in the blank] (event [Fill in the blank] { label.setText([Fill in the blank] ); });

查看解析
标准答案
Please login to view
思路分析
We need to fill in the missing code to attach an event handler to helloButton that updates the label when the button is clicked.
Option sequence analysis:
- The first blank should be the method that wires an action handler to the button. For JavaFX Buttons, this is setOnAction. Using setOnAction registers a handler that reacts to ActionEvent when the user presses the button.
- The second blank is the lambda's parameter li......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!