Questions tagged as 'javafx'

1
answer

How to get the lower Node position (x, y) in BorderPane relative to the screen?

I have a BorderPane where it defines its bottom value with an HBox: borderPane.setBottom(new HBox(children)); I'd like to know the position (x,y) mainly y of HBox in relation to the screen.     
asked by 24.11.2015 / 12:08
2
answers

ProgressBar loading according to JavaFX process time

I have a method that loads a ProgressBar , but it only starts loading at the end of the process, ie after my application finishes generating the reports it starts to fill. How do I load it according to the process time that generates th...
asked by 28.05.2015 / 13:35
1
answer

Draw Regular Polygons inscribed on a circumference with Canvas in JavaFX

If you notice correctly, this is a method that I developed to create the vertices of regular polygons inscribed on a circle of radius r @Override public float calcularRaio(float lado, int numeroLados) {// calcular raio float raio =...
asked by 15.06.2014 / 17:21
1
answer

TableView bring date, from the mysql database

I have a Table View, which receives the data from a table in my Bank, until then I was able to bring the data normally, but the date is coming different from the one registered at the bank, For example: The bank is: 2018-09-06 In my TableVi...
asked by 13.09.2018 / 20:02
3
answers

JavaFX: Location is required

This is the main code, I'm having problems with FXMLLoader, since I tried several ways and the path is never found. package com.quixada.ufc.fbd.main; import java.util.ArrayList; import com.quixada.ufc.fbd.viewFXController.OnChangeScreen; im...
asked by 10.11.2018 / 15:51
1
answer

Problem in drawing chessboard with objects

An exercise asks you to use basic objects of type Rectangle , Polygon , Elipse ... I used cycles for but only part of the board appears correct. I leave the code below: import javafx.application.*; import javafx.event...
asked by 11.12.2017 / 19:52
1
answer

Window size in Java

When I open the project in JavaFX on Windows OS, it opens correctly, but when I open the same project in the Mac Retina, it opens with another dimension, the windows are all misaligned and I have to fix it in my hand. Is there any way to fix t...
asked by 18.10.2017 / 21:22
1
answer

Modify the indexes of each item in a TreeView Java FX or override method TreeView.getSelectionModel (). select (int index)?

Greetings to all. This is my first post here. I'm developing a Java FX project that consists of a form with a TreeView whose items are obtained from an ArrayList, previously populated through a query to the database. Thistablerepresentsah...
asked by 04.04.2018 / 04:51
1
answer

Access a method that is out of thread

I have a video running in my application and a Thread running a Socket (server), all within the same class, but I need this Thread to access a method that is outside of it. To be more exact I want to run getCurrentTime () to get the current t...
asked by 16.05.2017 / 19:59
1
answer

ComboBox Content Matching

How do you make the comboBox options match numeric indexes? Example, in my database I only save numbers from 1 to 8. And in the application I show my user names, I want those names to match those numbers. I was trying to use substrings...
asked by 17.07.2017 / 13:26