fxml Questions

1

Solved

Hey all I am needing a hand with the following: I am trying to add the "On Action" to my custom control I create in Scene Builder 2.0. I will have a couple of these in my scene so I am w...
Gawk asked 11/8 at 23:57

5

Solved

I got a problem that I absolutely can't solve on my own because I have just started using JAVA FX. I get a nasty javafx.fxml.LoadException: , but I have done exactly like a guide, but I cant get m...
Mutism asked 7/4, 2014 at 14:10

3

I have a TextField and a Label with mnemonicParsing true. I want to set the labelFor property of the label with the id of the TextField. How do I do that in FXML? <GridPane hgap="5.0" snapToPi...
Labuan asked 16/8, 2017 at 8:47

4

Solved

I am trying to build a Next/Previous windows using TabPane. I decided to use TabPane as it is easy to use and design in SceneBuilder. At the start fo the app, I used this to hide the TabBar for now...
Febrific asked 31/10, 2015 at 23:4

2

Solved

I'm looking a way to draw shapes in a Region (JavaFX8) I've seen some examples that set the region style like this: -fx-shape : "M 3.0313 0 L 0 74 L 7.9688 74 L 4.9375 0 L 3.0313 0 Z"; Can anyo...
Uticas asked 9/6, 2014 at 16:41

9

I have recently started noticing the following warning when starting my JavaFX application: WARNING: Loading FXML document with JavaFX API of version 8.0.65 by JavaFX runtime of version 8.0.60 ...
Kwei asked 4/2, 2016 at 19:41

4

Solved

I made a structure to of Controllers and Views (fxml) to separate my code as much as I could, and I'm wondering how to communicate between 2 controllers. I mean, a controller have to call some func...
Treasonable asked 4/3, 2014 at 17:14

7

Solved

When Im trying create a new FXML File in Eclipse (File -> New -> Other -> JavaFX - new FXML Document -> Next) nothing happens. It doesnt create a File. Same Problem when I try to create...
Combustible asked 11/12, 2022 at 5:23

1

Solved

I have created simple maven project for two numbers to sum. public class AddNum { public int getTwoNumbers(int x, int y) { int addnum = x + y; return addnum; } } After that I used mvn clean in...
Lauder asked 16/5, 2023 at 6:55

4

Pls i want to know how to change the selectionmodel of javafxml combobox so that it can allow multiple seletion. Any contribution will be appreciated thanks.
Kaolin asked 3/10, 2014 at 20:45

2

Solved

I have the main application class that does the following just fine: @Override public void start(Stage primaryStage) { try { FXMLLoader loader = new FXMLLoader(getClass().getResource( "Record...
Projectile asked 4/5, 2014 at 20:21

3

Solved

I just installed Scene Builder and my editor looks like this. Can't read anything. I assume somehow I am missing the font the editor tries to use?
Durbin asked 4/12, 2020 at 20:41

6

Solved

Is there any way to see the applied CSS-Rules for JavaFX-Elements? Or there is a published reference with the default CSS-Rules available? I would like, for example , to know the color of Toolbar'...
Yasminyasmine asked 12/8, 2012 at 14:18

1

In short, I have a ScrollPane with a TextFlow that contains hyperlinks (maven repository). When I click on a hyperlink, I want to see the a-tags that the link contains on the same ScrollPane in the...
Twosome asked 28/7, 2022 at 7:47

3

Solved

I have a dialog window that is invoked by the following code (DialogController is a helper class for using modal dialog windows; it mainly bundles together a controller reference with its window): ...
Forrest asked 12/5, 2013 at 4:46

8

Solved

I have looked on many pages to try and find out how to switch scenes but I have been unsuccessful. I have a calculator and my goal is to select a menu option to change Calculators(ie: basic and sc...
Coolidge asked 13/5, 2016 at 3:40

2

I would like to embed an encoded image into an FXML (i need this in that I'm coding a converter between svg and fxml). I tried with this: <AnchorPane id="AnchorPane" maxHeight="-Infinity" maxW...
Kindrakindred asked 18/7, 2012 at 8:41

2

I've been searching for a while and I haven't been able to get what I wanted to do. I've been using the javafx framework to switch fxml in javafx in this thread 'Loading new fxml in the same scene'...
Hyde asked 16/11, 2017 at 10:24

9

Solved

I have 2 fxml files: Layout (header, menubars and content) Anchorpane (it's supposed to be placed inside the content from the other fxml file) I would like to know how can I load the second fi...
Catlike asked 4/9, 2013 at 16:39

3

Solved

I am building a JavaFX application using the JavaFX Scene Builder. The interface was created in the Scene Builder and a FXML file (main.fxml) was created. To use the interface in my application I ...
Interne asked 6/12, 2012 at 23:3

15

I'm using IntelliJ IDEA 13.1.5, I used to work with Eclipse. I'm working on JavaFX application, I try to load FXML file within my MainApp class using getClass().getResource(). I read the documentat...
Coldshoulder asked 12/10, 2014 at 17:38

3

Solved

Here's how my scene builder looks like: and here's the GUI: The standalone scene builder: I just run the following source code from Java SDK demos: package sample; import javafx.application.App...
Burnoose asked 22/3, 2021 at 13:36

9

Solved

I need to close the current fxml window by code in the controller I know stage.close() or stage.hide() do this in fx how to implement this in fxml? I tried private void on_btnClose_clicked(Ac...
Bicapsular asked 26/11, 2012 at 14:36

4

Solved

I have some classical Button in JavaFX with a box containing some text. I need buttons without that box, just the text, and when I hover the button or click on the button with mouse, it shall chan...
Sachet asked 12/4, 2016 at 7:18

5

Solved

I have my JavaFX 2.0 application, where i need to make some action, after user clicked an item in ListView element. To construct user GUI i'm using FXML, in which i have something like this: <...
Caliber asked 15/3, 2012 at 15:0

© 2022 - 2024 — McMap. All rights reserved.