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
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...
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...
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...
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
...
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...
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...
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.
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...
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'...
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...
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'...
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...
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...
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:
<...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.