How do I add local audio files into a 'playlist' table

I want to click a button to open the file browser, open a audio file(mp3) which gets added to a table. I want it to be so that you can have multiple audio files available on the playlist table. I have some of it figured out, but I’m trying to create an event listener where I click a button, ‘Add a track’. How can I populate my table or ‘playlist’ with the audio file. I have a file chooser already implemented that loads the file to be played and a play button that play a loaded file, I’m just not sure how to add it to the table? Any help is appreciated

Array<File> trackTitles;

void PlaylistComponent::buttonClicked(Button* button)
{

    if (button == &loadButton)
    {
        DBG(" MainComponent::buttonClicked: loadButton");
        FileChooser chooser{ "Select a file" };
        if (chooser.browseForFileToOpen())
        {
            trackTitles.add(File{ chooser.getResult() });
            player->loadURL(File{ chooser.getResult() });
        }


    }
}