|
|
|
Конструктор JTable.
|
|||
|---|---|---|---|
|
#18+
Меня интересует консруктор JTable(Vecotor rowData,Vector columnNames). Что должно быть в векторе rowData? Загонял строки String[], String целиком все данные. В инете ничего не встретилось, все почему-то ограничиваются другим конструктором. Заранее спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.08.2005, 14:15 |
|
||
|
Конструктор JTable.
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.08.2005, 14:42 |
|
||
|
Конструктор JTable.
|
|||
|---|---|---|---|
|
#18+
javadoc public JTable(java.util.Vector rowData, java.util.Vector columnNames) Constructs a JTable to display the values in the Vector of Vectors, rowData, with column names, columnNames. The Vectors contained in rowData should contain the values for that row. In other words, the value of the cell at row 1, column 5 can be obtained with the following code: ((Vector)rowData.elementAt(1)).elementAt(5); Parameters: rowData - the data for the new table columnNames - names of each column ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.08.2005, 14:43 |
|
||
|
Конструктор JTable.
|
|||
|---|---|---|---|
|
#18+
Спасибо, то что нужно. Почему-то я несмог найти это описание конструтора авторpublic JTable(java.util.Vector rowData, java.util.Vector columnNames) Constructs a JTable to display the values in the Vector of Vectors, rowData, with column names, columnNames. оказывается это вектор векторов :). Ещё раз спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.08.2005, 15:20 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=33196608&tid=2151809]: |
0ms |
get settings: |
7ms |
get forum list: |
24ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
50ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
35ms |
get tp. blocked users: |
1ms |
| others: | 208ms |
| total: | 344ms |

| 0 / 0 |
