i try to use the WebView in my java project, in my code is: but the this thown a exception And yes, this is not a JavaFx application. Answer You can embed JavaFX content into a Swing application using JFXPanel. Note that for this to work correctly, you have to be careful to create and access the Swing content on
Tag: javafx
compare java fx date picker date to sql date inside a query
I want to know how I can compare a mysql date to a java fx date picker date. So if I have a datepicker date in MM/DD/YYYY format and a mysql date in YYYY/MM/DD format how do I compare those two inside a query? Answer I prepared for you small appliaction how to convert Date to LocalDate and set in
tableview is empty when i add an item
I need help with an empty tableview. When I put items in an ObservableList and do setItems with this list, the tableview doesn’t show the items from the list. I have included Minimal, Complete, and Verifiable example(I think). Main class. Afegir Class. And subvencio class. Edit: @James_D : I use an instance of one of your controllers because if i
Prevent JavaFX dialog from closing
I’m currently creating a dialog using JavaFX. The Dialog it self works very well but now I’m trying to add an input validation which warns the user when he forgets to fill out a text field. And here comes my question: Is it possible to prevent the dialog from closing inside the Result Converter? Like this: I noticed that the
JavaFX Get ComboBox from ChoiceDialog
I have a javafx.scene.control.ChoiceDialog object in my JavaFX project. When the dialog opens, I want to set the focus to the underlying ComboBox. However, I can’t figure out how to get the underlying ComboBox control. With a TextInputDialog, there is a method called getEditor(). Is there any way (other than reflectively accessing the private comboBox member) to get the underlying
JavaFX’s Spinner raises NullPointerException on empty text input
I have an issue where an editable JavaFX 8 Spinner causes an uncaught NullPointerException if one clears the editor text and commits and then clicks either the increment or decrement button. This is j8u60 j8u77. With some luck the increment/decrement button will get stuck in depressed state and the NPE’s keep flowing locking up the application. The following code reproduces
Exception in Application start method java.lang.reflect.InvocationTargetException
I am just starting out with JavaFX, and I am trying to build a simple application with a label, text field and button which, when clicked, sets the label’s value to that of the text field’s. Everything was going well until I connected the controller to the Main file. Here’s my code: Main.java MainWindowView.fxml MainWindowController.java I have tried multiple answers
Calling a method through from another controller JavaFx
RootLayoutControl.java MainApp.java ImageViewController.java Creating an image gallery, where if I call the method, handleOpen() in RootLayoutController It’ll call method, createImageView() in ImageViewController To pass the variable file to it, any suggestions on how do I do it? Answer First, the createImageView() method needs to be public. In RootLayoutController you need to create a method to get the instance of ImageViewController
Translucent blurred background in JavaFx
I want blurred translucent background effect in my JavaFx app like in the following image. But I cannot find any satisfactory answer anywhere. This answer provides some workaround, it takes screenshot of background and sets it as background image. But the problem is, if background changes, it remain as it is.. (see screenshot) So, I have two questions If it
Edit the cell value at a dynamic TableView?
Is it possible to edit a cell value in a dynamic TableView (dynamic rows and dynamic columns)? All I found on the internet was some editable TextFields over the cells. However, I want to edit the value in the table and then update my List with the new data. I’m using IntelliJ IDEA 13.1.4 , JavaFX Scene Builder 2.0 and