Graphics with JavaFX Flashcards

1
Q

1) AWT

A______________ W___________________ T_________________

Used in the early days.

A

Abstract Window Toolkit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

2) Purpose of AWT

The idea with AWT was to provide a system of graphics in which any component that we create is associated with the corresponding component in the n_______ operating system.

So, if you used Windows, the buttons and other elements that you created would look like normal Windows buttons and elements.

A

native

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

3) Pros of AWT

a) familiarity - the graphics that you created would be the same as the WindowsTM graphics.

N.B. Components that rely on the native operating system make extensive use of the system’s resources and are therefore described as h_________ components.

A

heavyweight

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

4) Cons of AWT

a) Used a lot of resources
b) functional differences between o_________ systems

A

operating

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

5) Swing

AWT was replaced by a package called Swing.

Swing classes are for the most part written in Java.

They do not rely on the system components they are known as l___________
components.

Swing was the main platform for producing Java Graphics from 2000 - ________

A

lightweight
2014

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

6) AWT Vs Swing

Unlike AWT, Swing c_____________ look the same regardless of the operating system
the program is running on.

A

components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

7) JavaFX the new technology

Swing’s look and feel became rather old-fashioned compared to today’s graphics.

With the release of Java __ in 2014 came the latest version of a new technology known as JavaFX.

It was also announced that Swing will not be d________ f_________ (although it will continue to be packaged with Java).

A

8
developed further

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

8) JavaFX

A JavaFX program is referred to as an a____________.

Your JavaFX class will extend the Application class, for which you need the following import statement:

import javafx.application.Application

A

application

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

9) Stage

The window in which an application is run is called a stage.

If you run the program in full-screen mode, then the screen becomes the stage.

Some applications can be made to run in a browser, in which case the browser is the stage.

So basically, the area in which the program is run, is called the ‘Stage’.

Q: What do you think the contents of the stage are called?

A

A: The scene/scenes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

10) Scenes

The contents of the stage—the graphic itself (in its entirety) —is called a scene, and is often referred to as a
s______ g_______.

A

scene graphic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

11) Nodes

The items that make up the scene are referred to as nodes.
E.g. Buttons, text fields, labels, and checkboxes, which are often referred to collectively as c_______.

They can also be 2D or 3D graphics shapes.

A

controls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

12) Nodes as Containers

Containers are c__________ that hold other n________, and each container arranges the nodes in a particular way—for example, vertically, horizontally, in a grid, or stacked one on top of the other.
Normally, we wouldn’t see the container.

A

components
nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

13) Containers

Importantly, containers can contain other containers, so we can develop a h_________ in our scene. We normally place a single top level node in our scene, and this is referred to as the r_____ node. We use the terms parent and
children for the containing and contained nodes respectively.

A

hierarchy
root

How well did you know this?
1
Not at all
2
3
4
5
Perfectly