Set TitledBorder

Is there a way to set the TitledBorder text by a method?