JavaFX - good or not? I need docking in it [closed]
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
开发者_高级运维 Improve this questionI have just explore javaFX. I am now programming modul based application by netBeans platform. I have minimal UI now, but I am going to do quite complex GUI. Is javaFX good for me? And if yes, how I can implement docking in main window?
(i think about usage of JFX becouse I want good looking app)
It really depends what you are trying to do. If you are building an interface using standard GUI components, then it might make sense to use Swing. You can build good looking apps with Swing, and you can build ugly apps with JavaFX.
JavaFX is good you can try with it. It will give your application cool look but its little bit heavy.
Your real problems lies in using NetBeans platform. If you are using also NetBeans windows system then combining it with JavaFX is hard. The API needed to add Scene to JComponent is private. But look forward, we are always adding new features to NetBeans platform.
A simple docking framework for JavaFX:
https://github.com/andy-goryachev/FxDock
public void start(Stage s) throws Exception
{
// plug in custom windows and dockable panes.
FxDockFramework.setGenerator(new DemoPanes());
// load saved layout
int ct = FxDockFramework.loadLayout();
if(ct == 0)
{
// when no saved layout exists, open the first window
DemoWindow.openBrowser("https://github.com/andy-goryachev/FxDock");
}
}
精彩评论