-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
8u102
-
x86_64
-
linux_ubuntu
FULL PRODUCT VERSION :
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.9.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
XUbuntu 14.04.2 LTS
EXTRA RELEVANT SYSTEM CONFIGURATION :
Java JRE 8u102
A DESCRIPTION OF THE PROBLEM :
After showing a file chooser, the stage is no longer resizeable, even if setResizable(true) is set after showing and returning the filechooser. This was also present in previous versions.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile attached source code and run.
Confirm stage is resizable
Click Make Bug
Close file chooser window
Stage is no longer resizable
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Before the button "Make Bug" is clicked, the window can be resized by the user. After "Make Bug" has been clicked and the file chooser window closed, the main stage should still be resizable.
ACTUAL -
Before the button "Make Bug" is clicked, the window can be resized by the user. After "Make Bug" has been clicked and the file chooser window closed, the main stage is no longer resizable.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package bugexample;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.Pane;
import javafx.stage.FileChooser;
import javafx.stage.Stage;
public class BugExample extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
Button button = new Button("Make bug");
FileChooser chooser = new FileChooser();
button.setOnMouseClicked(e->chooser.showOpenDialog(primaryStage));
Pane root = new Pane();
root.getChildren().add(button);
Scene scene = new Scene(root);
primaryStage.setScene(scene);
primaryStage.show();
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
No workaround found yet
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.9.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
XUbuntu 14.04.2 LTS
EXTRA RELEVANT SYSTEM CONFIGURATION :
Java JRE 8u102
A DESCRIPTION OF THE PROBLEM :
After showing a file chooser, the stage is no longer resizeable, even if setResizable(true) is set after showing and returning the filechooser. This was also present in previous versions.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile attached source code and run.
Confirm stage is resizable
Click Make Bug
Close file chooser window
Stage is no longer resizable
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Before the button "Make Bug" is clicked, the window can be resized by the user. After "Make Bug" has been clicked and the file chooser window closed, the main stage should still be resizable.
ACTUAL -
Before the button "Make Bug" is clicked, the window can be resized by the user. After "Make Bug" has been clicked and the file chooser window closed, the main stage is no longer resizable.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package bugexample;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.Pane;
import javafx.stage.FileChooser;
import javafx.stage.Stage;
public class BugExample extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
Button button = new Button("Make bug");
FileChooser chooser = new FileChooser();
button.setOnMouseClicked(e->chooser.showOpenDialog(primaryStage));
Pane root = new Pane();
root.getChildren().add(button);
Scene scene = new Scene(root);
primaryStage.setScene(scene);
primaryStage.show();
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
No workaround found yet
- duplicates
-
JDK-8140491 [Linux] JavaFX window stops being resizable after a dialog is shown
-
- Open
-