diff options
author | Michael Koch <konqueror@gmx.de> | 2004-12-16 19:10:03 +0000 |
---|---|---|
committer | Michael Koch <konqueror@gmx.de> | 2004-12-16 19:10:03 +0000 |
commit | 8d8af45add14b0ce7aa3fde9371424796427384b (patch) | |
tree | e58e51789a0ddb9c2b52ac951a0458d77a6418c1 /javax | |
parent | 7e8eded36c0ccaa63a6a9189979261d3aa4d2891 (diff) | |
download | classpath-8d8af45add14b0ce7aa3fde9371424796427384b.tar.gz |
2004-12-16 Michael Koch <konqueror@gmx.de>
* javax/swing/JTable.java,
javax/swing/plaf/basic/BasicTableHeaderUI.java,
javax/swing/plaf/basic/BasicTableUI.java:
Use fixed get/setIntercellSpacing() methods.
Diffstat (limited to 'javax')
-rw-r--r-- | javax/swing/JTable.java | 2 | ||||
-rw-r--r-- | javax/swing/plaf/basic/BasicTableHeaderUI.java | 4 | ||||
-rw-r--r-- | javax/swing/plaf/basic/BasicTableUI.java | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/javax/swing/JTable.java b/javax/swing/JTable.java index b78f3d430..ca2a4b381 100644 --- a/javax/swing/JTable.java +++ b/javax/swing/JTable.java @@ -410,7 +410,7 @@ public class JTable extends JComponent this.preferredScrollableViewportSize = new Dimension(450,400); this.showHorizontalLines = true; this.showVerticalLines = true; - setInterCellSpacing(new Dimension(1,1)); + setIntercellSpacing(new Dimension(1,1)); setTableHeader(new JTableHeader(columnModel)); updateUI(); } diff --git a/javax/swing/plaf/basic/BasicTableHeaderUI.java b/javax/swing/plaf/basic/BasicTableHeaderUI.java index ea7dfc0cd..ebc702ad3 100644 --- a/javax/swing/plaf/basic/BasicTableHeaderUI.java +++ b/javax/swing/plaf/basic/BasicTableHeaderUI.java @@ -191,8 +191,8 @@ public class BasicTableHeaderUI int spacing = 0; if (header.getTable() != null - && header.getTable().getInterCellSpacing() != null) - spacing = header.getTable().getInterCellSpacing().width; + && header.getTable().getIntercellSpacing() != null) + spacing = header.getTable().getIntercellSpacing().width; for (int i = 0; i < ncols; ++i) { diff --git a/javax/swing/plaf/basic/BasicTableUI.java b/javax/swing/plaf/basic/BasicTableUI.java index eb0054bb6..cc2c2e662 100644 --- a/javax/swing/plaf/basic/BasicTableUI.java +++ b/javax/swing/plaf/basic/BasicTableUI.java @@ -108,7 +108,7 @@ public class BasicTableUI { int y0 = table.getLocation().y; int nrows = table.getRowCount(); - Dimension gap = table.getInterCellSpacing(); + Dimension gap = table.getIntercellSpacing(); int height = table.getRowHeight() + (gap == null ? 0 : gap.height); int y = p.y; for (int i = 0; i < nrows; ++i) @@ -124,7 +124,7 @@ public class BasicTableUI { int x0 = table.getLocation().x; int ncols = table.getColumnCount(); - Dimension gap = table.getInterCellSpacing(); + Dimension gap = table.getIntercellSpacing(); TableColumnModel cols = table.getColumnModel(); int x = p.x; for (int i = 0; i < ncols; ++i) @@ -294,7 +294,7 @@ public class BasicTableUI int x = x0; int y = y0; - Dimension gap = table.getInterCellSpacing(); + Dimension gap = table.getIntercellSpacing(); int ymax = clip.y + clip.height; int xmax = clip.x + clip.width; |