Kura GUI (Java swing) issues [message #1758361] |
Tue, 28 March 2017 06:21 |
Amarendra Sahoo Messages: 22 Registered: November 2016 |
Junior Member |
|
|
Hi Dave & Folks,
I am trying to display java swing window from an OSGI bundle , deployed to Kura.
I am not finding any exception in Kura. But NO display either.
The Kura thread simply hangs.. as I guess .. as I cant see the Kura log getting populated ...see below...
2017-03-27 23:21:41,148 [pool-25-thread-1] INFO o.s.k.s.p.ManageSensorActions - Showing Image when No one is Around
2017-03-27 23:21:41,416 [MQTT Call: B8:27:EB:52:3D:F6] INFO o.e.k.c.c.CloudServiceImpl - Message arrived on topic: $EDC/retailIOT/B8:27:EB:52:3D:F6/MQTT/APPS
2017-03-27 23:21:41,417 [MQTT Call: B8:27:EB:52:3D:F6] INFO o.e.k.c.c.CloudServiceImpl - Ignoring feedback message from $EDC/retailIOT/B8:27:EB:52:3D:F6/MQTT/APPS
2017-03-27 23:23:08,
in my code :
Activate method to Display image method flow & then
void displayimage(boolean promiximity)
{
/* display frame directly
JFrame frame = new JFrame();
ImageIcon icon = new ImageIcon("promo.jpg");
JLabel label = new JLabel(icon);
frame.add(label);
frame.setDefaultCloseOperation
(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
*/
JFrame frame = new JFrame("Hello World");
frame.setSize(640,480);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}catch(Exception e)
{
s_logger.info("Exception when showing Image when someone is Near"+e);
}
}
.......
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.02770 seconds