tag:blogger.com,1999:blog-7114525940495426773.post2138662749500983509..comments2023-06-24T10:52:52.198+02:00Comments on JPereda's Coding Blog: ArduinoFX: A JavaFX GUI for Home Automation with Raspberry Pi and Arduino. Part IAnonymoushttp://www.blogger.com/profile/15247383133952423416noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-7114525940495426773.post-40312766874837821562017-12-05T03:40:57.742+01:002017-12-05T03:40:57.742+01:00This comment has been removed by a blog administrator.Bloggerhttps://www.blogger.com/profile/07287821785570247118noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-532687251317617312015-09-17T15:29:30.895+02:002015-09-17T15:29:30.895+02:00This comment has been removed by a blog administrator.bubblefootballhttps://www.blogger.com/profile/16012203320517666461noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-56256454120294477412013-11-09T12:37:11.790+01:002013-11-09T12:37:11.790+01:00Thanks for you email.
It works perfect now:)
THX,...Thanks for you email. <br />It works perfect now:)<br />THX, Andy<br />Anonymoushttps://www.blogger.com/profile/08514054093330547444noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-2980457184072542282013-11-06T12:21:57.326+01:002013-11-06T12:21:57.326+01:00Hi Andy, the first warnings are just that, warning...Hi Andy, the first warnings are just that, warnings about some css.<br /><br />The error with jdk8 is due to something missing, but without looking at the code I can't tell. I've sent you my email address via google+ so you can send me your code.<br /><br />JoseAnonymoushttps://www.blogger.com/profile/15247383133952423416noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-1656343881985103822013-11-03T17:23:46.693+01:002013-11-03T17:23:46.693+01:00I am still testing the code, and found out somethi...I am still testing the code, and found out something must be wrong with my settings in Netbeans.<br /><br />my application is working on PC with Netbeans settings Java Platform: JDK 1.7.0.(Default) but get following errors:<br /><br />WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-base-color' while resolving lookups for '-fx-text-fill' from rule '*.button' in stylesheet jar:file:/C:/Program%20Files/Java/jdk1.7.0_45/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss<br />WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '*.button' in stylesheet jar:file:/C:/Program%20Files/Java/jdk1.7.0_45/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss<br />WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '*.label' in stylesheet jar:file:/C:/Program%20Files/Java/jdk1.7.0_45/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss<br />WARNING: com.sun.javafx.css.StyleHelper calculateValue Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '*.label' in stylesheet jar:file:/C:/Program%20Files/Java/jdk1.7.0_45/jre/lib/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss<br /><br />same code with Netbeans Java Platfrom: JDK 1.8<br />Exception in Application start method<br />java.lang.reflect.InvocationTargetException<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br /><br />When i build the project with JDK7 or JDK 8 i get then the java.lang.reflect.InvocationTargetException<br />at the raspberry and dont work.<br /><br />I dont know, maybe this information is helpfull for you.<br />thanks a lot,<br />AndyAnonymoushttps://www.blogger.com/profile/08514054093330547444noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-50310275610262796112013-10-31T20:17:33.003+01:002013-10-31T20:17:33.003+01:00Hola Jose,
I did how you said. but didn't got...Hola Jose,<br /><br />I did how you said. but didn't got it working with JDK 8... I have used a new fresh sample, but end up with <br />"Exception in Application start method java.lang.reflect.InvocationTargetException"<br /><br />In the sample i do not load any FXML which can cause the exeption.<br />I dont know what i do wrong..<br />thx,<br />Andy<br /> <br /><br />Anonymoushttps://www.blogger.com/profile/08514054093330547444noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-66233911769030594712013-10-24T17:34:34.180+02:002013-10-24T17:34:34.180+02:00Hi Andy, sorry for late replay, it's been a re...Hi Andy, sorry for late replay, it's been a really busy week.<br /><br />Check MatrixPanelBuilder class, from branch 8.0. As I told you it's commented. If you uncomment all the code, and use this:<br /><br />public class MatrixPanelBuilder <B extends MatrixPanelBuilder<B>> {<br />}<br /><br /><br />instead of the old class declaration:<br /><br />public class MatrixPanelBuilder <B extends MatrixPanelBuilder<B>> extends ControlBuilder<B> implements Builder<MatrixPanel> {<br />}<br /><br />then you don't need to import javafx.scene.control.ControlBuilder.<br /><br />Regarding the exception, I get that when I try to load something through the FXMLLoader and the resource is not found.<br /><br />Try it again and let me know.<br />Jose<br /><br /><br /><br />Anonymoushttps://www.blogger.com/profile/15247383133952423416noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-3288092823545758272013-10-21T19:49:02.082+02:002013-10-21T19:49:02.082+02:00Hi Jose,
Thanks for your quick answer and your he...Hi Jose,<br /><br />Thanks for your quick answer and your help! This time i was using the correct branch 8.0 and succeeded!<br />As you suggested I created a new JavaFX sample project and it worked immediately under JDK 1.7.0<br /><br />Then i took the working sample project and tryed to run it under jdk1.8.0(on other computer), and there i get the "java.lang.reflect.InvocationTargetException" again.<br /><br />But i noticed something is wrong with one of my imports: <br />import javafx.scene.control.ControlBuilder; ( ControlBuilder is strikedout )<br /><br />Is there something else to do under JDK8 ? <br />I want to run the code on my raspberry then, so far in know Jdk 8 is optimized for raspberry.<br /><br />your help is appreciated.<br />Andy<br /><br /><br /> <br /><br />Anonymoushttps://www.blogger.com/profile/08514054093330547444noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-77420398196598413402013-10-20T23:32:45.642+02:002013-10-20T23:32:45.642+02:00Hi Andy, thanks for your nice words!
Regarding th...Hi Andy, thanks for your nice words!<br /><br />Regarding the MatrixPanel, please check you've downloaded branch 8.0 from JFXtras.org. <br /><br />Then you'll notice the MatrixPanelBuilder class has all its code commented. I'll should commit this class at some point... But in the meantime: uncomment it, keeping in mind this is how the class should start:<br /><br />public class MatrixPanelBuilder <B extends MatrixPanelBuilder<B>> {<br />}<br /><br />and you should also remove some @override anotation. <br /><br />Besides that, it should work. Make a short sample, and try to run it. Samples from my first posts should work without any changes.<br /><br />Please send me the code if it doesn't work, I can't help you otherwise.<br /><br />JoseAnonymoushttps://www.blogger.com/profile/15247383133952423416noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-61316331600116880072013-10-20T17:23:54.742+02:002013-10-20T17:23:54.742+02:00Hi Jose,
Excellent work!! Thanks for that article...Hi Jose,<br /><br />Excellent work!! Thanks for that article! <br />I got really lots of information from you blog. Thanks fot that!<br /><br />At the moment i have a little project and i want to use the MatrixPanel from jfxtras. I use the same Code for the <br />MatrixPanel like you.<br /><br />But when i start my application i always get "java.lang.reflect.InvocationTargetException". <br />Do you have any idea how to solve this problem?<br /><br />IDE.Netbeans 7.4<br />JDK 8<br /><br />Many thanks and best regards<br />Anonymoushttps://www.blogger.com/profile/08514054093330547444noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-69799098811210308452013-09-17T21:32:56.600+02:002013-09-17T21:32:56.600+02:00I'm glad you made it work. Thanks for sharing ...I'm glad you made it work. Thanks for sharing the solution! <br /><br />Come back as often as you want, I'll try to post more in the near future.<br /><br />JoseAnonymoushttps://www.blogger.com/profile/15247383133952423416noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-58290625930100343442013-09-17T20:22:26.634+02:002013-09-17T20:22:26.634+02:00Hi José,
The problem was that rxtx does not recog...Hi José,<br /><br />The problem was that rxtx does not recognise /dev/ttyAMA0, so I added one line of code: System.setproperty("gnu.io.rxtx.SerialPorts "," /dev/ttyAMA0") or you can do that directly on RPi via JAVA_OPTS<br /><br />Then everything works fine!<br /><br />Thanks for your help and I will try some more stuff from your blog in the future<br /><br />Greetings from Belgium!Anonymoushttps://www.blogger.com/profile/09479691205960592249noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-50833668284784512882013-09-16T09:56:05.990+02:002013-09-16T09:56:05.990+02:00Hi Kasper. I'm pretty sure you've adapted ...Hi Kasper. I'm pretty sure you've adapted the code in XBee.java:<br /> <br />serial=new Serial();<br />serial.connect( "/dev/ttyUSB0" ); --> serial.connect( "/dev/ttyAMA0" );<br /><br />as this is the only call to the name of the port in all the server code.<br /><br />Have you tried also EmbSerial from Test #4? Without deploying the server, it's a simple test that would show you if port comms are working.<br /><br />BestAnonymoushttps://www.blogger.com/profile/15247383133952423416noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-86697403943475534302013-09-16T09:42:12.446+02:002013-09-16T09:42:12.446+02:00Hello José,
first of all, thank you for your time!...Hello José,<br />first of all, thank you for your time!<br />The weird symbols, I attributed this to the fact that I am using analog sensors.<br /><br />Concerning the ports, I have tried some more...but cannot solve the problem. It seems that the problem indeed is caused by the RXTX library. Is it possible that I have to tell RXTX to look for this /dev/ttyAMA0 port? <br />Do you have any suggestions on an elegant way to do this? <br />Many thanks and best regards Anonymoushttps://www.blogger.com/profile/09479691205960592249noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-19453025089441598362013-09-13T21:07:12.888+02:002013-09-13T21:07:12.888+02:00Hi Kasper. If you read weird symbols is highly pro...Hi Kasper. If you read weird symbols is highly probable you've set a different baud rate between both devices, so first thing you should try is check that. <br /><br />Regarding the port problem, it seems related to RXTX library. Please check that the name of the port where the coordinator is plugged is the same you try to open (ttyAMAo should be ttyAMA0, for instance).<br /><br />Hope you solve it! Otherwise, please let me know!<br />JoseAnonymoushttps://www.blogger.com/profile/15247383133952423416noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-50598486831408671382013-09-13T19:30:23.082+02:002013-09-13T19:30:23.082+02:00Wow very nice!
Inspired by your work, I am trying...Wow very nice!<br /><br />Inspired by your work, I am trying some things. I have Raspberry Pi with a coordinator and an end device with sensors. I wrote Java code in Eclipse and everything works fine. However, when I write a JAR file of all classes & libraries, i get "Could not find port". To verify my /dev/ttyAMA0 port, I ran minicom as you suggest in your tutorial. I receive the packets from the end device (weird symbols, but data is coming in). Do you have any idea what might cause this "Could not find port"? Any help would be deeply appreciated. <br />Best regards!Anonymoushttps://www.blogger.com/profile/09479691205960592249noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-42193906692397840512013-03-04T09:21:18.417+01:002013-03-04T09:21:18.417+01:00There are lots of home services like home automati...There are lots of home services like home automation that will fit your needs. Now, there are lots of companies that offers this service. All we need to do is to find the right company for this matter.<br /><br /><a href="http://www.tunnel1.com/" rel="nofollow">Smart Home Chicago</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-46910509067237939552013-01-10T07:56:50.483+01:002013-01-10T07:56:50.483+01:00This comment has been removed by a blog administrator.Anonymoushttps://www.blogger.com/profile/00025201330413113348noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-29176082433339487662012-12-17T05:53:44.964+01:002012-12-17T05:53:44.964+01:00Very nice work Sir!!Very nice work Sir!!Anonymoushttps://www.blogger.com/profile/05598478787754169048noreply@blogger.comtag:blogger.com,1999:blog-7114525940495426773.post-53118027899690735292012-12-13T22:07:36.191+01:002012-12-13T22:07:36.191+01:00Excellent article! Looking forward to reading more...Excellent article! Looking forward to reading more!Mark Hecklerhttps://www.blogger.com/profile/06665364679431316402noreply@blogger.com