scenebuilder

Label Font and Text Fill disabled on Scene builder

别说谁变了你拦得住时间么 提交于 2019-12-11 07:26:18
问题 I'm fairly new to Scene Builder and JavaFXML. When I added a Label to my Anchor Pane, I couldn't change the Font of the Text and it's colour. Both the options have been greyed out and there's this CSS heading next to it. How can I not disable those options? This is the same case for the buttons too. FXML file: <?xml version="1.0" encoding="UTF-8"?> <?import com.jfoenix.controls.JFXButton?> <?import javafx.scene.control.Label?> <?import javafx.scene.layout.AnchorPane?> <?import javafx.scene

How to get the respective stage according to the user type?

老子叫甜甜 提交于 2019-12-11 06:49:47
问题 So the problem right now is that I have issue with prompting towards the right stage for each type of users, I have a method which checks their username and return their type of role and after that it will prompt it to their respective stage after verifying their user and pass. I have tried to do some debug and it seems that the method getUserRole has something wrong with it, since I can't get into the method for it in the login controller. **Login Controller* @FXML public void Login

JavaFX 8 SceneBuilder LineChart data type

不羁岁月 提交于 2019-12-11 06:21:28
问题 It seems like when I create a LineChart in SceneBuilder it defaults to "String". That is: LineChart<String, String> . When I load it in code then try to add some data I get: Exception in thread "JavaFX Application Thread" java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String It works fine if I create the chart in code instead: val chart = new LineChart[Number, Number]( new NumberAxis(), new NumberAxis()) I don't see any option in SceneBuilder that allows me to

Gluon scenebuilder is not launching ubuntu

╄→尐↘猪︶ㄣ 提交于 2019-12-11 05:46:13
问题 On ubuntu I installed scene builder it won't launch. Also didn't give any type of exception. Icon blinks for few seconds and then stops. 回答1: Well, I have the same issue here. I run scene builder alongside with intelliJ IDE on my laptop(elementary os loki). I tried to googling around and finally found a workaround from this post. May it helps you! p.s.: I still can't open it directly from intelliJ, so I open the scene builder separately. 回答2: @José Pereda pointed out that the problem could be

Cannot create FXML file in JavaFX project in Eclipse

谁说我不能喝 提交于 2019-12-11 04:43:46
问题 OS: Ubuntu 14.04. IDE: (Eclipse Mars.1 Release (4.5.1)) and Scene builder 2. I can't choose root element because as I understand it should be done. This window I see when creating a file. Maybe I incorrectly set the path to my Scene Builder executable. How to solving this problem? I did everything according to instructions. Update 1: Not yet solved the problem, I'll use the Idea IDE Update 2: Now i use Netbeans with JDK from ORACLE website. I chose the easiest way. 回答1: The problem is solved

Combo box menu item font change in fxml

删除回忆录丶 提交于 2019-12-11 03:16:38
问题 I need to change the font and remove the shadow for the combo box items. I've made an attempt with the code below but it was unsuccessful: .combo-box .popup-menu, .combo-box .menu-item, .combo-box .popup-menu .menu-item-radio { -fx-shadow-highlight-color: transparent; -fx-font-family: "Arial"; -fx-font-size: 14px; } 回答1: For JavaFX2 you can create a CellFactory to set it: import javafx.application.Application; import javafx.collections.FXCollections; import javafx.scene.Scene; import javafx

Intellij's javaFX scene builder not working

这一生的挚爱 提交于 2019-12-11 01:55:44
问题 When I open .fxml file in IntelliJ IDEA 15 and swich to the SceneBuilder tab, I allways get an error page. I have checked a path to the SceneBuilder app and it is valid. I also can run the Scene Builder app without any problems. Can someone help me with this? The error it throws me on the Scene Builder tab: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

Impossible to add the charm library in Scene Builder

馋奶兔 提交于 2019-12-10 23:55:57
问题 I can not add gluonhq.charm elements or open gluon FXML with "charm-common-2.2.0.jar" library in my scene builder Builder 8.2 (I tried with 8.1.1 too). When I add the jar file, nothing is added in the left section on scene builder. But the jar is correctly added in the Library folder. See image below Or when I try to open a gluon FXLM, I have this exception : Caused by: java.lang.ClassNotFoundException: com.gluonhq.charm.glisten.mvc.View Can you help me ? 回答1: If you want Gluon's Charm

JavaFx TableView Columns don't fill the TableView Width

左心房为你撑大大i 提交于 2019-12-10 16:37:00
问题 I have a TableView generated with SceneBuilder and all the columns are FXML imports from other views, until there no problem, but the columns don't fill the width. I tried to fix this with scene builder and FXML, but no luck, all the sizes are computed. I tried to code it with a change listener that checks every time the window changes size to adapt the size of the columns. This works and the columns resize to the proper width (basically I am getting the table view width and divide it by the

IntelliJ IDEA 15 Scene Builder not showing all controls

杀马特。学长 韩版系。学妹 提交于 2019-12-10 16:04:47
问题 I have troubles with the built in Scene Builder. When used standalone Scene Builder displays everything fine. Did I mess up some settings in IntelliJ Idea or it's a bug. I use IntelliJ Idea 15.0.3 (64 bit) and Scene Builder 2.0. One thing I changed in IntelliJ was the heap size. Here is my idea64.exe.vmoptions file: -Xms512m -Xmx2048m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=256m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net