An open ended question but....
Have a look at the BorderFactory class..specifically BorderFactory.createCompoundBorder(Border outer, Border inner)
Perhaps you mean expanding the internal borders of a TitledBorder..
[code]
Border emptyBorder = BorderFactory.createEmptyBorder(20,20,20,20);
Border titledBorder = BorderFactory.createTitledBorder(emptyBorder, "Title");
[/code[
The actual border size is determined by the component (JPanel, for instance) you add it to...but using the example above you can enlarge the border by padding with empty spaces
hth
You can pass another border (like a line border) as the first argument of the createTitleBorder method.
TitledBorder titledBorder =
BorderFactory.createTitledBorder(
BorderFactory.createLineBorder(
SystemColor.activeCaption,
1),
"Modulator",
TitledBorder.DEFAULT_JUSTIFICATION,
TitledBorder.DEFAULT_POSITION,
new Font(
"Dialog",
Font.BOLD,
12),
Color.blue);