import java.awt.Color

panel(border: lineBorder(color: Color.BLACK, thickness: 1)) {
  migLayout(layoutConstraints: 'fill')

  bannerPanel(constraints: 'span 2, growx, wrap',
    title: 'Login',
    subtitle: 'Please enter your credentials',
    titleIcon: imageIcon('/griffon-icon-48x48.png'),
    border: lineBorder(color: Color.BLACK, thickness: 1),
    subTitleColor: Color.WHITE,
    background: new Color(0,0,0,1),
    startColor: Color.WHITE,
    endColor: Color.BLACK,
    vertical: true)

  label 'Username:', constraints: 'left'
  textField columns: 20, text: 'Bugs Bunny', constraints: 'wrap'
  label 'Password:', constraints: 'left'
  passwordField columns: 20, text: 'wabbit', constraints: 'wrap'
  button 'Login', constraints: 'span 2, right'
}
