Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. *Which of the following statements are true? A Circle is a Shape. A Shape can fire an ActionEvent. A Shape can fire a KeyEvent.

1. *Which of the following statements are true?

A Circle is a Shape.

A Shape can fire an ActionEvent.

A Shape can fire a KeyEvent.

A Shape can fire a MouseEvent.

A Text is a Shape.

2.

To add a node to the the first row and second column in a GridPane pane, use ________.

a

.pane.getChildren().add(node, 0, 1);

b.

pane.add(node, 1, 2);

c.

pane.add(node, 1, 0);

d.

pane.add(node, 0, 1);

e.pane.getChildren().add(node, 1, 2);

3.

Fill in the code below in the underline: public class Test { public static void main(String[] args) { Test test = new Test(); test.setAction(________); } public void setAction(T1 t) { t.m(); } } interface T1 { public void m(); }

a.

System.out.print("Action 1! ")

b.

() -> System.out.print("Action 1! ")

c.

(e) -> System.out.print("Action 1! ")

d.

(e) -> {System.out.print("Action 1! ")}

4. ________ are properties for a ListView.

orientation

visibleRowCount

onAction

selectionModel

items

5.*________ is a superclass for Button.

Node

Label

Control

ButtonBase

Labelled

6.

The method ________ adds an item s into a ComboBox cbo.

a.

cbo.addObject(s)

b.

cbo.addItem(s)

c.

cbo.getItems().add(s)

d.

cbo.addChoice(s)

cbo.add(s)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions