问题标签 [fxml]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - Is there a way to modularize a JavaFX application?
I've started toying with JavaFX 2 and I really like the ease with which one can create a UI with FXML. However, once you get past the basic examples and you need a UI with many windows, it seems illogical to have the definition for the whole application's UI in a single FXML file.
Is it possible to write separate components in separate FXML files and then include them as needed? Say for example that I wanted a window to popup when the user clicks on an item from the main menu; could I write the definition for that window in a separate FXML file, load it at runtime and add it to the node tree?
javafx-2 - JavaFX 如何设置最大/最小窗口大小?
setMinSize()
例如,是否适用于容器GridPane
?我发现在我的程序中GridPane
忽略了 min。手动调整大小时的大小属性。
这是 FXML 代码:
和控制器类
这里有什么问题?是否应该有某种“窗口”最大/最小尺寸?
java - TextField 中的 RequestFocus 不起作用
我使用 JavaFX 2.1 并使用 FXML 创建了 GUI,在我添加的这个 GUI 的控制器中myTextField.requestFocus();
。
但我总是把焦点放在另一个控件上。
eclipse - Eclipse 中 FXML 的代码完成
是否有可能在 Eclipse 中为 FXML(JavaFX 2.2) 文件完成代码完成工作?
格雷茨
eclipse - 自动完成并在 FXML 中自动添加导入?
我正在使用 Eclipse 来编辑/创建 .fxml 文件。我在这里缺少的是自动导入(“组织导入”)和键入时的自动完成。如何将这些功能添加到 Eclipse?感谢您的任何提示!
java - 如何使用现代 .fxml 和 controller.java 在 javafx 2.x 中制作自动完成组合框
如何使用现代 .fxml 和 controller.java 在 javafx 2.x 中制作一个类似的自动完成组合框,因为这是制作的
http://blog.ngopal.com.np/2011/07/04/autofill-textbox-with-filtermode-in-javafx-2-0-custom-control/
上面提到的演示很混乱,很难配置和独立(需要一些罐子)
javafx-2 - 按下按钮时更改场景 Fxml
我有 2 个 fxml 文件 mainFxml.fxml 和 second.fxml。主 fxml 有一个带有 fx:id="change" 的按钮。单击更改按钮时,我想更改场景。mainFxml控制器代码
但是当我按下按钮更改时,它会抛出异常,因为没有指定资源。帮我..
堆栈跟踪
java - JavaFX 类控制器场景参考
有什么方法可以从关联的类控制器中获取 FXML 加载文件的场景对象。
我正在做这样的事情:
但我想要一个不引用 AnchorPane 控件的解决方案。
java - javafx tableview 未从 fxml 加载(为空)
几个小时以来,我一直试图找到错误。我不知道是什么导致了这个问题。我正在使用控制器类和 fxml。关键是,tableview 在初始化函数中为空。不知道为什么。这里是控制器:
这里是fxml:
生无可恋 ;(
java - 基于 javafx 和 fxml 的透明背景
有很多方法可以使窗格或背景场景的背景透明。
但是如果我有一个用 fxml 和基于控制器的文件制作的应用程序,我该怎么做呢?
当我已经在基于 fxml 的文件中创建了一个应用程序并且布局在底部有一个 AnchorPane 并且在它上面有一些其他窗格时。我实际上如何使白色背景透明或半透明?