scenebuilder

Images not showing on launch by the main, but showed on Scene builder

人走茶凉 提交于 2019-12-24 18:45:50
问题 I'm new on coding, especialy in java, and i've tryed to use JavaFx with scene builder. My issue today is that i've done that menu with scene builder: https://imgur.com/a/IH0lf And when I run it the images doesn't show. I've try with other scenes i've made, same issue. https://imgur.com/a/UuCMi Here is my Main : package com.doki; import java.io.IOException; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.AnchorPane;

Images not showing on launch by the main, but showed on Scene builder

戏子无情 提交于 2019-12-24 18:43:30
问题 I'm new on coding, especialy in java, and i've tryed to use JavaFx with scene builder. My issue today is that i've done that menu with scene builder: https://imgur.com/a/IH0lf And when I run it the images doesn't show. I've try with other scenes i've made, same issue. https://imgur.com/a/UuCMi Here is my Main : package com.doki; import java.io.IOException; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.AnchorPane;

Scene Builder 2.0 not launching

风流意气都作罢 提交于 2019-12-24 13:33:49
问题 Someone seems to have had a similar issue before. On a fresh install of Windows 8.1 I've installed Netbeans, the lastest JDK, and the JavaFX Scene Builder, but the Scene Builder isn't running. Usually the issue is with the Scene Builder window not appearing/opening files, but right now I can't get it to open for a first run. No error messages, and running it from the command line doesn't return anything. The program doesn't seem to appear in the Task Manager, and there's no icon showing on

TextArea does not handle MouseEvent.MOUSE_PRESSED

霸气de小男生 提交于 2019-12-24 03:20:35
问题 I am building a JavaFX application and I have a TextArea inserted. The TextArea has a CSS class assigned (don't know if it matters): .default-cursor{ -fx-background-color:#EEEEEE; -fx-cursor:default; } There are 2 issues about this TextArea : -fx-cursor:default; Has no effect as the cursor remains the text cursor. That is weird as i use the same class for a TextField with proper/expected results The TextArea does not handle MOUSE_PRESSED event My code is : textArea.addEventHandler(MouseEvent

Can Java Scene Builder integrate into Eclipse like it does in NetBeans?

こ雲淡風輕ζ 提交于 2019-12-24 02:25:37
问题 I was just wondering since I am used to programming in My/Eclipse... Is it possible for javafx scene builder to intergrade into eclipse like it does in netbeans: in netbeans you can double click on a "Front end" file/component and java fx scene builder opens up. I am not used to Net Beans and I know it will not make a huge difference if I have to use Netbeans. Only wondered if that is possible. I googled this and dont seem to find the correct information.... Or I might be searching for the

Scene builder removes imports in fxml file

爷,独闯天下 提交于 2019-12-23 18:03:52
问题 I use scene builder (Gluon Scene Builder - JavaFX Scene Builder 8.1.1) to create the UI of my application and develop JavaFX with Eclipse. Now... every time I save something in scene builder it removes the imports of my own classes from the fxml file. Is there a way to tell scene builder that those classes belong to the project to avoid this behavior? 回答1: In order for SceneBuilder to deal with custom controls, you need to add the jar with your classes, so it can be loaded in its classpath.

Create solid separator

强颜欢笑 提交于 2019-12-23 09:59:26
问题 I have looked around quite a bit and cannot find the solution. I am adding a separator in SceneBuilder . This is easy. Now I want this separator to be a solid line. This I am having issues with. I have tried : -fx-border-style: solid; -fx-border-width: 1px; But this doesn't seem to work or any combination of this. 回答1: i think you missed line part in below css .separator *.line { -fx-border-style: solid; -fx-border-width: 1px; } with boarder width 5px Tip : use CSS Analayzer to know css class

javaFX:listview with Radio Button

心不动则不痛 提交于 2019-12-23 05:44:09
问题 I have a list with items which should carry RadioButton with list items. the ListView is an observable ArrayList with data I want to add radio Button with each item in list View. 回答1: Create a custom ListCell and set the graphic of the ListCell to a RadioButton . You can add more functionality inside updateItem() if required. Output Complete Example import javafx.application.Application; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.scene

JavaFx scenebuilder and Maven Integration

这一生的挚爱 提交于 2019-12-22 13:52:27
问题 I have created a JavaFx8 Maven project in eclipse. I have put my fxml files in /src/main/resources/fxml/. I am able to the load the fxml from the java files using FxmlLoader. But, I'm not able to pick the controller class from Fxml file using Scenebuilder. What should I do to be able to see the controller class automatically in the Scenebuilder tool ? I have found a similar question, but the answer wasnt clear. I wasnt able to login to the jira case. Tell JavaFX Scene Builder where to look

Executable Jar limited to one window with JavaFX

白昼怎懂夜的黑 提交于 2019-12-22 12:17:29
问题 I am building a JavaFX application through E(fx)clipse and Java Scene Builder . The basic functionality is a login window. Once logged in, new window opens and the login window disapears. Right now it's just at the prototype stage. When running out of ecplise, the functionality I want is all there. Login window shows up on start (code looking as such) @Override public void start(Stage primaryStage) { try { Parent root = FXMLLoader.load(getClass().getResource("view/login.fxml"), ResourceBundle