Draw a path based on obj.text?
-
I have a couple of buttons and would like to assign different paths to them. I hoped I could just create a LAF for all the buttons and then call:
g.drawPath(obj.text, ...and the rest of the parameters here)
to draw a path based on the obj.text property, but it doesn't work. If I enter the path name manually instead of using.obj text, it loads properly, even though the path name and obj.text are the same, so theoretically, it should work with obj.text too, right? Am I missing something?
-
Got it working, thanks to yet another awesome @d-healey tutorial. Here it is, in case somebody else needs that too: https://www.youtube.com/watch?v=badkm6QVNIA&t=801s