Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Generated Object

A javax.swing.border.EtchedBorder, a border that looks like a groove has been etched into the panel.

Value Argument

etchedBorder() takes no value arguments.


If any of shadow: or highlight: are specified, all must be specified.

  • highlight <Color> The color that is to be painted on the highlight side of the etch.
  • shadow <Color> The color that is to be painted on the shadow side of the etch.
  • parent <boolean> Whether or not this border is to be added to the parent JComponent.


etchedBorder() is a leaf node, no child content is allowed.


Code Block

panel {
    etchedBorder(shadow:Color.RED, highlight:Color.PINK, parent:true)