import java.awt.Color
import java.awt.Font

panel {
  flowLayout()
  button("Sample", id: "button",
         foreground: Color.BLUE) {
     timeline(button, duration: 2500) {
       interpolatedProperty("foreground", from: Color.BLUE, to: Color.RED)
       mouseTrigger(autoReverse: true, event: 'enter')
     }
  }

  button.font = button.font.deriveFont(Font.BOLD,64f)
}
