Good morning,
i have a gui problem.
how could i add a green lamp/led to my urcap with swing?
i want to switch on it when a device is connected and switch off.
i need a lamp as the one that we can see in the robot network set-up.
Good morning,
i have a gui problem.
how could i add a green lamp/led to my urcap with swing?
i want to switch on it when a device is connected and switch off.
i need a lamp as the one that we can see in the robot network set-up.
Hi,
the easiest way to achieve this is using a ImageIcon in a JLabel that changes its icon on specific events. You can use the IconSet from the Download section.
To change the State and your ImageIcon of your LED you’ll need a UI thread, that is watching your IO:
For Digital IO you can use the DigitalIO Interface and read the actual values.
For Register IOs i would recommend to implement the RTDE Interface and also watch these values with a UI thread