title: How to change rows with columns in JTable?
body: <p>I have created my JTable like this:</p>
  
  <pre><code>        String[] columns = {"Country", "Continent", "Latitude", "Longitude"};
          String[][] data = {{"A","B","C","D"}};
          table = new JTable(data,columns);
          JScrollPane spTable = new JScrollPane(table);
          panel2.add(spTable);
  </code></pre>
  
  <p>Now I want to change the look of the table in such a way that rows will be exchanged with columns, meaning that the table will have 4 rows and 1 column. Could not find such function between member methods, is it possible? Thanks.</p>