Try this link:
https://coderanch.com/t/704099/java/read-text-file-JTable-JFilechooser#3302082
This is the coderranch example. I think it will answer most of your questions. If you still have difficulties with the code,
I'll take a closer look at it.

<!DOCTYPE html>

Draw a circle