| 1 |
// This Source Code Form is subject to the terms of the Mozilla Public |
| 2 |
// License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 |
// file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 4 |
|
| 5 |
// Rhino must discover the abstract methods in the interface |
| 6 |
// of AbstractTableModel |
| 7 |
var tableModel = new javax.swing.table.AbstractTableModel() { |
| 8 |
getRowCount: function() { return 2; }, |
| 9 |
getColumnCount: function() { return 2; }, |
| 10 |
getValueAt: function(row, column) { |
| 11 |
return "ABC"; |
| 12 |
} |
| 13 |
}; |
| 14 |
var jTable = new javax.swing.JTable(tableModel); |
| 15 |
"success"; |