javafx-2 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
6
Solved
I need a bit of advice from you developers who deal with cross-platform applications (specifically programs with a GUI).
I will be creating an application soon that needs to be cross-platform and ...
Crutcher asked 26/9, 2012 at 3:55
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...
3
Solved
How can I set row Height in JavaFX table View? I tried to increase it by using css but this didn't work:
.table-row{
line-height: 50px;
}
Is there any other way to solve this?
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(...
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!"));
...
5
Solved
8
Solved
In a UI of mine, I have a PasswordField like so (urm the one at the bottom!):
I want a user to be able to check the checkbox you see in the picture and have all "secret" password characters disp...
Jefe asked 9/6, 2013 at 20:47
6
So I have a TextArea and as the user pastes paragraphs into it, or just writes in it, I want it to expand vertically to reveal all the available text. I.e. not to use a scrollbar in the text field ...
2
Solved
I am working on a fairly large project which includes a set of custom JavaFX components. For each custom component which is meant to be reused, I have started to write a set of automated tests usin...
6
I need to display a multiline, read-only text - which control can be used for that? It should only display the text, like a Label does, however Label does not support multiline?
Thanks for any hin...
2
I am using javaFX with Scene Builder in my project and I have many pages. I want to avoid complexity, that's why I want to use Spring framework.
So please can anyone explain to me in details how t...
Savoyard asked 22/4, 2013 at 12:25
19
Solved
I am trying to get my JavaFX program to run but am having some difficulty. I keep getting an error of 'java.lang.NullPointerException: Location is required.' The fxml file is in the same package as...
6
Solved
I tested this code in order to create dialog with image.
final int xSize = 400;
final int ySize = 280;
final Color backgroundColor = Color.WHITE;
final String text = "SQL Browser";
final String ve...
4
Solved
What's the proper way of initializing the JavaFX runtime so you can unit test (with JUnit) controllers that make use of the concurrency facilities and Platform.runLater(Runnable)?
Calling Applicat...
Son asked 8/7, 2012 at 18:33
4
Solved
I'm trying to get some information about the ScrollBar components that are by standard included in a ScrollPane. Especially i'm interested in reading the height of the horizontal Scrollbar. How can...
8
Solved
I want to handle stage events (i.e. hiding) from my controller class. So all I have to do is to add a listener like this:
((Stage) myPane.getScene().getWindow()).setOn*whatIwant*(...);
But the pro...
Hydromedusa asked 6/11, 2012 at 7:18
3
Solved
I know I can set a color by using the pressed pseudo selector:
myButton:pressed{}
Problem is, im trying to do this in code by overriding the css background color from my stylesheet by doing:
my...
6
Solved
I had already asked a similar question here but it seems It wasn't clear since I had a lot of code in the project and couldn't post it here So please don't mark as duplicate.
Because of that, I t...
5
I have been trying to set the scene's width and height outside of the constructor and it's been to no avail. After looking through the Scene API I saw a method that lets you get the height and widt...
Famulus asked 9/1, 2012 at 15:33
4
Solved
I want to change the style of Node by changing its style class.
Button button = new Button();
button.getStyleClass().add("class1")
button.setOnMouseClicked(new EventHandler<MouseEvent>() {
...
Arlinearlington asked 16/7, 2013 at 12:16
2
Solved
I recently started playing around with Java FX, FXML, and scene builder, and I've been trying to add key listeners to one of the controllers for a scene. When I do this though, the key listeners do...
Micheal asked 26/9, 2014 at 13:33
6
Solved
I want to align i.e Position CENTER an OK button of a DialogPane. I have tried the below code but its not working.
Dialog dialog = new Dialog();
DialogPane dialogPane = dialog.getDialogPane();
dia...
3
Solved
4
Solved
How do I play an alert sound in Java FX 2?
Is there a way of using the OS default notification sound?
1 Next >
© 2022 - 2024 — McMap. All rights reserved.