Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8130378

Scaling of JavaFX ComboBox popup menus

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_45"
      Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
      Java HotSpot(TM) Client VM (build 25.45-b02, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      The methods setScaleX() & setScaleY() do not change the scaling of the combobox popup menu.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Scale a JavaFX ComboBox with the methods setScaleX() or setScaleY()

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      comboBox popup menu is scaled like the comboBox component.
      ACTUAL -
      comboBox is scaled, but not the comboBox popup menu.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package purefxcombobox;

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.ComboBox;
      import javafx.scene.layout.BorderPane;
      import javafx.stage.Stage;

      public class PureFxComboBox extends Application {
          
          @Override
          public void start(Stage primaryStage) {
              BorderPane mainPane = new BorderPane();
              
              ComboBox cBox = new ComboBox();
              cBox.getItems().add(1);
              cBox.getItems().add(2);
              cBox.getItems().add(3);
              
              mainPane.setCenter(cBox);

              mainPane.setScaleX(2.);
              mainPane.setScaleY(2.);
              
              Scene scene = new Scene(mainPane);
        
              primaryStage.setScene(scene);
              primaryStage.setHeight(500);
              primaryStage.setWidth(500);
              primaryStage.show();
          }

          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              launch(args);
          }
      }
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: