bloodwi11 2 Share Posted February 3, 2017 After some extensive testing as well as trial and error i was able to narrow down the cause to the Program.runLater();. That being said everything works fine and it creates the list as intended, But after the script is stopped the Panel no longer displays the list at all. here are 2 screens to show what is intended and what happens after the script is restarted. The only means I've found to even get it to display is restarting DreamBot entirely. public mGUI() { System.out.println("mGUI: mGUI()"); taskWindow = new JFrame(); taskWindow.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { Main.stopScript(); } }); final JFXPanel fxPanel = new JFXPanel(); makePanel(taskWindow, fxPanel); Platform.runLater(() -> initFX(fxPanel)); taskWindow.setVisible(true); } private void initFX(JFXPanel fxPanel) { System.out.println("mGUI: initFX()"); managerList = new ListView<mObject>(); managerList.setPrefSize(Config.MANAGER_WIDTH, Config.MANAGER_HEIGHT); managerList.setEditable(false); managerList.getItems().addAll(createList()); managerList.setCellFactory(new mCellFactory()); Pane root = new StackPane(); root.getChildren().add(managerList); Scene scene = new Scene(root, Config.MANAGER_WIDTH, Config.MANAGER_HEIGHT); scene.getStylesheets().add(Config.MANAGER_STYLE); fxPanel.setScene(scene); } Working as intended/Broken Link to comment Share on other sites More sharing options...
None 227 Share Posted February 3, 2017 as far as i know Dreambot does not support JFX... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.