Layout for a Java program
<p>I am making a program in java, which contains a jframe and has to be populated with some data. The data will be simply the various information(name of file,path of file, its size) of a file selected by user through JFileChooser. The JFilechooser will be open by clicking the jbutton which will be in the 1st column of each row and after selecting the file, data will be populated in subsequent columns for each row and the button will be added in 1st column of next row.</p>

<p>The problem i am facing is in choosing the right layout(container) for this data.I am considering following options,but have some doubts regarding it:</p>

<ol>
<li><p>Gridbaglayout: not sure whether rows can be added at run time(on button click event) and managed effectively.</p></li>
<li><p>JTable: same as above.</p></li>
</ol>
