midtems Flashcards

(38 cards)

1
Q

provides more flexible and powerful alternative to AWT, offering a rich set of components and better UI design

A

Swing

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

3 top level containers

A

JFrame
JDialog
JApplet

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

top level containers: main application window

A

JFrame

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

top level containers: popup window for user interaction

A

JDialog

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

top level containers: applet-based UI, legacy not commonly used

A

JApplet

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

basic components:

A

JLabel
JButton
JTextField
JTextArea
JRadioButton
JCheckBox

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

basic components: clickable button for user actions

A

JButton

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

basic components: displays static text or images

A

JLabel

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

basic components: single-line input text

A

JTextField

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

basic components: multi-line input field

A

JTextArea

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

basic components: selectable option with a checkbox

A

JCheckBox

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

basic components: selectable option , usually grouped for exclusive selection

A

JRadioButton

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

container components:

A

JPanel
JSplitPane
JTabbedPane
JScrollPane

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

container components: generic container for organizing components

A

JPanel

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

container components: divides window into resizable sections

A

JSplitPane

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

container components: organizes content into tabs

17
Q

container components: adds scroll functionality to large components

18
Q

advance components:

A

JTable
JTree
JList

19
Q

advance components: displays tabular data in a grid format

20
Q

advance components: displays hierarchal data (like file explorer)

21
Q

advance components: presents list of a selectable items

22
Q

common layout managers

A

BorderLayout
FlowLayout
GridLayout
GridBagLayout
BoxLayout

23
Q

common layout managers: default for JFrame, positions components in 5 areas

24
Q

common layout managers: default for JPanel, arranges components in a single row

25
common layout managers: organizes components in equal sized grid cells
GridLayout
26
common layout managers: flexible grid-based layout for complex ui
GridBagLayout
27
common layout managers: aligns components in a single column or row to align space and components of a container
JBoxLayout
28
mechanism, for responding to user actions (clicks, keypressed)
Event handling
29
handles button click
ActionListener
30
detects mouse actions
MouseListener
31
captures keyboard inputs
KeyListener
32
used for checkboxes and radio buttons, to detect selection changes, such as dropdown
ItemListener
33
MVC
Model, View, Controller
34
manages the data and logic/ the brain of the program
Model
35
displays ui elements
view
36
handles user interactions
controller
37
it listens to the user action and update the model and view
controller
38