• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. OpenJFX
  4. OpenJFX on the Raspberry Pi

Page History

Versions Compared

Old Version 8

changes.mady.by.user Daniel Blaukopf

Saved on Jul 15, 2013

compared with

New Version 9

changes.mady.by.user Daniel Blaukopf

Saved on Jul 15, 2013

  • Previous Change: Difference between versions 7 and 8
  • Next Change: Difference between versions 9 and 10
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JavaFX on the Raspberry Pi takes over the whole screen and captures all Linux input devices. While this will generally be the behavior you want in a deployed application, it is less convenient for development because you can't stop an application using control-C unless the JavaFX application has a KeyEvent handler that listens for control-C and calls Platform.exit(). There's nothing unusual about this - many Linux fullscreen full-screen console applications have the same behavior - but it is often useful to have a quick way to end an an application during development without changing the application code.

There are two ways to run applications with the ability to be terminated by control-C:

  • Run applications over an ssh SSH connection from a PC. This gives most control over the device, because once you have ssh SSH connections set up then you can use them for other purposes as well.
  • Alternatively, you can use a built-in debugging feature to trap control-C. If you set the environment variable JAVA_DEBUG=1 before starting Java then JavaFX will exit when you press control-C. For example

...

Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 221, "requestCorrelationId": "d16d09fe7391347e"}