Questions tagged as 'javafx'

1
answer

Wait for a method to run out so that it can be re-run again [closed]

I'm developing a data synchronizer, basically the synchronizer will every 5 seconds check if there is data to be synchronized. However, my question is how do I do when the synchronization is happening, it does not start a new synchronization,...
asked by 14.08.2017 / 14:02
1
answer

How to tell if the cursor is over a given component in javaFX

I have a component in javaFX and would like to know if the cursor is positioned on it. Is there a function for this? I tried to create a boolean that stores this using the setOnMouseEntered and setOnMouseExited events, ho...
asked by 15.09.2017 / 20:37
2
answers

JavaFX how to close an internal AnchorPane

Hello everyone, my question is I have an AnchorPane child that is added inside the AnchorPane parent in my AnchorPane child. I have a button called CloseAnchorPane my problem. How do I close the AnchorPane child without closing the parent Anch...
asked by 22.08.2017 / 17:46
2
answers

How to save a file in JavaFX or Java?

Code I tried to do but it does not work: JavaFX FXML Application: salvar.setOnAction((ActionEvent e) -> { Stage window = (Stage) cont.getScene().getWindow(); try { String corpo = cont.getText(); FileWriter gravarF...
asked by 30.06.2017 / 22:10
1
answer

How to update a Label automatically every minute?

I'm trying to make an app that checks the price of a product every minute. In my test code it looks like this: package sample; import javafx.stage.Stage; import java.awt.*; import java.util.Timer; import java.util.TimerTask; import stati...
asked by 22.06.2017 / 20:22
2
answers

Colored Text CSS javaFX

I have a Button and I'm using javaFX, which I need: button text is written Search, I need 'B' to be in red and 'uscar' in default color, I've tried everything and I'm not getting do this.     
asked by 03.02.2017 / 21:27
2
answers

How to implement the close button event on a screen?

When I create a screen in the Scene Builder in JavaFX, three buttons in the upper corner of the screen are as default: minimize , maximize , and close . My question How can I manipulate and implement the click event of the close (X)...
asked by 22.06.2016 / 19:39
1
answer

Custom Underline javaFX

You can leave text (or any text node) with custom underline. Like microsoft word when there is a word with an error. Using CSS     
asked by 08.02.2016 / 01:39
1
answer

List in TextField or an editable Combobox when the user types - JavaFX

Someone more experienced, could you tell me if JavaFX has some way to make a list as you go typing in the textfield. Example: When you are going to enter your facebook email, and you type the first letter and your email appears below, exactly th...
asked by 22.10.2015 / 20:16
1
answer

Help with Task - JavaFX

Good afternoon, I would like your help with ProgressBar and Task in javaFX. I have a progressBar that has its value changed. I have the following code: Task task = new Task<Integer>() { @Override protected Integer call...
asked by 22.06.2015 / 21:27