tag:blogger.com,1999:blog-6929422799523574458.post840956832078910819..comments2023-03-24T11:36:03.468+01:00Comments on Albert Attard: Practical Example of Swing TimerAnonymoushttp://www.blogger.com/profile/05001967782991767837noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6929422799523574458.post-60616190681300504852013-02-16T23:44:40.271+01:002013-02-16T23:44:40.271+01:00setFocusable(true);
requestFocusInWindow();
Add t...setFocusable(true);<br />requestFocusInWindow();<br /><br />Add this lines in init()<br />Code will work fine !Anonymoushttps://www.blogger.com/profile/14720663738071557674noreply@blogger.comtag:blogger.com,1999:blog-6929422799523574458.post-6980854867545390762013-01-02T06:45:22.335+01:002013-01-02T06:45:22.335+01:00Hi, great tutorial, be apple was focused, but stil...Hi, great tutorial, be apple was focused, but still none of the keyboard keys causes it to stop and start and only the applet menu to manually click Start or Stop works actuallyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6929422799523574458.post-54429280685784849612012-12-23T15:45:51.632+01:002012-12-23T15:45:51.632+01:00thanks a lot for ur msgs......thanks a lot for ur msgs......Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6929422799523574458.post-65596554775307050342012-06-09T08:21:19.587+02:002012-06-09T08:21:19.587+02:00Can you debug it and see why it is not working?
M...Can you debug it and see why it is not working?<br /><br />Make sure that you click on the Applet such that it has the focus. The Applet may be rendered but not handling the IO events as it is not the component with the focus.Anonymoushttps://www.blogger.com/profile/05001967782991767837noreply@blogger.comtag:blogger.com,1999:blog-6929422799523574458.post-67868730046499231632012-06-09T04:16:57.297+02:002012-06-09T04:16:57.297+02:00I copied and pasted your applet code directly and ...I copied and pasted your applet code directly and it seems like the keyadapter is doing nothing.... the ball does not stop when I hit a key? can you explain?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6929422799523574458.post-3096233158697006912009-11-28T08:47:49.671+01:002009-11-28T08:47:49.671+01:00Great, this really is a goo explination.
Thanks L...Great, this really is a goo explination.<br /><br />Thanks LoadsAnonymousnoreply@blogger.com