scenebuilder

JavaFx JFoenix Java9

陌路散爱 提交于 2019-12-13 01:04:36
问题 so I updated my Java from 8 to 9, and I do realize that Jfoenix has separate Jar file for Java 9. However after download the Jar file then trying to import to Scene builder like I did before, nothing shows up, None of the custom controller shows up when I trying to import. Can anyone tell me what is going on ? 回答1: First, make sure you are using Gluon Scene Builder 9.0.1, that can be downloaded from here. Once installed, go to the Jar/FXML Manager option: Select Search repositories : Type

java.lang.reflect.InvocationTargetException When get value from TextField - Javafx

两盒软妹~` 提交于 2019-12-13 00:57:58
问题 I am new to Javafx. I am learning Javafx by developing a simple application. I am trying go get value from TextField in javaFXML. I got java.lang.reflect.InvocationTargetException . Javafx File. public class Manoj extends Application { @Override public void start(Stage stage) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("FXMLDocument.fxml")); Scene scene = new Scene(root); stage.setScene(scene); stage.show(); } /** * @param args the command line arguments */ public

JavaFX background-image works in scenebuilder and win but not on osx

泪湿孤枕 提交于 2019-12-13 00:42:34
问题 I have a simple FXML which has a background-image defined for a tab-pane in an external css-file. The background-images is located in a image-directory which is placed in the same folder as in the .FXML The problem is that this background-image is being displayed in SceneBuilder (Win 7 and OSX Mountain Lion) but when running the application, only on Windows 7. I'm using Netbeans 7.2 and also tried updating to JDK 7.0_06 on OSX. I also made sure that my project is being build with 7.0_06.

Lambda functions with FXML in JavaFX8

怎甘沉沦 提交于 2019-12-12 17:54:21
问题 I'm working to an invader game in JavaFX with Scene Builder (I have to shoot planes whit a cannon) but I have got problems with lambda function. I'm sure code is right because if I associate the code through Scene Builder's option (On action) it works, but, when I try to use lambda function, I can't change my scene. Where am I wrong? public class SchermataGiocoController { private Parent Menu, Avvio; private TranslateTransition tt; private Cannone cannone; //cannone = cannon private Aereo

JavaFX getting scene from a controller

孤街浪徒 提交于 2019-12-12 10:43:00
问题 I recently started playing around with Java FX, FXML, and scene builder, and I've been trying to add key listeners to one of the controllers for a scene. When I do this though, the key listeners don't work as they should, and I figure it's because they're not focused onto that particular scene. I tried to get access to the scene the controller was part of in order to set it directly, but it comes up that it's part of a null scene. Is there a way to gain access to the scene that this

JavaFX thread issue

扶醉桌前 提交于 2019-12-12 06:00:11
问题 i'm using thread to resolve the problem of GUI freeze. But with thread i'm facing a problem that i'm unable to pass format of the report as argument in run method or even with the help of constructor i'm unable to do it..... public class BirtReportExportCon implements Runnable { @FXML Button exportButton; @FXML CheckBox pdfCheckBox; @FXML CheckBox xlsCheckBox; @FXML CheckBox docCheckBox; @FXML CheckBox mailCheckBox; public String fileFormat; Allow to Check Single CheckBox on Gui public void

Creating multiple tables independent from each other JavaFX/Scenebuilder [duplicate]

会有一股神秘感。 提交于 2019-12-12 05:31:53
问题 This question already has answers here : Javafx tableview not showing data in all columns (2 answers) Javafx PropertyValueFactory not populating Tableview (2 answers) Closed 2 years ago . I am trying to build 3 different tables the will be be independent from each other. For some reason the cells are showing but are blank. Any idea what I am doing wrong? Main: package application; import java.util.logging.Level; import java.util.logging.Logger; import javafx.application.Application; import

JavaFX: How to update the center view of a borderpane with new values

∥☆過路亽.° 提交于 2019-12-12 04:53:42
问题 I am creating a program which has a row of buttons on the top, and a row of buttons on the side. The top buttons control the view, and the side buttons control what object to reference in the view. My main/root view is a borderpane. The point is to, as I click on any of these buttons, to change a value in my MainController, and then reload the center view with these new values. I thought it would be so simple as to write a method that would change the value and then set a new center according

javafx change style of a node frequently not by CSS

二次信任 提交于 2019-12-12 04:44:22
问题 Example is 3 nodes in stage: button, colorpicker and comboBox(for change text size) . Button btn = new Button("Change color and size"); ColorPicker colorpicker = new ColorPicker(); ComboBox sizebox = new ComboBox(); sizebox.getItems().addAll("13", "15", "16", "17", "18", "19", "20", "22"); ColorPicker will change the button background color by customer, and sizebox will change the text size by customer. colorpicker.setOnAction(e-> btn.setStyle("-fx-background- color:#"+Integer.toHexString

JavaFX updating controller property from another controller

徘徊边缘 提交于 2019-12-12 03:35:30
问题 I have a progress bar that I am trying to update within javaFX in a controller. I am updating the progress bar based on a function called Generate(), if it is called it should update the progress bar within the main controller. However, the code I have doesn't update it, rather it updates a new instance of the progress bar. The Generate method in my DrawerContentController is : try { AnchorPane ap = fxmlLoader.load(); for(Node node: ap.getChildren()){ if(node.getId().equals("progressBar")){