JavaFX

From BITPlan can4eve Wiki
Revision as of 17:28, 27 June 2017 by Wf (talk | contribs) (Created page with "<source lang='java'> →‎* * update the given tab with the given panel * * @param tab * @param panel: public void updateTab(Tab tab, JPanel panel) { if (...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
/**
   * 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);
    }
  }