Class MapTableModel

    • Constructor Detail

      • MapTableModel

        public MapTableModel()
        Initializes the table model with no data.
      • MapTableModel

        public MapTableModel​(String[] colNames)
        Initializes the table model with no data.
        Parameters:
        colNames - the column names to use
      • MapTableModel

        public MapTableModel​(Map data)
        Initializes the table model.
        Parameters:
        data - the map to display
      • MapTableModel

        public MapTableModel​(Map data,
                             String[] colNames)
        Initializes the table model.
        Parameters:
        data - the map to display
        colNames - the column names to use
    • Method Detail

      • convert

        protected static Object[][] convert​(Map data)
        Turns the hashtable into key-value pairs. The keys are sorted alphabetically.
        Parameters:
        data - the data to convert
        Returns:
        the converted data