Does anyone have an example script on how to change button border in script, possibly the ‘titled panel’ one?
/c
Does anyone have an example script on how to change button border in script, possibly the ‘titled panel’ one?
/c
Here is a script I use to change the border of power tables, as they don’t expose the border property, as far as I know:
from javax.swing import BorderFactory
myBorder = BorderFactory.createLineBorder(project.constants.COLOR_BLUE_DARK)
event.source.setBorder(myBorder)
You have a createTitledBorder() method that could fit your needs.