Relative Content

Tag Archive for javafx

JavaFX Event Handling If Statement

I am designing a timer application. Right now, I would like the user to enter the number of minutes to set the timer. Here is my code so far:

The input method candidate box is incorrectly positioned

When I use the Microsoft input method to type Chinese, the candidate box appears at the cursor position. However, when I use the Sogou input method, the candidate box appears at the bottom or the top-left corner. Is there any solution for this issue?

JavaFX Field Validation

I have an “added” button which must add elements to my database, so if the fields concerned are empty it must display an alert saying that the fields are empty, but it shows me an error at the console level.

Node.snapshot() doesn’t see changes in node in JavaFX

I want to create tab preview in tooltip. For this I need to capture tab content before tooltip will be shown to user. For this I use Node.snapshot() method. The problem is that it doesn’t see changes in content, for example, in ProgressBar. I tried to use applyCss() and layout() methods to redraw the node, but it didn’t help. This is my code:

JavaFX gui broken text

I am trying to display a GUI using JavaFX
but any text in the gui is broken and buggy except the headers

JavaFX login de connexion : problème de connexion avec la base de donnée

J’essaie de faire un login de connexion avec Java Fx et Scène Builder sur Eclipse.
L’interface, la classe connexion à la base de données, le contrôleur, le fichier FXML, la classe Main dans la quel j’ai crée ma scène et crée mes liens vers les fichiers FXML et CSS, tout ces processus ont été mis en place avec succès et sa n’as afficher aucune erreur au niveau de la console.
Mais dès que je remplie mes champs de connexion et que je clique sur le bouton se connecté, rien ne se passe, sa m’affiche au nivaux du titre de ma fenêtre « (ne répond pas) » en affichant rien au niveau de la console et donc je suis obligé de fermer la fenêtre. Je ne sais pas quel est le problème et si quelqu’un pourrait m’aider sa me fera vraiment plaisir.