summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/swing/scala/swing/Table.scala8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/swing/scala/swing/Table.scala b/src/swing/scala/swing/Table.scala
index 0b602387d6..94aad50890 100644
--- a/src/swing/scala/swing/Table.scala
+++ b/src/swing/scala/swing/Table.scala
@@ -274,10 +274,12 @@ class Table extends Component with Scrollable.Wrapper {
* The given cell coordinates are in view coordinates and thus not
* necessarily the same as for the model.
*/
- def apply(row: Int, column: Int): Any = model.getValueAt(viewToModelRow(row), viewToModelColumn(column))
+ def apply(row: Int, column: Int): Any = model.getValueAt(row, viewToModelColumn(column))
- def viewToModelRow(idx: Int) = peer.convertRowIndexToModel(idx)
- def modelToViewRow(idx: Int) = peer.convertRowIndexToView(idx)
+ // TODO: this is Java 6 stuff
+ // def apply(row: Int, column: Int): Any = model.getValueAt(viewToModelRow(row), viewToModelColumn(column))
+ //def viewToModelRow(idx: Int) = peer.convertRowIndexToModel(idx)
+ //def modelToViewRow(idx: Int) = peer.convertRowIndexToView(idx)
def viewToModelColumn(idx: Int) = peer.convertColumnIndexToModel(idx)
def modelToViewColumn(idx: Int) = peer.convertColumnIndexToView(idx)