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...
Zing asked 25/4, 2014 at 21:9

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?
Kado asked 9/9, 2013 at 14:23

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

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

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 ...
Blanche asked 3/9, 2013 at 9:32

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...
Heterodyne asked 20/9, 2013 at 3:55

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...
Combustion asked 12/4, 2013 at 17:19

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...
Pandiculation asked 10/12, 2013 at 23:33

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...
Testa asked 19/4, 2013 at 7:25

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...
Savior asked 1/10, 2012 at 17:48

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...
Tetrastich asked 2/10, 2016 at 19:32

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...
Alibi asked 2/12, 2015 at 6:25

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...
Intersection asked 15/3, 2016 at 11:18

3

Solved

I'm trying to flip a coloured rectangle. Is it possible to use the rotateTransition to do this? I have tried the following code: public void rotateField(){ RotateTransition rt = new RotateTrans...
Phrensy asked 10/11, 2013 at 23:26

4

Solved

How do I play an alert sound in Java FX 2? Is there a way of using the OS default notification sound?
Royall asked 17/5, 2012 at 12:58

© 2022 - 2024 — McMap. All rights reserved.