Let's say I declare an object using SwingBuilder as follows:
swing.button(id:'something')
I know I can get the Component
back from SwingBuilder by calling:
swing."something"
But how can I go from an instance of the Component
, back to its id
as a String?
Component c = getMyButton()
String whatIWant = c.id //Property doesn't exist
String attempt2 = c['id'] //Property doesn't exist