【发布时间】:2013-12-28 04:28:48
【问题描述】:
我希望从 HTMLEditor 中删除一些控制按钮,因为我不需要它们。为此,我需要到达所需的节点。如何知道 HTMLEditor 中节点的 ID?请参阅以下内容。谢谢!
public class myApp extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("myApp.fxml")); //this fxml has HTMLEditor named htmlEditor.
Scene scene = new Scene(root);
stage.setScene(scene);
stage.show();
Node someControlInsideHtmlEditor = root.lookup("#htmlEditor").lookup("#what_Is_The_ID_of_This_someControlInsideHtmlEditor")
}
}
【问题讨论】:
-
大家好!新年快乐!我希望再次提出同样的问题,因为没有人回答它。提前谢谢你。