Questions tagged as 'javafx'

1
answer

Add event (action) when changing tab

I have a TabPane in my project that contains 3 different tabs, I would like to know how to add an event when changing "tab" in JavaFX. For example, by clicking the "address" tab, create an event for me to add functionality to this tab. Per...
asked by 14.07.2015 / 20:05
1
answer

How to get selected item from a ComboBox in javaFx

How can I get the selected item from a ComboBox? I saw some ways to do but I could not implement, that is, I did not understand how it works. I can set the items in the comboBox as follows: ObservableList<String> options...
asked by 18.06.2015 / 13:48
1
answer

Display an alert when 5 minutes are missing for the event

I'm developing a Java calendar, where I have the date and time saved in the database. However, what would be the best way to display an alert 5 minutes before the event? Do I have to run the query method all the time until the hours hit? Or is t...
asked by 16.07.2015 / 15:59
1
answer

ComboBox values do not appear for selection

I would like help from you in the following question !! I have a combobox and I want to populate it with integers. It turns out that when I run the program nothing appears for me to select! ... Here is the code: ObservableList<Integer>...
asked by 29.05.2015 / 19:22
1
answer

How to return a boolean on the button

I have a button and I want it to be clicked when I return true to if of another class, but I did not find any method how I do it. Button b = new Button(); Another class: public static ObservableList getObs(ObservableL...
asked by 09.05.2015 / 19:58
1
answer

ProgressBar using JavaFX

I have a method that reads multiple files and generates a report for each file read. How do I get the time for each service and show on ProgressBar ? Do I have to use Thread or Task ? I tried to do this: public void pega...
asked by 27.05.2015 / 15:39
0
answers

Problem with paths in JAVA

I'm on a project and I encounter the following problem. A part of the code has the following: Path caminho2 = Paths.get("C:\Users\Evandro\Documents\Java\Player beta 0.9\src\Capas\Gifs".replace("\", "/")); List<Path> listaCap...
asked by 01.11.2018 / 02:20
0
answers

Table CheckBox in JavaFx selects alone when I move on the scroll bar

Hello! I'm learning javafx and I have a table with a checkbox column, when the application starts it list right in the rows of the table. The problem is that when I select the first two for example it selects others alone, and as I go down the s...
asked by 15.10.2018 / 22:35
0
answers

Error Calling Java Fx Screens in Spring

I'm developing a Spring + Java Fx application, when calling the code from the main class screen, it works normally, but if I call another screen, it does not write the information in the model and gives null pointer exception, how I managed the...
asked by 08.10.2018 / 22:53
1
answer

How do I automatically perform an action at the end of a video?

Follow the video code package video; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.StackPane; import javafx.scene.media.Media; import javafx.scene.media.MediaPlayer; import javafx.scene.media.Me...
asked by 18.11.2018 / 23:40