I am progressing further I am now able to answer my own question above …
What I needed to change is …
layout += (button → BorderPanel.Position.South)
layout += (drawPanel → BorderPanel.Position.North)
… however, this has now uncovered another problem.
Scatsie now gives an error on the line declaring val frame = New MainFrame
Error:
java.awt.HeadlessException:
No X11 DISPLAY variable was set
Extra Info:
This code snippet does run in Visual Studio Code OK
echo $DISPLAY on my Linux machine gives “:1”
The program xeyes works and follows my mouse (X11 test)
Both Chrome and Firefox Browsers behave the same behaviour
Can anyone help with “No X11 DISPLAY variable set” error ?