I want to implement some kind of notification system in my application but I have trouble with the calculation of the actual position of my notification. All notifications should appear in a separate stage and each notification should be aligned among themselves and each notification is a simple VBox with two labels (title and message). I created a little standalone
Tag: javafx
Module not found: javafx.web
I wanted to create a WebView with Javafx, and I added requires javafx.web; to my module-info.jar, but IntelliJ say: “Module not found: javafx.web”. works without any problem. What can I do? Answer Have you also added a dependency to javafx-web in Maven/Gradle or added the corresponding jar file to your build?
Java bindBidirectional
I have the following problem. My task is to create a double bond between my sudoku field object and its graphical form in the GUI. So far I’ve managed to come up with something like this. The solution works, but if you enter any character other than a number, it throws a parse error. Caused by: java.text.ParseException: Unparseable number: “a”
JavaFX TableView with array of TableColumns
I got a TableView<MonthRow> where I want to display each month of the year and its relevant days. I got those three classes for presentation purposes: And then I create the table content: Having the ObservableList now for the TableView, I am kinda stuck. I want to have one TableColumn for the month and 31 TableColumns for the DayCells. However,
denoise_TVL1 Sizes of input arguments do not match
I am trying to implement total variation algorithm on a grayscale video. As far as I understand this method(denoise_TVL1) is using that algorithm. But I get “Sizes of input arguments do not match” CvException. Could you help me to understand what the problem is? I have this list as class instance: Exact output: Exception in thread “JavaFX Application Thread” CvException
How to change this JavaFX into using a ControllerFactory
I have looked into using ControllerFactory a lot, to allow this code to be instantiated from a database, and have cross-controller compatibility. But with my original setup different from others I found online, I found it extremely hard to follow along, and use what would fit into my program from theirs. Any advice on where to start? Current Controller creation
JFrame keeps application running even after closing
I have a class with only static methods and one of them opens a JOptionPane error message dialogue using a JFrame object as component. This is the class + method: The ErrorPopup method is used inside a JavaFX controller and other places, called like this: Problem is that the application’s process won’t close when I close the the program from
JavaFX how to trigger events on Geometries?
I’m writting an JavaFX application, where i use UTM32 coordinates for my geometries, i have a dynamic stroke width dependent on my zoom level. The issue is that i can’t trigger events when my stroke width is decreased at a certain factor. If you use Intellij you can start a new fx-project and copy following code to reproduce this behaviour:
Bind java.util.Stack with JavaFX (ListView or TableView)
I’m recently using JavaFX and would like to implement the Observer pattern by binding my stack update, with a ListView or TableView from JavaFX. However, I don’t know what changes to make to my ComplexNumberStack class. Answer This example adds a wrapper class around your stack implementation which provides an ObservableList that can be: Placed in a ListView AND Respond
unchecked call to setValueFactory(SpinnerValueFactory)
I’m using Java JDK 17, and I get an unchecked call warning for the following code snippet: Error unchecked call to setValueFactory(SpinnerValueFactory) Code How can I get rid of this warning. Answer Your problem is in the code you don’t provide, for these kinds of issues you should always try to provide a minimal example. I have made an assumption