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...
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.
...
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...
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 {
...
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?
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....
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...
3
Solved
Why am I getting java.lang.IllegalStateException "Not on FX application thread" on JavaFX?
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...
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...
9
Solved
TableColumn<Event,Date> releaseTime = new TableColumn<>("Release Time");
releaseTime.setCellValueFactory(
new PropertyValueFactory<Event,Date>("releaseTime")
);
How can I ch...
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...
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...
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...
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>...
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...
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.
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...
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...
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'...
© 2022 - 2024 — McMap. All rights reserved.