Hello everybody,
I think it is time to start the first SDK JAVA thread. And here comes the first question:
How can I add a CameraButtonClickedEventListener in the CameraDemoJava application.
In the constructor CameraDemoJava() I have added
b = new Buttons(cameraFrame);
When I now add the CameraButtonClickedEventListener the same way that it is done in the ButtonDemoJava application
b.addCameraButtonClickedEventListener(cameraClickedEL = new ICameraButtonClickedEventListener(){
public void cameraButtonClicked(CameraButtonClickEvent evt) {
String message = "Camera Button was pressed";
JOptionPane.showMessageDialog(CameraFrame, message, "Dialog",
JOptionPane.INFORMATION_MESSAGE);
}
});
I recieve an error:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: unable to register button callback.btnType
at com.intel.healthcare.button.Buttons.doRegisterActionCallbackNoData(Buttons.java:2269)
at com.intel.healthcare.button.Buttons.addCameraButtonClickedEventListener(Buttons.java:1106)
at CameraDemo.CameraDemoJava.actionPerformed(CameraDemoJava.java:345)
The MCA log file in the emp folder says
{S0-P2128-T1352} [BN] Button_Local::RegisterAction - Invalid Window Handle passed
{S0-P2128-T1352} [BN] BN_RegisterAction returning unsuccessful status of : ;DATA#-220
Is there anybody who knows how to add a CameraButtonClickedEventListener ?
Thanks
Markster
SDK JAVA
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.


