Class JKMapTableModel<K,V>

Type Parameters:
K - Specifies the type of keys in the Map.
V - Specifies the type of values in the Map.
All Implemented Interfaces:
Serializable, TableModel

public class JKMapTableModel<K,V> extends JKTableModel
This class is a custom table model designed to display a Map's contents in a tabular format.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
See Also:
  • Constructor Details

    • JKMapTableModel

      public JKMapTableModel(Map<K,V> map, String keyLabel, String valueLabel)
      This method constructs a new JKMapTableModel instance using the provided Map, key label, and value label.
      Parameters:
      map - Specifies the Map to be displayed in the table.
      keyLabel - Specifies the label for the column displaying the keys.
      valueLabel - Specifies the label for the column displaying the values.