ITE FINALS Flashcards

gago kayong lahat

1
Q

____ is a lightweight and platform-independent GUI toolkit with widgets for building optimized window-based applications.

A

Swing

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

Part of JFC (Java Foundation Classes) which was built on top of the AWT API and entirely written in java.

A

Swing

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

What are the 4 features of Swing

A

Light Weight. Rich controls, Highly Customizable, Pluggable look-and-feel

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

What are the 3 main aspects of Swing

A

UI Elements, Layouts, Behaviors

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

The container is a class that has other components in it.

A

SWING AS CONTAINER

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

What are the 3 types of container class (swing)?

A

Panel, Frame, Dialog

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

used to organize components on to a window

A

Panel

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

fully functioning window with icons and titles

A

Frame

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

pop-up window but not fully functional like the frame.

A

Dialog

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

simplest component in the Swing toolkit. The label can contain text, icon or both.

A

JLabel

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

may contain other visual components
methods setLayout() and add()

A

JPanel

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

used to generate events when the user clicks or presses on it.

A

JButton

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

allows the user to input text value in a single line format
contains editable text
methods setText() and getText()

A

JTextField

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

allows the user to input multiple lines of text

A

JTextArea

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

inherits all functionality of JToggleButton class.

A

JCheckBox

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

two state button that allows the user to switch on and off

A

JToggleButton

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

allows the user to make a single choice from a set of options.

A

JRadioButton

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

displays a drop down list. JComboBox gives users options that they can select one and only one item at a time.

A

JComboBox

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

allows users to choose either a single selection or multiple selections.

A

JList

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

allows users to enter passwords. Jpassword displays echo characters instead of the password itself. The default echo character is (*).

A

JPasswordField

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

is a text component that can handle different text with style. By default, it can handle plain text, HTML, and Rich Text Format (RTF).

A

JEditorPane

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

consists of a text field on the left side and two buttons with up and down arrows on the right side.

A

JSpinner

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

If you press the up or down button, the item that displays in the input text will change in a given ordered sequence.

A

JSpinner

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

consists of a rectangular tab called slider or thumb located between two arrow buttons.

A

JScrollBar

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

a widget that displays progress of a lengthy task, for instance file download or transfer.

A

JProgressBar

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

used for navigating the file system.

A

JFileChooser

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

provides a pane of controls designed to allow a user to manipulate and select a color.

A

JColorChooser

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

enables you to create and customize various kinds of dialogs. Dialogs can have customized dialog layout, icons, dialog title, dialog text and button text.

A

JOptionPane

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

used to arrange the components inside a container

A

LAYOUT MANAGER

30
Q

is the default layout manager for every Jframe.

A

Border layout

31
Q

____places components in up to five places such as top, bottom, left, right and center.

A

BorderLayout

32
Q

the default layout manager of JPanel.

A

Flow layout

33
Q

____ lays the components in a row one after the other.

A

FlowLayout

34
Q

places the components in a grid which allows the components to span more than one cell.

A

GridBag layout

35
Q

places components in a cell of a grid. Each cell has the same size, therefore, each component takes up the same space in a container. When the user adjusts the container, the size of each component changes accordingly.

A

GridLayout

36
Q

manages components in a stack where only the top one is visible at any time. Normally all components with the same display time are placed in a JPanel.

A

CardLayout

37
Q

Inheriting the JFrame class does not require explicit creation of the JFrame class.

A

SWING BY INHERITANCE

38
Q

____ are generated as a result of user interaction with the graphical user interface components.

A

EVENT

38
Q

Activities that causes an event to occur:

A

Clicking on a button
Moving the mouse
Entering a character through keyboard
Selecting an item from the list
Scrolling the page

39
Q

the change in the state of an object

A

EVENT

40
Q

2 Types of Events

A

Foreground and Background Events

41
Q

Events require direct interaction of the user.

A

Foreground Events

42
Q

These events require the interaction of the end user.

A

Background Events

43
Q

operating system interruption
hardware or software failure
timer expiration
operation completion

A

Background Events

44
Q

____ mechanism that controls the event and decides what should happen if an event occurs.

A

Event Handling

45
Q

This mechanism has a code which is known as an event handler, that is executed when an event occurs.

A

Event Handling

45
Q

___is an object on which the event occurs.

A

Source

46
Q

Delegation Event Model Participants

A

Source and Listener

47
Q

____ is responsible for providing information of the occurred event to its handler.

A

Source

48
Q

It is also known as an event handler

A

Listener

49
Q

____ is responsible for generating a response to an event.

A

Listener

50
Q

GUI

A

Frames
Usually graphical in content
One way of writing java programs

51
Q

What are the Java Frame Classes

A

Abstract Window Toolkit (AWT) and Java Foundation Classes (JFC)

52
Q

Contain classes that provide the Java graphical user interface (GUI) components

A

Abstract Window Toolkit (AWT)

53
Q

A generic AWT container
a component that can contain other AWT components

A

Container

54
Q

Was an extension to java
Contains swing components written entirely in java

A

Java Foundation Classes (JFC)

55
Q

Most important methods: setLayout() and add()

A

Container

56
Q

A method found in JFrame
This method returns the contentPane object (a Container) for this frame.

A

getContentPane()

57
Q

This is where you add the components to a container

A

Frame Constructor

58
Q

You will have to use the constructor to give your frame its intended appearance and functionality (use to arrange and add contents)

A

Frame Constructor

59
Q

Arranges and lays out the GUI components on a container

A

LAYOUT MANAGERS

60
Q

Controls the size and position of components in a container

A

LAYOUT MANAGERS

61
Q

What are the basic layouts?

A

FlowLayout
BorderLayout
GridLayout

62
Q

What are the advance layouts?

A

CardLayout
GridBagLayout
BoxLayout

63
Q

User interaction with applets and frames involves handling events

A

EVENT HANDLING

64
Q

A listener class needs to be defined

A

LISTENERS

64
Q

In the java library (java.awt.event.*), there is an interface called ActionListener

A

ActionListener

65
Q

To program functionality for a button, you need to associate the button object to a listener object

A

BUTTONS

66
Q

The listener object to be associated to a button must be an instance of a class that implements this interface

A

ActionListener

67
Q

Class defined within a class
Useful when you need to have access to data within objects of the containing class

A

Inner class