SwingBuilder.etchedBorder

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.

Attributes

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.

Content

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

Examples

panel(border:etchedBorder())

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

Labels

 
(None)