java - JavaFx, pane not displaying the browser -
i have javafx interface generated scenebuilder...so have view components in sample.fxml. when start application looks : http://i.imgur.com/3tj0tn9.png in blue pane want add browser ( jxbrowser library), did this:
public void loadmap(actionevent actionevent) { initcomponents(); //setting buttons visibility browser browser = new browser(); browserview browserview = new browserview(browser); gamepane.getchildren().add(browserview); browser.loadurl("http://www.google.com"); gamepane.getchildren().add(new button("random")); } this main:
public class main extends application { @override public void start(stage primarystage) throws exception{ parent root = fxmlloader.load(getclass().getresource("sample.fxml")); primarystage.settitle("google maps "); primarystage.setscene(new scene(root)); primarystage.show(); } public static void main(string[] args) { launch(args); } }
that button added, browser won't appear..what can do?i used in swing , worked,but here seems not. browser loaded(because specific messages in console) isn't displayed.
Comments
Post a Comment