I want to make all buttons work perfectly in a JavaFX application showing a web page inside a frame. All the application does is load and show the webpage that the URL is first set to. Doing things like searching google works perfectly. However, the web browser buttons don't always work. For example, if I try and sign into a google account, the "Next" button does not work, and this applies to all Google Drive services. How can I fix this? I am running my code on MacOS Mojave.
import javafx.application.Platform;
import javafx.embed.swing.JFXPanel;
import javafx.scene.Scene;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javax.swing.*;
public class LoadWebPage
{
public static void main(String args[])
{
final JFrame frame = new JFrame();
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setSize(620, 440);
final JFXPanel fxpanel = new JFXPanel();
frame.add(fxpanel);
Platform.runLater(new Runnable()
{
@Override
public void run()
{
WebEngine engine;
WebView wv = new WebView();
engine = wv.getEngine();
fxpanel.setScene(new Scene(wv));
engine.load("https://www.google.com/");
}
});
frame.setVisible(true);
}
}