我正在尝试参考 WebEngine
public class ClientArea implements Initializable {
public WebEngine engine;
@Override
public void initialize(URL url, ResourceBundle rb) {
engine = browser.getEngine();
engine.load("about:blank");
}
}
对于同一文件中的类 (ClientArea.java)
private static class SearchBox extends Region {
private WebEngine engine; // private or public
private TextField insertU;
private Button refreshButton;
private Button stopButton;
private Button backButton;
private Button forwardButton;
public Button voltarButton;
public SearchBox() {
}
}
但这不起作用,那会是什么?