What follows is a simple frame designed with the JavaFX scripting language. The frame also has a ScrollPane component.
import javafx.ui.*;
import javafx.ui.canvas.*;
import javafx.ui.filter.*;
import java.lang.System;
Frame {
centerOnScreen: true
visible: true
height: 300
width: 300
title: "Window title"
onClose: operation() {System.exit(0);}
content: ScrollPane {
var color=Color{
red:64
green:64
blue:74
}
background: color
view: Canvas {
background: black
cursor: DEFAULT
}
}
}