 <p>You can use a <code>BufferedReader</code> to read the file.</p> <pre><code>BufferedReader in = new BufferedReader(new FileReader("test.txt")); // Or you can use // File myFile = getFile(); // BufferedReader in = new BufferedReader(new FileReader(myFile)); String line; while ((line = in.readLine()) != null) { // Add the line to the table. } </code></pre> <p>I can't help you with the second part very much because it's really vague, but I'll make some assumptions and give you some pointers.</p> <p>Assuming your file has elements seperated by commas, you can parse it pretty easily:</p> <pre><code>String[] columns = line.split(","); </code></pre> <p>And then you can add the columns to your table.</p>