[IMPLEMENTED] Canvas element for flexible interfaces

It would be great if the canvas element was supported in the future releases. This could be used to create much more dynamic view screens. This would be a flexible interface to interact with graphics, regions and images.

1 Like

Hello
Sorry if I come too late (at least it could help someone else), but you actually can do that.
You have to open a new JFrame (on ursim it’ll be a new window, but on the robot it will display “as if” it were a canvas).
Then, create a class that extends JPanel, and you can override the paintComponent method, where you can draw lines etc.

class MyCanvas extends JPanel{
	@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		g.drawLine( x1, y1, x2, y2);
	}
}

:slightly_smiling_face:

1 Like

Please take into account, that UR has announced, that this will be blocked in future versions!

I think this feature request is a direct response to the announcement.

Ouch.
Thank for this info, wasn’t aware of that… That is totally compromising my project.
So yes, I’m also in need of that feature request.

This feature request is now considered implemented!
Check out the release of PolyScope 5.0 and PolyScope 3.6 - and the SDK 1.3.55.