yet another bug concerning slider min/max values.
JDK9 b135 + Win. 7
Please run the following test code:
import javafx.application.Application;
import javafx.scene.*;
import javafx.scene.control.Slider;
import javafx.stage.Stage;
import javafx.geometry.Insets;
public class SliderTest extends Application {
@Override
public void start(Stage stage) {
Group root = new Group();
Scene scene = new Scene(root, 200, 150);
stage.setScene(scene);
double d = 1.e6;
Slider s = new Slider(d, d + 1., 0.5);
s.setPadding(new Insets(20, 20, 20, 20));
s.setShowTickLabels(true);
s.setShowTickMarks(true);
s.setMajorTickUnit(0.5);
s.setMinorTickCount(10);
root.getChildren().add(s);
stage.show();
}
public static void main(String[] args) { launch(args); }
}
and try to run => ok. the slider looks as expected.
then please try d = 1.e20 => nok, bad appearance (no ticks, no max label). the control should be rendered correctly for all the supported border values.
JDK9 b135 + Win. 7
Please run the following test code:
import javafx.application.Application;
import javafx.scene.*;
import javafx.scene.control.Slider;
import javafx.stage.Stage;
import javafx.geometry.Insets;
public class SliderTest extends Application {
@Override
public void start(Stage stage) {
Group root = new Group();
Scene scene = new Scene(root, 200, 150);
stage.setScene(scene);
double d = 1.e6;
Slider s = new Slider(d, d + 1., 0.5);
s.setPadding(new Insets(20, 20, 20, 20));
s.setShowTickLabels(true);
s.setShowTickMarks(true);
s.setMajorTickUnit(0.5);
s.setMinorTickCount(10);
root.getChildren().add(s);
stage.show();
}
public static void main(String[] args) { launch(args); }
}
and try to run => ok. the slider looks as expected.
then please try d = 1.e20 => nok, bad appearance (no ticks, no max label). the control should be rendered correctly for all the supported border values.