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
a widget that displays progress of a lengthy task, for instance file download or transfer.
JProgressBar
26
used for navigating the file system.
JFileChooser
27
provides a pane of controls designed to allow a user to manipulate and select a color.
JColorChooser
28
enables you to create and customize various kinds of dialogs. Dialogs can have customized dialog layout, icons, dialog title, dialog text and button text.
JOptionPane
29
used to arrange the components inside a container
LAYOUT MANAGER
30
is the default layout manager for every Jframe.
Border layout
31
____places components in up to five places such as top, bottom, left, right and center.
BorderLayout
32
the default layout manager of JPanel.
Flow layout
33
____ lays the components in a row one after the other.
FlowLayout
34
places the components in a grid which allows the components to span more than one cell.
GridBag layout
35
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.
GridLayout
36
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.
CardLayout
37
Inheriting the JFrame class does not require explicit creation of the JFrame class.
SWING BY INHERITANCE
38
____ are generated as a result of user interaction with the graphical user interface components.
EVENT
38
Activities that causes an event to occur:
Clicking on a button Moving the mouse Entering a character through keyboard Selecting an item from the list Scrolling the page
39
the change in the state of an object
EVENT
40
2 Types of Events
Foreground and Background Events
41
Events require direct interaction of the user.
Foreground Events
42
These events require the interaction of the end user.
Background Events
43
operating system interruption hardware or software failure timer expiration operation completion
Background Events
44
____ mechanism that controls the event and decides what should happen if an event occurs.
Event Handling
45
This mechanism has a code which is known as an event handler, that is executed when an event occurs.
Event Handling
45
___is an object on which the event occurs.
Source
46
Delegation Event Model Participants
Source and Listener
47
____ is responsible for providing information of the occurred event to its handler.
Source
48
It is also known as an event handler
Listener
49
____ is responsible for generating a response to an event.
Listener
50
GUI
Frames Usually graphical in content One way of writing java programs
51
What are the Java Frame Classes
Abstract Window Toolkit (AWT) and Java Foundation Classes (JFC)
52
Contain classes that provide the Java graphical user interface (GUI) components
Abstract Window Toolkit (AWT)
53
A generic AWT container a component that can contain other AWT components
Container
54
Was an extension to java Contains swing components written entirely in java
Java Foundation Classes (JFC)
55
Most important methods: setLayout() and add()
Container
56
A method found in JFrame This method returns the contentPane object (a Container) for this frame.
getContentPane()
57
This is where you add the components to a container
Frame Constructor
58
You will have to use the constructor to give your frame its intended appearance and functionality (use to arrange and add contents)
Frame Constructor
59
Arranges and lays out the GUI components on a container
LAYOUT MANAGERS
60
Controls the size and position of components in a container
LAYOUT MANAGERS
61
What are the basic layouts?
FlowLayout BorderLayout GridLayout
62
What are the advance layouts?
CardLayout GridBagLayout BoxLayout
63
User interaction with applets and frames involves handling events
EVENT HANDLING
64
A listener class needs to be defined
LISTENERS
64
In the java library (java.awt.event.*), there is an interface called ActionListener
ActionListener
65
To program functionality for a button, you need to associate the button object to a listener object
BUTTONS
66
The listener object to be associated to a button must be an instance of a class that implements this interface
ActionListener
67
Class defined within a class Useful when you need to have access to data within objects of the containing class
Inner class