Title: Table's insertRow doesn't work · Issue #2137 · processing/processing · GitHub
Open Graph Title: Table's insertRow doesn't work · Issue #2137 · processing/processing
X Title: Table's insertRow doesn't work · Issue #2137 · processing/processing
Description: Reference: http://forum.processing.org/two/discussion/250/using-insertrow-with-a-table Processing 2.0 Example code: Table table; void setup() { table = new Table(); table.addColumn("species", Table.STRING); table.addColumn("name", Table....
Open Graph Description: Reference: http://forum.processing.org/two/discussion/250/using-insertrow-with-a-table Processing 2.0 Example code: Table table; void setup() { table = new Table(); table.addColumn("species", Table...
X Description: Reference: http://forum.processing.org/two/discussion/250/using-insertrow-with-a-table Processing 2.0 Example code: Table table; void setup() { table = new Table(); table.addColumn("species&qu...
Opengraph URL: https://github.com/processing/processing/issues/2137
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Table's insertRow doesn't work","articleBody":"Reference: http://forum.processing.org/two/discussion/250/using-insertrow-with-a-table\nProcessing 2.0\n\nExample code:\n\n```\nTable table;\n\nvoid setup() {\n table = new Table();\n\n table.addColumn(\"species\", Table.STRING);\n table.addColumn(\"name\", Table.STRING);\n\n TableRow a = table.addRow();\n a.setString(\"species\", \"A\");\n a.setString(\"name\", \"a\");\n\n String[] c = { \"C\", \"c\" };\n table.addRow(c);\n\n println(table);\n table.save(System.out, \"csv\");\n\n String[] b = { \"B\", \"b\" };\n table.insertRow(0, b);\n}\n```\n\nResult: ArrayIndexOutOfBoundsException\n\nWhy?\nLine\nSystem.arraycopy(columns[col], insert, stringTemp, insert+1, (rowCount - insert) + 1);\n(and related) seems wrong. I think it should be:\nSystem.arraycopy(columns[col], insert, stringTemp, insert+1, rowCount - insert);\n\nWith 2 rows and inserting at pos 1, we want to copy 1 item after the insertion position.\n","author":{"url":"https://github.com/PhiLhoSoft","@type":"Person","name":"PhiLhoSoft"},"datePublished":"2013-10-13T14:30:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2137/processing/issues/2137"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83c02e21-1ae5-fbf2-c56c-ecce0a06a29f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA5C:16BD33:26D87EF:35AB1AB:6970041E |
| html-safe-nonce | e248f00425272fa092ab25234376729681b56a016e602cf9996e15aaffaca538 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTVDOjE2QkQzMzoyNkQ4N0VGOjM1QUIxQUI6Njk3MDA0MUUiLCJ2aXNpdG9yX2lkIjoiMzgxMzc0MzU5Njk2MzYyODA2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c3d177145445cfdfb3dcbff91074c0884bc66a07b9c15c344c7e1f6b047aa9b3 |
| hovercard-subject-tag | issue:20927363 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/processing/2137/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fcaf25c772f92614ee35ca5873ec64767ad77d930ff30ca33ce910e3a9d129dd/processing/processing/issues/2137 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fcaf25c772f92614ee35ca5873ec64767ad77d930ff30ca33ce910e3a9d129dd/processing/processing/issues/2137 |
| og:image:alt | Reference: http://forum.processing.org/two/discussion/250/using-insertrow-with-a-table Processing 2.0 Example code: Table table; void setup() { table = new Table(); table.addColumn("species", Table... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PhiLhoSoft |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366807b865cee6776368231232f84d6c8096e6bce43f701a4fb28ea795ec427 |
| turbo-cache-control | no-preview |
| go-import | github.com/processing/processing git https://github.com/processing/processing.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 7807399 |
| octolytics-dimension-repository_nwo | processing/processing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7807399 |
| octolytics-dimension-repository_network_root_nwo | processing/processing |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 33f356bb2fb58726ccb2f26395bf8ddc9a2d9eaa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width