Quiz 1 OOP JTable & Search Engine

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:28 PM on 5/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

16 Terms

1
New cards

JTable

part of Java Swing Package.

generally used to display or edit two-dimensional data that is having both rows and columns.

It is like a spreadsheet.

2
New cards

DefaultTableModel

•implementation of the TableModel interface.

•Used to store data for JTable.

•Provides a method to add, remove, and update rows and columns in a table.

used to store data. The JTable is responsible for displaying the data in the model.

3
New cards

.getModel()

allows the user to access and manipulate the data displayed by the component.

4
New cards

.addRow()

allows the user to add a new row of data to JTable.

5
New cards

.removeRow()

removes the row at the specified position from the model.

6
New cards

.getSelectedRow()

used to retrieve the index of the currently selected row in a JTable

7
New cards

getValueAt(int row, int column)

allows you to retrieve the value at a specified row and column index

8
New cards

setValueAt( object, int row, int column)

•used to set the value in the cell at a specified row and column index within a JTable. allows you to update the value of a specific cell in a table.

9
New cards

Search Engine

A step-by-step procedure used to locate a specific element within a data structure, such as an array or a list. This plays a crucial role in programming, enabling efficient data retrieval and manipulation.

10
New cards

Sequential Search/Linear Search

the list or array is traversed sequentially, and every element is checked.

11
New cards

Interval Search

These algorithms are specifically designed for searching in sorted data-structures. These type of searching algorithms are much more efficient than Linear Search as they repeatedly target the center of the search structure and divide the search space in half.

12
New cards

TableRowSorter

provides sorting and filtering using a TableModel .

13
New cards

setRowSorter()

used to associate the TableRowSorter with the Table

14
New cards

setRowFilter

used to filter out entries from the model so that they are not shown in the view.

15
New cards

regexFilter

a filter that applies a regular expression to a particular property. Matching is case sensitive by default .

16
New cards

(?i)

a regex flag meaning case-insensitive matching.