{"action":"opened","issue":{"url":"https://api.github.com/repos/libgdx/libgdx/issues/2834","labels_url":"https://api.github.com/repos/libgdx/libgdx/issues/2834/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/libgdx/issues/2834/comments","events_url":"https://api.github.com/repos/libgdx/libgdx/issues/2834/events","html_url":"https://github.com/libgdx/libgdx/issues/2834","id":57242722,"number":2834,"title":"Using `List<String>.getItems().add(\"...\");`","user":{"login":"Zomis","id":1405379,"avatar_url":"https://avatars.githubusercontent.com/u/1405379?v=3","gravatar_id":"","url":"https://api.github.com/users/Zomis","html_url":"https://github.com/Zomis","followers_url":"https://api.github.com/users/Zomis/followers","following_url":"https://api.github.com/users/Zomis/following{/other_user}","gists_url":"https://api.github.com/users/Zomis/gists{/gist_id}","starred_url":"https://api.github.com/users/Zomis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zomis/subscriptions","organizations_url":"https://api.github.com/users/Zomis/orgs","repos_url":"https://api.github.com/users/Zomis/repos","events_url":"https://api.github.com/users/Zomis/events{/privacy}","received_events_url":"https://api.github.com/users/Zomis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-10T21:48:43Z","updated_at":"2015-02-10T21:48:43Z","closed_at":null,"body":"When using a `List<String>` Widget, using `list.getItems().add(\"some string\");` causes the item to display, but not be selectable.\r\n\r\n        final List<String> list = new List<String>(game.skin);\r\n        list.getItems().add(\"Abc\");\r\n        list.getItems().add(\"Def\");\r\n        list.getItems().add(\"GHI\");\r\n        list.getItems().add(\"JKL\");\r\n        list.getItems().add(\"MNO\");\r\n        list.addListener(new ChangeListener() {\r\n            @Override\r\n            public void changed(ChangeEvent event, Actor actor) {\r\n                Gdx.app.log(\"Menu\", list.getSelected());\r\n            }\r\n        });\r\n        table.add(list);\r\n\r\n\r\nUsing `setItems` however, works as expected:\r\n\r\n        final List<String> list = new List<String>(skin);\r\n        list.setItems(\"Abc\", \"Def\", \"GHI\", \"JKL\");\r\n        list.addListener(new ChangeListener() {\r\n            @Override\r\n            public void changed(ChangeEvent event, Actor actor) {\r\n                Gdx.app.log(\"Menu\", list.getSelected());\r\n            }\r\n        });\r\n        table.add(list);\r\n\r\nIs this a bug, or is it not intended to be able to add items dynamically in this way? (If it is not, then why does it display them?)\r\n\r\nI'm using libGDX 1.5.3"}}