JavaFX / Exam 3

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/35

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

36 Terms

1
New cards

JavaFX

a set of packages and APIs for developing programs with graphical user interfaces, 3D graphics, etc.

2
New cards

graphical user interface (GUI)

enables the user to interface with a program using graphical components, such as windows, buttons, text boxes, etc.

3
New cards

Application

a JavaFX class that provides the basic functionality for a JavaFX program

4
New cards

Stage

a JavaFX top-level container that contains all content within a window

5
New cards

Scene

a JavaFX component that contains all graphical components that are displayed together

6
New cards

Pane

JavaFX component that controls the layout, i.e., position and size, of graphical components

7
New cards

TextField

a JavaFX GUI component that enables a programmer to display a line of text

8
New cards

GridPane

JavaFX Pane component that positions graphical components in a two-dimensional grid

9
New cards

Label

a JavaFX component that displays non-editable text

10
New cards

Button

a JavaFX GUI component that represents a labeled button that a user can press to interact with a program

11
New cards

action event

(an object) that notifies the program of the occurrence of a component-related event

12
New cards

event handler

(an object) that defines how a program should respond to specific events

13
New cards

Alert

a separate JavaFX window, also known as a dialog or pop-up window, that displays a message to the user

14
New cards

graphical application

a program that displays drawings and other graphical objects

15
New cards

Canvas

an image onto which graphical objects can be drawn

16
New cards

GraphicContext

an object that supports drawing shapes on a Canvas

17
New cards

Color

an object that represents a color

18
New cards

BorderPane

a layout container that divides its area into five regions: top, left, right, bottom, and center

19
New cards

FlowPane

a layout container that arranges its child nodes in a flow, wrapping them onto the next row or column if there isn't enough space in the current one

20
New cards

HBox

a layout component which positions all its child nodes (components) in a horizontal row

21
New cards

VBox

a layout component which positions all its child nodes (components) in a vertical column - on top of each other

22
New cards

lambda expressions

a short block of code which takes in parameters and returns a value and doesn’t have a name

23
New cards

Node

Each item in the scene graph

24
New cards

Encapsulation

making properties private and defining getter and setter methods to access them

25
New cards

try block

surrounds normal code, which is exited immediately if a statement within the try block throws an exception.

26
New cards

catch block

catches an exception thrown in a preceding try block. If the thrown exception's type matches the catch block's parameter type, the code within the catch block executes.

27
New cards

exception

an unexpected incident that stops the normal execution of a program

28
New cards

throw

throws a throwable object, like an exception, during program execution

29
New cards

throws clause

specifies the types of exceptions that a method may throw and callers of the method should handle

30
New cards

checked exception

an exception that a programmer is expected to handle within the program

31
New cards

unchecked exception

an exception that a programmer is not expected to catch and handle at runtime

32
New cards

catch or specify requirement

requires methods to either catch a checked exception using a catch block, or specify that the method throws the checked exception using a throws clause

33
New cards

try-with-resources

declares closable resources, like files, within parentheses after the try keyword and before the try's opening curly brace

34
New cards

finally block

always executes when a try block exits

35
New cards
36
New cards