I have a template with only Text Field component in it. I want a script to run when I click on this template’s instance. I have put a script on MouseClicked event of this template’s instance. There is no script on any event of the template or the Text Field.
Reading through other posts, I understood that Java Swing triggers ‘innermost’ script only. But with no script in template, I thought the script on template instance should run.
Yes, text field component has a mouse clicked event. If I write the same script on text field (inside template), then it gets triggered when I click on the instance.
So, does it mean that what I am trying to do (having script on mouse clicked event of instance instead of inside template) is not possible?
@pturmel Thank you for your reply. Sorry for my late response.
There is no custom method in instance like we have on Button for example
Am I looking at correct place?
For our project we have now written the script on Text Field (inside template) since it will be common for all. But it is interesting to know when events on instance are triggered since there will always be some component within template with same events with priority over instance events.