javafx Questions

3

What's the best way to keep the value of a javafx Property within specific bounds? (Or - is this bad practice, existing any reason to never filter values wrapped by javafx properties?) Example1: ...
Azine asked 11/7, 2013 at 10:19

3

I want to run a HelloWorld JavaFX 11 application using Maven from IntelliJ IDEA using a run/debug configuration to be able to debug the application. I've created a Maven project in IntelliJ IDEA w...
Unstop asked 9/10, 2018 at 15:46

3

Solved

I'm trying to run my main JavaFX app: @Override public void start(Stage primaryStage) throws Exception { try { FXMLLoader loader = new FXMLLoader(); loader.setLocation(getClass().getResource(&qu...
Soulsearching asked 1/5, 2017 at 15:40

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

3

I want to set alert dialog position at right bottom corner after it is shown. Here is the code: package alert; import javafx.application.Application; import javafx.geometry.Rectangle2D; import j...
Abirritate asked 20/11, 2017 at 7:59

5

Solved

Imagine having an enum defining mouse-modes: public enum MouseMode { SELECTION, EDITING, DELETING } And imagine having a toggle-group made of 3 buttons: ToggleButton selection = new ToggleButt...
Zing asked 25/4, 2014 at 21:9

3

Solved

I've followed a tutorial precisely and I can't seem to get it to work. The tutorial is under JavaFX and Intellij Non-modular from IDE sections: https://openjfx.io/openjfx-docs/#install-java Here i...
Dispermous asked 22/11, 2018 at 16:49

13

I wanted to know how should I set icons on javaFX stage. I have found this method, but it did not work properly. stage.getIcons().add(new Image(iconImagePath)); stage is an instance of javafx.s...
Tiaratibbetts asked 20/11, 2013 at 11:25

3

Solved

I recreated the issue in a minimal form: MAIN: public class ImageIOMain extends Application { @Override public void start(Stage stage) throws Exception{ Scene scene = new Scene(new StackPane(...
Amazon asked 27/8, 2019 at 10:47

3

Solved

Here, I want to create a custom dialog that works like Alert, with a beautiful UI; "showDialog.fxml" is a DialogPane. I tried JFXDialog but it is not waiting and it is not giving me the u...
Schlenger asked 23/11, 2020 at 7:57

3

Solved

I'm trying to play a video from youtube using javaFX. Here is my code public class Main extends Application { public static void main(String[] args) { launch(args); } @Override public void star...
Rafaelof asked 12/9, 2013 at 7:27

5

Solved

always when i try to get the width of an Array in Java it just returns 0 and i dont know why. Can somebody explain to me how it is done right? Label label = new Label(); label.setFont(Font.font(...
Revolting asked 12/1, 2014 at 11:22

2

Solved

I have a TextField for which I want a Tooltip to be shown under some circumstances. After performing checks I run the followig code: textFieldUsername.setTooltip(new Tooltip("Enter username!")); ...
Unlikely asked 24/10, 2012 at 12:36

6

Can anyone please tell me where I can find the path to the correct files for Scene Builder on Ubuntu to get it linked in my preferences with Eclipse IDE.
Fronia asked 20/12, 2015 at 20:7

3

Solved

I'm a beginner of JavaFX. Is there anyway to change the color of title bar. I just want to make the application all black. I have searched the JavaFX API, but I can't find any method to make it. ...
Cupellation asked 3/3, 2017 at 16:21

3

Solved

I would need some advice on how to troubleshoot this issue I'm having with my project, so there's not going to be a minimal reproducible code example, as it's not about the code itself. Maven and J...
Infancy asked 28/5 at 8:20

4

I want to add keyboard shortcut key in javafx. i have scene and want to implement the keyboard shortcut my code is as follows getApplication().getScene().setOnKeyPressed(new EventHandler<KeyE...
Quiz asked 20/8, 2014 at 6:5

4

Solved

I have been trying to use this example to learn about zooming and scaling. It does a great job of demonstrating scaling. I've been trying to figure out how to change it so that rather than simply...
Aretino asked 8/4, 2015 at 4:48

3

I am trying to package the default HelloApplication (full app) that intellij community edition creates for a javafx application. The HelloApplication does not contain much dependencies besides Java...
Bogeyman asked 27/5 at 17:55

4

I use eclipse and when I run my program it says this "libprism_sw.dylib” cannot be opened because the developer cannot be verified. and “libprism_es2.dylib” cannot be opened because the develo...
Passade asked 31/3, 2021 at 15:47

3

Solved

How would I go about getting a list of all the file extensions supported by FFmpeg for use in an ExtensionFilter used by FileChooser in JavaFX? I am familiar with the "-codecs" and "-formats" opti...
Archery asked 27/4, 2018 at 19:38

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 attempting to display an image file as soon as it is selected from a file chooser. The file chooser is restricted to .png and .jpg files with the selected files being stored in a variable of t...
Bypath asked 19/10, 2016 at 0:26

3

I have to visualize lot of data (real-time) and I am using JavaFX 2.2. So I have decided to "pre-visualize" data before they are inserted into GUI thread. In my opinion the fastest way to do it (w...
Garrek asked 1/9, 2012 at 16:33

1

Solved

I am trying to set a custom caret in my TextField. I want the caret to always be visible even when focus is on another JavaFX node. If possible I also want to make the caret "Bold" and se...
Boger asked 8/5 at 20:16

© 2022 - 2024 — McMap. All rights reserved.