{"action":"created","issue":{"url":"https://api.github.com/repos/renatoathaydes/Automaton/issues/27","labels_url":"https://api.github.com/repos/renatoathaydes/Automaton/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/renatoathaydes/Automaton/issues/27/comments","events_url":"https://api.github.com/repos/renatoathaydes/Automaton/issues/27/events","html_url":"https://github.com/renatoathaydes/Automaton/issues/27","id":87898790,"number":27,"title":"How to Select Cell in JTable - Need Example","user":{"login":"cdmahy","id":12465948,"avatar_url":"https://avatars.githubusercontent.com/u/12465948?v=3","gravatar_id":"","url":"https://api.github.com/users/cdmahy","html_url":"https://github.com/cdmahy","followers_url":"https://api.github.com/users/cdmahy/followers","following_url":"https://api.github.com/users/cdmahy/following{/other_user}","gists_url":"https://api.github.com/users/cdmahy/gists{/gist_id}","starred_url":"https://api.github.com/users/cdmahy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdmahy/subscriptions","organizations_url":"https://api.github.com/users/cdmahy/orgs","repos_url":"https://api.github.com/users/cdmahy/repos","events_url":"https://api.github.com/users/cdmahy/events{/privacy}","received_events_url":"https://api.github.com/users/cdmahy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/renatoathaydes/Automaton/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-13T01:24:57Z","updated_at":"2015-06-21T18:41:33Z","closed_at":null,"body":"Hello Renato,\r\n\r\nI love your framework - it is very easy to use and has an elegant interface. Your docs say that you can select a cell in a JTable (I am using your framework with Java / JUnit). I have tried the following:\r\n\r\nSwinger.getUserWith(dialog).doubleClickOn(\"text:CONTENTS OF CELL\");\r\n\r\nBut the error is (when there is in fact a cell in the table with the given contents):\r\n\r\ncom.athaydes.automaton.GuiItemNotFound: Component not showing on screen: com.athaydes.automaton.FakeComponent[,0,0,0x0,invalid]\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:422)\r\n\tat org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)\r\n\tat org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)\r\n\tat org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:232)\r\n\tat org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:244)\r\n\tat com.athaydes.automaton.SwingAutomaton.centerOf(SwingAutomaton.groovy:68)\r\n\tat sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)\r\n...\r\n\r\nI have verified that the JTable component could in fact be found by your framework using its name. I tried clicking on it, and got the same error. How can I select a row in a JTable (or a cell - which would provide the same result)?\r\n\r\nBTW - I am running on Max OS X (10.9.5) - running the code in Eclipse.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/renatoathaydes/Automaton/issues/comments/113939631","html_url":"https://github.com/renatoathaydes/Automaton/issues/27#issuecomment-113939631","issue_url":"https://api.github.com/repos/renatoathaydes/Automaton/issues/27","id":113939631,"user":{"login":"renatoathaydes","id":1901277,"avatar_url":"https://avatars.githubusercontent.com/u/1901277?v=3","gravatar_id":"","url":"https://api.github.com/users/renatoathaydes","html_url":"https://github.com/renatoathaydes","followers_url":"https://api.github.com/users/renatoathaydes/followers","following_url":"https://api.github.com/users/renatoathaydes/following{/other_user}","gists_url":"https://api.github.com/users/renatoathaydes/gists{/gist_id}","starred_url":"https://api.github.com/users/renatoathaydes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renatoathaydes/subscriptions","organizations_url":"https://api.github.com/users/renatoathaydes/orgs","repos_url":"https://api.github.com/users/renatoathaydes/repos","events_url":"https://api.github.com/users/renatoathaydes/events{/privacy}","received_events_url":"https://api.github.com/users/renatoathaydes/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T18:41:33Z","updated_at":"2015-06-21T18:41:33Z","body":"Oh, I see... looks like I may need to fix the location of components located in JDialogs... but the test for this passes... can you see any difference in layout between your component and my tests?\r\n\r\nWill try to look more in depth at this issue later."}}