Difference between revisions of "JavaFX"
Jump to navigation
Jump to search
(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 (...") |
(No difference)
|
Revision as of 18:28, 27 June 2017
/**
* 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);
}
}