Questions tagged as 'javafx'

1
answer

How to modify phone field?

I have a stylized component with phone formatting, as follows    (XX) XXXXX-XXXX I would like to know how I can remove the part of DD → (XX) , so that the field looks like this: XXXXX-XXXX I tried to modify the cases, but not very sur...
asked by 01.09.2017 / 13:50
0
answers

Problem with JavaFx

I'm having trouble when I add a JFX button that is present in the Jfoenix library. When opening my FXML document, it directs right to the SceneBuilder, and within it, to use all the items contained in the Jfoenix library. But when I run my pr...
asked by 19.10.2017 / 15:38
0
answers

JavaFx WebEngine get content from an Iframe

I can not tell when an Iframe changes I use listener to always know that the page is loaded in WebEngine, however this listener can not know when the Iframe is changed / loaded. Is there any way to detect differences / change...
asked by 22.02.2018 / 13:05
1
answer

Coding the closing of an application

Hello, good afternoon everyone! I have a problem with the company software. I created a serverSocket when starting the application, and with this I can control so that only one application opens on the same machine. However, when I close the...
asked by 05.04.2017 / 20:50
0
answers

Which ideal start, Swing or JavaFX? [closed]

I'm starting now little with the graphical part using Java ... Reading some articles on the internet, I saw that Swing is old and has an older graphic and everything. But JavaFX is more beautiful, than to work with CSS3, pra for beautiful eff...
asked by 16.01.2017 / 02:02
1
answer

Check if a field is with bindBidirectional (JavaFX)

Good morning !! I would like to know how I check if a field is binding (javaFX) I have the following field: txt2.textProperty().bindBidirectional(txt1.textProperty()); Has a button to enable or disable bindBidirectional, depending on the cu...
asked by 16.05.2016 / 14:31
2
answers

Implementing Paint in JavaFX

I'm trying to implement a Paint-like application with JavaFX. I can draw a line from one point to another, but it only appears after I release the button at the end point. When I try to implement MouseEvent._MOUSE_DRAGGED, several lines are d...
asked by 03.08.2018 / 23:36
1
answer

Navigation between JavaFX screens

What is the best way to navigate from one screen to another using JavaFx. The way I'm doing every time the first screen calls the second screen the second screen opens with the size of the first one. This is how I call the second screen: Pa...
asked by 28.05.2015 / 21:05
1
answer

How to increase the number of decimals after the comma?

How can I make the field display 0.0000 for example? By default it only directs 2 homes, I am not able to increase. Example: import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.scene.control.*;...
asked by 05.07.2017 / 14:40
2
answers

Function only returns zero

Good afternoon !! I would like your help in the following question: I have the following function that returns me as result 0 only: public double calorEspecifico(){ double cp; cp = (fruto.getCp1() + fruto.getCp2(...
asked by 23.06.2015 / 19:05