Difference between revisions of "JavaFX"

From BITPlan can4eve Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
= Medusa Gauge Library =
 +
https://github.com/HanSolo/Medusa/wiki/Gauge-Skins
 +
 +
= SwingNode not useable on Raspberry PI =
 
The following code needs Swing and doesn't run properly on a raspberry PI even if JavaFX support is enabled.
 
The following code needs Swing and doesn't run properly on a raspberry PI even if JavaFX support is enabled.
 
<source lang='java'>
 
<source lang='java'>

Revision as of 07:45, 30 June 2017

Medusa Gauge Library

https://github.com/HanSolo/Medusa/wiki/Gauge-Skins

SwingNode not useable on Raspberry PI

The following code needs Swing and doesn't run properly on a raspberry PI even if JavaFX support is enabled.

/**
   * update the given tab with the given panel
   * 
   * @param tab
   * @param panel
   */
  public void updateTab(Tab tab, JPanel panel) {
    if (panel != null) {
      final SwingNode swingNode = new SwingNode();
      swingNode.setContent(panel);
      tab.setContent(swingNode);
    }
  }

Links