I installed JDK 8 on my Raspberry Pi and am trying to run a javaFx sample application. My OS is Raspbian. I am using the "DigitalClock" sample application that comes with Netbeans 8. The application launches and runs on the Pi, but when it does it is almost full screen and has this large black border around the main view. Also, there is no frame on the app. No exit or minimize buttons. Frankly, I don't know how to shutdown the app or just run it in a smaller window. To resume using my Pi, I have to unplug it and reboot.
What am I doing wrong here?
A JavaFX developer, Daniel Blaukopf, explained this in a Raspberry Pi forum:
I'm also going to copy the linked information from the open-jfx wiki here in case the wiki page dies:
Answers to additonal questions
You should code your application to include a reasonably obvious UI element that will allow the user to close the application. For example, by placing a close button on your main application screen or providing a close menu option:
If you also want the application to respond and exit on a key combination, such as Ctrl+C, then you could additionally include a key combination accelerator: