Universal Robots Forum

How to paint rectangle from integer input boxes in URSim


I’m new to Java Swing and URCap but I’ve managed to add components and designed the layout of my project…

I’ve added a rectangle with two integer input boxes, One for the Width and one for the Height. These boxes are supposed to set the width and height for the rectangle.

The problem is that I am unable to use the value from the input boxes and paint the rectangle from their value.

Thanks in advance!