JavaFX and Object-Oriented Programming Concepts

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

1/50

flashcard set

Earn XP

Description and Tags

These flashcards cover important terminology and concepts related to JavaFX and object-oriented programming.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

51 Terms

1
New cards

AnimationTimer

A JavaFX class that helps create game loops or animations by calling handle(long now) on each frame.

2
New cards

Application

The base JavaFX class used to create GUI applications, where you extend and override the start() method.

3
New cards

BorderPane

A JavaFX layout that arranges nodes in top, bottom, left, right, and center regions.

4
New cards

Button

A clickable component that can trigger actions via setOnAction().

5
New cards

catch block

Handles exceptions thrown inside a try block.

6
New cards

checked exception

An exception that a programmer is expected to handle within the program.

7
New cards

Color

Represents colors used in JavaFX, e.g., for backgrounds or shapes.

8
New cards

Exception

An unexpected incident that stops the normal execution of a program.

9
New cards

FlowPane

A layout pane that arranges nodes in a flow, wrapping to the next line when needed.

10
New cards

GridPane

A layout pane that places components in a flexible grid of rows and columns.

11
New cards

HBox

Layouts that arrange components horizontally.

12
New cards

JavaFX lambda expression

A shorter way to write an implementation of a functional interface.

13
New cards

MouseListener

An interface in JavaFX used to handle basic mouse events, such as clicks and presses.

14
New cards

MouseMotionListener

An interface in JavaFX used to track mouse movement events, such as dragging and moving.

15
New cards

Scene

Contains the layout (like a Pane) and components to be displayed in the Stage.

16
New cards

StackPane

A layout pane that stacks all child nodes on top of each other.

17
New cards

Stage

The top-level window in a JavaFX application.

18
New cards

start()

Method that must be overridden from the Application class.

19
New cards

try block

Surrounds code that might throw an exception.

20
New cards

VBox

Layouts that arrange components vertically.

21
New cards

Encapsulation

A pillar of object-oriented programming that facilitates changes to the implementation of a class.

22
New cards

Inheritance

A method of code reuse that allows you to define a new class by extending the data fields and methods of an existing class.

23
New cards

Polymorphism

OOP concept: one interface, many implementations (e.g., different classes using the same method name differently).

24
New cards

Abstraction

Hiding implementation from use.

25
New cards

Node

The base class for all visual components in a JavaFX scene graph.

26
New cards

Abstract classes

A class that cannot be instantiated as an object, but is the superclass for a subclass.

27
New cards

Concrete class

A fully implemented class that can be instantiated.

28
New cards

Interfaces

A reference type in Java that can contain abstract methods to be implemented by classes.

29
New cards

Public

Accessible by self, derived classes, and everyone else.

30
New cards

Private

Accessible by self.

31
New cards

Default

Accessible by self and other classes in the same package.

32
New cards

Protected

Accessible by self, derived classes, and other classes in the same package.

33
New cards

Exception Types

Categories like ArithmeticException, IOException, RuntimeException.

34
New cards

Finally block

Optional block after try/catch that runs regardless of whether an exception was thrown.

35
New cards

Source object

The component that generated an event.

36
New cards

Event object

Contains information about the event that occurred.

37
New cards

Listener object

An object that waits for an event to occur and handles it.

38
New cards

Register object

Registers a listener with a GUI component so it will listen for events.

39
New cards

GUI

A program interface that uses graphics (windows, buttons, etc.) rather than command-line input.

40
New cards

InputMismatchException

Thrown when user input does not match the expected type.

41
New cards

FileNotFoundException

Thrown when an attempt to open a file fails because the file doesn't exist.

42
New cards

ArrayIndexOutOfBoundsException

Thrown when trying to access an array with an invalid index.

43
New cards

ArithmeticException

Thrown when an illegal math operation occurs, like dividing by zero.

44
New cards

Pane

A generic container for layout management.

45
New cards

EventHandler

An interface for defining actions to take when events occur, like a button press.

46
New cards

ActionEvent

The event object generated when an action (like clicking a button) occurs.

47
New cards

Throws Clause

Declares that a method may throw certain exceptions.

48
New cards

Unchecked Exceptions

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

49
New cards

abstract method

A method that is not implemented in the base class, thus all derived classes must override the method.

50
New cards

Static Methods

A method that belongs to a class rather than an instance of the class.

51
New cards

Abstract Window Toolkit (AWT)

an application program interface (API) included in the original Java UI framework that supports simple graphical user interface programming; Swing classes are built on top of this; packages start with java.awt