我希望从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")
}
}