{"action":"created","issue":{"url":"https://api.github.com/repos/hbrands/jira-import-test/issues/4","repository_url":"https://api.github.com/repos/hbrands/jira-import-test","labels_url":"https://api.github.com/repos/hbrands/jira-import-test/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/hbrands/jira-import-test/issues/4/comments","events_url":"https://api.github.com/repos/hbrands/jira-import-test/issues/4/events","html_url":"https://github.com/hbrands/jira-import-test/issues/4","id":168483544,"number":4,"title":"Error in setting header value in TableComparatorSelector","user":{"login":"hbrands","id":7273079,"avatar_url":"https://avatars.githubusercontent.com/u/7273079?v=3","gravatar_id":"","url":"https://api.github.com/users/hbrands","html_url":"https://github.com/hbrands","followers_url":"https://api.github.com/users/hbrands/followers","following_url":"https://api.github.com/users/hbrands/following{/other_user}","gists_url":"https://api.github.com/users/hbrands/gists{/gist_id}","starred_url":"https://api.github.com/users/hbrands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbrands/subscriptions","organizations_url":"https://api.github.com/users/hbrands/orgs","repos_url":"https://api.github.com/users/hbrands/repos","events_url":"https://api.github.com/users/hbrands/events{/privacy}","received_events_url":"https://api.github.com/users/hbrands/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hbrands/jira-import-test/labels/www","name":"www","color":"4fe2be"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hbrands/jira-import-test/milestones/3","html_url":"https://github.com/hbrands/jira-import-test/milestones/milestone%201","labels_url":"https://api.github.com/repos/hbrands/jira-import-test/milestones/3/labels","id":1913507,"number":3,"title":"milestone 1","description":null,"creator":{"login":"hbrands","id":7273079,"avatar_url":"https://avatars.githubusercontent.com/u/7273079?v=3","gravatar_id":"","url":"https://api.github.com/users/hbrands","html_url":"https://github.com/hbrands","followers_url":"https://api.github.com/users/hbrands/followers","following_url":"https://api.github.com/users/hbrands/following{/other_user}","gists_url":"https://api.github.com/users/hbrands/gists{/gist_id}","starred_url":"https://api.github.com/users/hbrands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbrands/subscriptions","organizations_url":"https://api.github.com/users/hbrands/orgs","repos_url":"https://api.github.com/users/hbrands/repos","events_url":"https://api.github.com/users/hbrands/events{/privacy}","received_events_url":"https://api.github.com/users/hbrands/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":4,"state":"open","created_at":"2016-07-30T19:39:21Z","updated_at":"2016-07-30T19:40:14Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-07-30T19:40:13Z","updated_at":"2016-07-30T19:40:15Z","closed_at":"2016-07-30T19:40:14Z","body":"<p>Maybe there is a problem in TableComparatorSelector.</p>\n\n<p>I set tableHeader.setReorderingAllowed(true) on a table which has its own<br/>\nTableComparatorSelector. <br/>\nI move a column. After moving, the index of the column is changed, but the<br/>\nmodelIndex remains unchanged. <br/>\nThis is wel handled in method mouseClicked with trhis code </p>\n\n<p>int viewColumn = columnModel.getColumnIndexAtX(e.getX()); <br/>\nint column = table.convertColumnIndexToModel(viewColumn); </p>\n\n<p>the last method, which rewrite the table header of all the columns, has the<br/>\nfollowing code:</p>\n\n<p>// and set the name of the table header to the current comparator<br/>\nfor(int c = 0; c < table.getColumnCount(); c++) {<br/>\n    if(c == column) </p>\n{       \n      table.getColumnModel().getColumn(column).setHeaderValue(sortedHeader);\n    }\n<p> else </p>\n{\nString header = listTable.getTableFormat().getFieldName(c);\ntable.getColumnModel().getColumn(c).setHeaderValue(header);\n    }\n<p>}</p>\n\n<p>this method doesn't seem to handle difference between column index and model index.<br/>\nIn my app, when I move a column and then click on the header for resorting the<br/>\ntable, all the header value happen to move from their position. And this seems<br/>\nto be caused by that portion of code wich, I guess, has to use the view index<br/>\nand not the model index of the column. </p>\n\n<p>If I am right, that code has to handle difference between index and model index.<br/>\nIf I am wrong, there are different way to handle this thing?</p>\n<i>[GLAZEDLISTS-4] created by ildella at Wed, 14 Jan 2004 21:06:46 +0100, resolved Wed, 11 Feb 2004 08:34:59 +0100</i>"},"comment":{"url":"https://api.github.com/repos/hbrands/jira-import-test/issues/comments/236385922","html_url":"https://github.com/hbrands/jira-import-test/issues/4#issuecomment-236385922","issue_url":"https://api.github.com/repos/hbrands/jira-import-test/issues/4","id":236385922,"user":{"login":"hbrands","id":7273079,"avatar_url":"https://avatars.githubusercontent.com/u/7273079?v=3","gravatar_id":"","url":"https://api.github.com/users/hbrands","html_url":"https://github.com/hbrands","followers_url":"https://api.github.com/users/hbrands/followers","following_url":"https://api.github.com/users/hbrands/following{/other_user}","gists_url":"https://api.github.com/users/hbrands/gists{/gist_id}","starred_url":"https://api.github.com/users/hbrands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbrands/subscriptions","organizations_url":"https://api.github.com/users/hbrands/orgs","repos_url":"https://api.github.com/users/hbrands/repos","events_url":"https://api.github.com/users/hbrands/events{/privacy}","received_events_url":"https://api.github.com/users/hbrands/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T19:40:15Z","updated_at":"2016-07-30T19:40:15Z","body":"<p>The problem looks legit. In most of my use of ListTable I use only a single column so <br/>\nmultiple columns is not well exercised!</p>\n\n<p>I'll try to reproduce the problem and look into a fix.</p>\n<i>jessewilson Thu, 15 Jan 2004 15:49:48 +0100</i>"}}
{"actor":{"display_login":"hbrands"}}