一键导入
javafx-localization-runtime-language
Localize JavaFX applications with resource bundles, locale-aware formatting, and runtime language switching.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Localize JavaFX applications with resource bundles, locale-aware formatting, and runtime language switching.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | javafx-localization-runtime-language |
| description | Localize JavaFX applications with resource bundles, locale-aware formatting, and runtime language switching. |
| triggers | ["javafx localization","runtime language switch javafx","resourcebundle javafx","javafx i18n"] |
| compatibility | {"java":"17+","javafx":"21+"} |
| category | ui-core |
| tags | ["localization","i18n","resourcebundle","locale","translation"] |
| metadata | {"scope":"repository","maturity":"starter"} |
| allowed-tools | ["view","rg","apply_patch"] |
Use this skill when the UI must support multiple locales, runtime language switching, or locale-sensitive formatting. Libraries such as Language Manager show that dynamic switching is a meaningful JavaFX use case beyond startup-only resource bundles.
import java.util.Locale;
import java.util.ResourceBundle;
import javafx.beans.binding.Bindings;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
public class LocalizedView extends VBox {
private final ObjectProperty<Locale> locale = new SimpleObjectProperty<>(Locale.ENGLISH);
public LocalizedView() {
var label = new Label();
var switchButton = new Button();
label.textProperty().bind(Bindings.createStringBinding(
() -> bundle().getString("greeting"),
locale
));
switchButton.textProperty().bind(Bindings.createStringBinding(
() -> bundle().getString("switchLanguage"),
locale
));
switchButton.setOnAction(event -> locale.set(
locale.get().equals(Locale.ENGLISH) ? Locale.GERMAN : Locale.ENGLISH
));
getChildren().addAll(label, switchButton);
}
private ResourceBundle bundle() {
return ResourceBundle.getBundle("i18n.messages", locale.get());
}
}
Build JavaFX 3D modeling tools and print/export workflows with isolated geometry generation and preview rendering.
Choose and integrate mature third-party JavaFX control libraries for forms, productivity widgets, theming, and developer workflow support.
Build JavaFX terminal emulators or shell-style console panes with background process I/O, ANSI handling, and safe FX-thread updates.
Build node-based JavaFX workflow editors, graph canvases, and visual programming surfaces with clean model separation.
Animate JavaFX UIs with Timeline, Transition, Canvas, and AnimationTimer-based render loops.
Manage the JavaFX Application lifecycle, primary stage setup, startup sequencing, and shutdown behavior.