Border properties

First of all, check out the docs on the toBorder expression. This will orient you as to the syntax of specifying borders.

Currently there is no great way to get to this functionality using Python scripting. We should add a “toBorder” function to the system.gui module, but until then, you can get to this same style of border creation like this:

[code]import sys
sys.add_package(“com.inductiveautomation.ignition.common”)

from javax.swing.border import Border
from com.inductiveautomation.ignition.common import TypeUtilities

myBorder = TypeUtilities.coerce(“paneltitled;MyTitle”, Border)

event.source.parent.getComponent(“Label”).border = myBorder[/code]