Graphical User Interface Flashcards

1
Q

Procedural programming

A

is about writing procedures or methods that perform
operations on the data

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

Object-oriented programming(OOP)

A

about creating objects that contain both data and
methods.
● OOP permits higher level of abstraction than traditional procedural-Oriented
Languages (such as C).

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

You can create high-level abstract data types called classes

A

mimic real-life
things.
● These classes are self-contained and are reusable.

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

Graphical User Interface (GUI)

A

A graphical user interface (GUI) is a system of interactive visual components for computer software. A GUI allows a user to communicate with a computer through the use of symbols, icons, menus, and pointing devices. A GUI displays objects that convey information and represent actions that can be taken by the user.

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

Ide

A

Integrated development environments, or IDEs, are software platforms that provide programmers and developers a comprehensive set of tools for software development in a single product. IDEs are built to work with specific application platforms and remove barriers involved in the lifecycle of software development.

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

API is the acronym for

A

application programming interface
● a software intermediary that allows two applications to talk to each other.
● APIs are an accessible way to extract and share data within and across
organizations.

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

There are currently three sets of Java APIs for graphics programming:

A

AWT (Abstract Windowing Toolkit), Swing and JavaFX

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

Programming GUI with AWT
:AWT package

A

AWT is huge! It consists of 12 packages of 370 classes (Swing is even bigger, with 18
packages of 737 classes as of JDK 8). Fortunately, only
2 packages - java.awt and java.awt.event - are commonly-used.

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

The java.awt package contains the core AWT graphics classes:

A

● GUI Component classes, such as Button, TextField, and Label.
● GUI Container classes, such as Frame and Panel.
● Layout managers, such as FlowLayout, BorderLayout and GridLayout.
Custom graphics classes, such as Graphics, Color and Fon

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

The java.awt.event package supports event handling

A

● Event classes, such as ActionEvent, MouseEvent, KeyEvent and WindowEvent,
● Event Listener Interfaces, such as ActionListener, MouseListener,
MouseMotionListener, KeyListener and WindowListener,
● Event Listener Adapter classes, such as MouseAdapter, KeyAdapter, and
WindowAdapter.
AWT provides a platform-independent and device-independent interface to develop
graphic programs that runs on all platforms, including
Windows, macOS, and Unixes.

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

There are two groups of GUI elements:

A

Component (Widget, Control): Components are elementary GUI entities, such
as Button, Label, and TextField. They are also called widgets, controls in
other graphics systems.

  1. Container: Containers, such as Frame and Panel, are used to hold
    components in a specific layout (such as FlowLayout or GridLayout). A
    container can also hold sub-containers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Class

A

You cannot write any program in Java without having a class. word class, isn’t capitalized. It is very important
that you keep this in mind, otherwise your program will return an error.

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

Curly braces

A

Curly braces are the outline of the code you are running; everything
inside of them belongs to the function, class, or method you are
running

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

Indentation

A

Indentation is one of the main things you need to check over to make
sure that your code works the way you want it to.

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

Main method

A

You’ll notice that on the next line of code, it says public static void
main(String[] args) {}.
• This is basically the main method showing that you can access the
code file anywhere

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

Comments

A

Comments do not affect your code at all.
• They are just there so you can annotate your code without making
any real changes to it.

17
Q

Print

A

• To print something in Java, you can just type in
System.out.println(“Hello world!”);
• This tells the system to output whatever is inside the parenthesis

18
Q

Terminal

A

The place where your code is outputted

19
Q

Semicolons

A

You need to place a semicolon after every function or statement
that you use otherwise your code won’t run

20
Q

Variables

A

Functions are pieces of data that are called and can store values.
Some data types are:
•int (stores integers)
•double (stores integers with decimal values)
•String (stores text)
•boolean (true or false statements)

21
Q

How to make variable

A

•To make variables, you need to name them.
•The way to name a variable is usually for the purpose that it is
created for.
•You can have numbers in the variable name, but they can’t be
the first character in the name.
•If you would like to have more than one word in the name of your
variable, the first word is all lowercase.
•If your variable name isn’t more than two words, then it should
be in all lowercase