Fix bug #11810 for 'table' uicontrols under Mac OS X (no vertical/horizontal lines). 37/9037/1
Vincent COUVERT [Tue, 18 Sep 2012 08:45:55 +0000 (10:45 +0200)]
Change-Id: Ibfb3486603cbb5847108f2dfe5b7218d9cd3ca6c

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/uitable/SwingScilabUiTable.java

index 2cea723..a4079f1 100644 (file)
@@ -270,6 +270,11 @@ public class SwingScilabUiTable extends JScrollPane implements SwingViewObject,
         if (uiTable == null) {
             uiTable = new JTable(data, colNames);
             uiTable.setFillsViewportHeight(true);
+            if (uiTable.getGridColor().equals(Color.WHITE)) {
+                uiTable.setGridColor(new Color(128, 128, 128));
+            }
+            uiTable.setShowHorizontalLines(true);
+            uiTable.setShowVerticalLines(true);
         }
         return uiTable;
     }