Button Border Script

Does anyone have an example script on how to change button border in script, possibly the ‘titled panel’ one?


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)

You have a createTitledBorder() method that could fit your needs.