Questions tagged as 'javafx'

2
answers

Method to change CSS subclass (color of the item text in the choicebox)

I have a choice-box. In my choice-box there is a list of colors to be selected by the user through the interface. Every time the user selects a color, the background of that same choice-box is the same color that the user selected. By default, t...
asked by 15.10.2017 / 01:18
1
answer

How to enter a value in the prompt box?

I need to access a webpage through the WebView component. 1- I can load the page. 2- I can intercept the button event. I can not insert / inject var name = prompt("Introduza o numero:"); Note: The page is only available...
asked by 07.11.2017 / 16:07
1
answer

How to put Month and Year only in DataPicker (JavaFX)

By default (by javaFX scene bilder) comes the datepicker month, day, and year. I would like to know how to take the day, and leave only month and year. If you have it, thanks!     
asked by 09.05.2016 / 02:56
1
answer

How to use external CSS in a JavaFX application?

I'm doing an application with JavaFX and would like to put CSS in an external file, for example, the file would be located in the "C: \ app \ css" directory. Is it possible to recognize the external file?     
asked by 11.04.2016 / 21:46
1
answer

JavaFx Image Click event

I have an implementation being developed in JavaFx only I came across some situation that seem to be simple, when designating an Event the image on your OnMouseClicked from my FXML I get the following error: java.lang.IllegalArgumentException:...
asked by 17.10.2014 / 12:15
1
answer

Open new window from button

I want to create a new window when the user clicks on a certain button, while this new window is open, the main window can not be used. How can I do this in JAVAFX? I thought about doing the following sequence of commands in the button's OnAc...
asked by 19.09.2017 / 15:14
1
answer

How to insert link in MenuBar?

I have a window in a MenuBar with some Menu's (like File, View, Community and etc) and would like to add a last element to MenuBar , which when clicked would open a window on a specific site . The problem is that, from what I saw...
asked by 19.07.2017 / 03:31
1
answer

Pass variable between windows javaFX

I am passing a variable from window "A" to window "B". So far so good. The problem starts when in window "B" I try to access the variable when the window starts. Past value does not exist. Ex. My code. Window "A" FXMLLoader loader = new FXM...
asked by 08.02.2017 / 17:38
1
answer

Which scene builder container can I use to make my desktop application responsive?

I'm starting to study JavaFX and I'm having a question.    Which scene builder container can I use to make my desktop application   be responsive? The only container that came close to what I wanted was the BorderPane, however, it is rest...
asked by 20.08.2016 / 21:05
1
answer

Format TextArea JavaFX

I'm creating a kind of notepad, and I'm trying to find some way, so that the user can format their letter, size, color, etc. in a JavaFX TextArea. Would anyone know if JavaFX has a specific library for this? so I can insert above the TextArea a...
asked by 13.11.2015 / 19:45