javafx-2 Questions

7

Solved

I have a JavaFX 2 table that is displaying contact details for people, lets imagine there are three columns: first name, last name and email address. When my application starts it populates the tab...
Textual asked 14/4, 2012 at 10:20

8

Solved

I need to insert a number field into my UI. So I need to check the key events on a text field in order to check whether the input character is a number. I created a class by extending TextField. If...
Sera asked 5/12, 2011 at 5:31

13

Solved

Presently I'm working with JavaFX. Whenever I hover over a method of JavaFX its gives me the following error: 'Note: This element neither has attached source nor attached Javadoc and hence no Jav...
Haema asked 26/3, 2012 at 10:25

3

Solved

I had a Java Desktop Application in which graphical user interface had designed in swing. After we came to know that JavaFX replacing Swing We have replaced graphical user interface with JavaFX. ...
Butene asked 12/3, 2013 at 13:37

3

Solved

I am building a JavaFX application and I am wondering if there is a recommendation (best practice) on how to load new Scene in current Stage as fast as possible. Currently what I am doing is (more...
Conative asked 11/3, 2014 at 14:4

6

Solved

How do I get an image in an ImageView to automatically resize such that it always fits the parent node? Here is a small code example: @Override public void start(Stage stage) throws Exception { ...
Imago asked 27/9, 2012 at 21:30

3

I have a TextArea() and would like to hide the vertical/horizontal scroll bars. I see that the control seems to have a built in scroll-pane that shows as needed. TextArea numberPane = new TextAre...
Eisen asked 8/1, 2013 at 0:56

3

Solved

Java Swing has GridLayout, which allows you to specify a size for an array of widgets such as 3X4. The widgets then fill the panel they occupy. How do you get a similar effect in JavaFX?
Kurdish asked 11/2, 2016 at 16:24

6

Solved

I have managed to load a child fxml(sub UI) under a parent fxml (mainMenu UI). I have created an AnchorPane with id "mainContent". This pane is bound to 4 sides and changes in accords to the stage....
Bullnose asked 8/3, 2014 at 15:8

6

Solved

I need a workflow like below: // load xyz.com in the browser window // the browser is live, meaning users can interact with it browser.load("http://www.google.com"); // return the HTML of the ini...
Hyperdulia asked 18/11, 2013 at 15:31

3

Solved

I have an application that has a TableView that has an attached listener so it refreshes as soon as it detects a change, but the thing is that I´m getting java.lang.IllegalStateException: Not on FX...
Upperclassman asked 25/7, 2013 at 6:1

3

Solved

What is the best way to get the absolute position of a node in JavaFX? Imagine we have a node in a Pane (Hbox, Stackpane, or any other pane) and that may have a parent itself. I want to get the a...
Curable asked 30/6, 2015 at 21:18

9

Solved

TableColumn<Event,Date> releaseTime = new TableColumn<>("Release Time"); releaseTime.setCellValueFactory( new PropertyValueFactory<Event,Date>("releaseTime") ); How can I ch...
Socinus asked 10/7, 2012 at 11:27

5

Solved

And related to that, is there a way to force Java FX to use hardware acceleration and bomb if it is unable to?
Woodall asked 28/1, 2013 at 16:18

4

Solved

I have one fxml file controlled by one controller. I want to separate the controller into multiple parts as if placed in one controller makes a long code. Unfortunately, fx:controller can only be p...
Disservice asked 2/6, 2013 at 4:38

3

Solved

I have this undecorated window: public static void initStartPage(final Stage primaryStage) { final Stage startPage = new Stage(); startPage.initStyle(StageStyle.UNDECORATED); //startPage.initO...
Arethaarethusa asked 11/8, 2013 at 16:9

4

Solved

I want to draw image on canvas rotated. with drawImage(image, 0, 0) I can draw image but how can I rotate that image for example 45 degrees and draw it, then draw another image with -50 degrees rot...
Uni asked 15/8, 2013 at 19:39

2

Solved

I've got a MenuBar that is setup as follows in FXML: <MenuBar VBox.vgrow="NEVER"> <menus> <Menu mnemonicParsing="true" text="_File"> <items>...
Figured asked 20/2, 2014 at 15:55

2

Solved

I'm using the JavaFX SceneBuilder, but I'll paste the FXML below since it's short. I have a very simple window with a split pane inside an anchor pane. Here is the FXML: <?xml version="1.0" enc...
Canalize asked 31/5, 2013 at 11:34

4

Solved

I can't seem to find any material on the subject. To give a more concrete example, let's say I want to create a simple component that combines a checkbox and a label. Then, populate a ListView with...
Allomorphism asked 8/12, 2011 at 17:8

10

How do I create and show common dialogs (Error, Warning, Confirmation) in JavaFX 2.0? I can't find any "standard" classes like Dialog, DialogBox, Message or something.
Painful asked 29/11, 2011 at 11:28

4

Solved

I initialized a GridPane through SceneBuilder and inside the controller I want to conditionally add a row to the GridPane. I do not want to store an int for how many rows I initialized, I want to b...
Occupational asked 24/12, 2013 at 20:19

5

I'm trying to make a simple game (it is a school work) in JavaFX and I am trying to clear the panel with the board, and then just repaint it. I have tried a lot of methods, and this one is the only...
Laquitalar asked 21/6, 2012 at 22:32

7

I'm having some problem regarding the default background and border of the ScrollPane. Using this style made the problem clearer to see. setStyle("-fx-background-color:blue; -fx-border-color:crims...
Archivist asked 9/7, 2013 at 4:49

9

Solved

I am working on a JavaFX 2.2 project and I have a problem using the TextField control. I want to limit the number of characters that a user will be able to enter into each TextField. However I can'...
Executory asked 1/3, 2013 at 14:23

© 2022 - 2024 — McMap. All rights reserved.