Commits

mabe02 committed 2ca2d63

Adding a method for setting the padding between the columns

  • Participants
  • Parent commits b58c507

Comments (0)

Files changed (1)

File src/org/lantern/gui/Table.java

             mainPanel = new Panel(Panel.Orientation.HORISONTAL);
         else
             mainPanel = new Panel(title, Panel.Orientation.HORISONTAL);
-        mainPanel.setBetweenComponentsPadding(1);
+        mainPanel.setBetweenComponentsPadding(0);
 
         rows = new ArrayList<Component[]>();
 
         alterTableStructure(nrOfColumns);        
     }
 
+    public void setColumnPaddingSize(int size)
+    {
+        mainPanel.setBetweenComponentsPadding(size);
+    }
+
     public void addRow(Component ...components)
     {
         Component[] newRow = new Component[columns.length];