1/15
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
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.
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.
.getModel()
allows the user to access and manipulate the data displayed by the component.
.addRow()
allows the user to add a new row of data to JTable.
.removeRow()
removes the row at the specified position from the model.
.getSelectedRow()
used to retrieve the index of the currently selected row in a JTable
getValueAt(int row, int column)
allows you to retrieve the value at a specified row and column index
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.
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.
Sequential Search/Linear Search
the list or array is traversed sequentially, and every element is checked.
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.
TableRowSorter
provides sorting and filtering using a TableModel .
setRowSorter()
used to associate the TableRowSorter with the Table
setRowFilter
used to filter out entries from the model so that they are not shown in the view.
regexFilter
a filter that applies a regular expression to a particular property. Matching is case sensitive by default .
(?i)
a regex flag meaning case-insensitive matching.