scenebuilder

Using more than one choicebox to filter listview in JavaFX

白昼怎懂夜的黑 提交于 2021-02-19 05:35:20
问题 I am trying to create a filter function for my listview using multiple choiceboxes and I have no idea how to do it since i'm quite new to JavaFX. I did some research and I hear using a filteredList is required but most of the examples online revolve around only using a textfield. So this is my controller class @FXML private ChoiceBox<String> genre; @FXML private ChoiceBox<String> branch; @FXML private ChoiceBox<String> status; @FXML private ChoiceBox<String> company; @FXML private ListView

Missing fonts in Scene builder

给你一囗甜甜゛ 提交于 2021-02-10 18:12:01
问题 I use Scene builder to build some JavaFX app, whenever I try to select a font from right menu some fonts aren't shown in the list, what could be the problem? I tried several solutions such as reinstalling the program, install the fonts then installing Scene builder, and tried different machines. I noticed that any PC that runs Windows 7 are working perfectly. Edit 1: After some attempts to try to fix the problem it turned out that Windows 10 store fonts in two separate folders, when

JavaFX: Redirect console output to TextArea that is created in SceneBuilder

為{幸葍}努か 提交于 2021-02-07 19:22:10
问题 EDIT 4 I've created a simple example that should give you an idea about what's happening right now. What's happening right now is that whenever I click the button to print "HELLO WORLD" to the TextArea, the program will hang and use 100% of the CPU. There's also no output in the Eclipse console panel too. Main.java public class Main extends Application { @Override public void start(Stage primaryStage) { try { Parent root = FXMLLoader.load(getClass().getResource("/application/test.fxml"));

Getting error when using Jfoenix 9 controls with JDK 13

点点圈 提交于 2021-01-29 19:31:02
问题 Here is the code that causes the problem <JFXColorPicker layoutX="109.0" layoutY="282.0" /> <JFXCheckBox layoutX="58.0" layoutY="356.0" /> <JFXNodesList layoutX="87.0" layoutY="307.0" /> Here is the error Exception in Application start method java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal

ScenicView 8.7.0 does not load the opened JAVA FX application in it to inspect the elements

断了今生、忘了曾经 提交于 2021-01-29 09:40:55
问题 I have ScenicView 8.7.0 installed with JDK 8. I need to inspect the JAVA FX application which is running on Ubuntu 16.04(Hope Linux version is not the concern). ScenicView does find the opened JAVA FX application as per the following logs, but in UI of ScenicView, no application is getting displayed. ["Scanning for JavaFX applications" message displayed in ScenicView with endless spinner]. Any help appreciated. At ScenicView terminal logs I am getting following lines Platform running

JavaFX FXML:How to create new instances of a self made fxml to VBox

◇◆丶佛笑我妖孽 提交于 2021-01-29 06:17:04
问题 I created a card like pane so that I can add data to it and create a page with many cards according to data (much like a card layout in mobile applications) however, I don't know how to add new instances of this to VBox. I tired with and without a loop and still didn't work. It Keeps Giving the Following Error: javafx.fxml.LoadException: /C:///////bin/application/HotelReservation.fxml at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601) at javafx.fxml.FXMLLoader.loadImpl

Are default methods recognized by FXML and/or Scene Builder?

给你一囗甜甜゛ 提交于 2021-01-29 04:03:42
问题 Based on my experience the answer to the question in the Title is a resounding 'NO!!!', which I can't believe to be true ... but for my experience. I've created various property type interfaces having 3 methods, for example: getColor(), setColor(Paint c), and ObjectProperty colorProperty(). The get()/set() methods are implemented in the interface with the default modifier. This generally works fine except in cases involving Scene Builder and FXML. With Scene Builder the above property doesn't

JavaFX SceneBuilder: ClassNotFoundException when loading custom control

这一生的挚爱 提交于 2021-01-28 11:30:36
问题 I see that there are many posts about this, some slightly recent, some much older. Nonetheless, I would like to share my own experience because I am facing this issue and I cannot seem to find a solution. First of all, the context : I use Intellij IDEA Community Edition 20018.2.2 from 21st of August 2018 I use Scene Builder from GLUON, version 8.5.0 (latest as of this post) I use the JDK & JRE 64 bits version 8.181 (latest as of this post) The situation: I am writing a chat app. I have a

Set custom duration for tooltips in JAVAFX

感情迁移 提交于 2021-01-21 11:22:29
问题 I'm looking for a solution for the following problem: I've built up a javafx GUI with SceneBuilder and added tooltips to some of the labels I added. However, the tooltips automatically hide after ~5 seconds. Sometimes this is not enough for the user to read the tooltips whole content. I would like to show the tooltip as long as the cursor stays above the label and completely disable this autoHide function. I did not find a way to customize the time a popup is shown or how to disable the auto

Set custom duration for tooltips in JAVAFX

狂风中的少年 提交于 2021-01-21 11:19:16
问题 I'm looking for a solution for the following problem: I've built up a javafx GUI with SceneBuilder and added tooltips to some of the labels I added. However, the tooltips automatically hide after ~5 seconds. Sometimes this is not enough for the user to read the tooltips whole content. I would like to show the tooltip as long as the cursor stays above the label and completely disable this autoHide function. I did not find a way to customize the time a popup is shown or how to disable the auto