Questions tagged as 'javafx'

1
answer

How do I add a pane inside another pane through code like javafx?

I already know how to do this when it comes to AnchorPane , it's something like this: AnchorPane ap = new AnchoPane(); Label lbl = new Label("Qualquer"); ap.getChildren().add(lbl); But when it comes to a Pane normal, I can only...
asked by 15.11.2017 / 19:11
1
answer

Passing values from a class when generating a pdf in JavaFX

Good afternoon, I created a PDF.java, which has the function of generating a pdf, and in another file (FormularioHoteleriosController.java) by clicking on a particular button, I instantiate the PDF.java file in order to generate and open pdf , h...
asked by 02.11.2017 / 13:47
0
answers

How to invoke an event handling?

The idea is simple: I have an object of type Node and would like to invoke the handling of the KeyEvent event. The treatment is not me that I create, so I see no alternative but to make the invocation. I tried using the fireEvent ()...
asked by 07.10.2017 / 07:00
0
answers

How to change the default size of an icon?

Is there any way to change the default size of an icon in a javaFX application? I have an image that I want to use as an application icon, but it gets too small in the upper left corner of the window as well as in the Tasks bar.     
asked by 31.08.2017 / 14:23
1
answer

JavaFX MDI window: how to make a AnchorPane responsive to AnchorPane Pai

I want to know how do I make my internal AnchorPane responsive example: I have a main screen and on this main screen has a configuration button. When I click this button, it opens another AnchorPane inside the main AnchorPane. The problem is...
asked by 15.08.2017 / 18:15
1
answer

Transform curl http: // IP: PORT / sendLocalEvent? eventName = _evento in Javafx

I would like to make an app in javafx, when pressing a button it sends a command of type: curl http://IP:PORTA/sendLocalEvent?eventName=_evento to a server on the same network to start the _evento event. Would it be using httpUrlConnec...
asked by 22.07.2017 / 21:02
1
answer

FieldSet in JavaFX

Good morning guys, can anyone tell me how to implement FieldSet in JavaFX. There is no such object in the Scene Builder.     
asked by 22.06.2017 / 14:29
1
answer

String Handling - javaFX Application

I'm having a problem reading a file and need to remove the accents from the string, but the function is not working in my JavaFX application. Function: public static String remove(String str) { return Normalizer.normalize(str, Normalize...
asked by 09.06.2017 / 19:33
1
answer

reflect.InvocationTargetException

Hello, I'm trying to make an application that runs a song infinitely, but when the user clicks a button the music stops, this is my code public void tocar() { relogio = new Timeline(new KeyFrame(Duration.ZERO, e -> { clip.play();...
asked by 24.06.2017 / 18:21
1
answer

Java - Change XML and then read

I have an application that writes in an XML and one that reads, the two work fine separately, but the problem is that when I write in XML, the other application continues reading without updating the data, as if the file had not been updated (bu...
asked by 22.05.2017 / 07:50