https://zeroturnaround.com/rebellabs/best-javafx-libraries-for-beautiful-apps-and-clean-code/
MigLayout基于字符串以及API类型构造简单的布局,如果你经常遇到要调整几个组件之间的margin,那么它会简化你的工作。
http://miglayout.com/
如下图,使用简单的代码就可以生成如下的布局,他们白色间隙都是自动添加的
JPanel panel = new JPanel(new MigLayout());
panel.add(firstNameLabel);
panel.add(firstNameTextField);
panel.add(lastNameLabel, "gap unrelated");
panel.add(lastNameTextField, "wrap");
panel.add(addressLabel);
panel.add(addressTextField, "span, grow");
http://github.com/HanSolo/Medusa
https://github.com/HanSolo/tilesfx
http://github.com/aalmiray/jsilhouette
http://github.com/jidesoft/jidefx-oss
http://github.com/TomasMikula/RichTextFX
http://jfxtras.org/
http://fxexperience.com/controlsfx
http://github.com/gluonhq/maps
http://www.object-refinery.com/orsoncharts
http://github.com/jfoenixadmin/JFoenix
http://github.com/jfoenixadmin/JFoenix
很多人都在想能不能在JAVAFX有类似Bootstrap一样的CSS库,现在BootstrapFX就符合这个需求。
使用它只需要在scene加入它即可。如下:
public class Sampler extends Application {
@Override
public void start(Stage primaryStage) throws Exception { (1)
Panel panel = new Panel("This is the title");
panel.getStyleClass().add("panel-primary"); (2)
BorderPane content = new BorderPane();
content.setPadding(new Insets(20));
Button button = new Button("Hello BootstrapFX");
button.getStyleClass().setAll("btn","btn-danger"); (2)
content.setCenter(button);
panel.setBody(content);
Scene scene = new Scene(panel);
scene.getStylesheets().add("bootstrapfx.css"); (3)
primaryStage.setTitle("BootstrapFX");
primaryStage.setScene(scene);
primaryStage.sizeToScene();
primaryStage.show();
}
}
http://github.com/aalmiray/bootstrapfx
http://bitbucket.org/Jerady/fontawesomefx
FontawesomeFX是一款基于JAVAFX的图标库。
引入:
<dependency>
<groupId>de.jensdgroupId>
<artifactId>fontawesomefxartifactId>
<version>8.9version>
dependency>
如何在FXML下使用?
<FontAwesomeIcon name="WARNING" />
更多使用方法查看源码
https://aalmiray.github.io/ikonli/
https://github.com/TestFX/TestFX
http://afterburner.adam-bien.com/
http://jacpfx.org/
http://github.com/sialcasa/mvvmFX
http://griffon-framework.org/
http://github.com/basilisk-fw/basilisk