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

[ChoiceBox] Default size has changed.

    XMLWordPrintable

    Details

      Description

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.ChoiceBox;
      import javafx.scene.layout.VBox;
      import javafx.stage.Stage;

      public class ChoiceBoxDefaultSize extends Application {

          public static void main(String[] args) {
              launch(args);
          }

          @Override
          public void start(Stage stage) throws Exception {
              VBox vb = new VBox();
              
              ChoiceBox cb = new ChoiceBox();
              
              vb.getChildren().add(cb);
              
              Scene scene = new Scene(vb, 300, 200);
              stage.setScene(scene);
              stage.show();
          }
      }

        Attachments

          Activity

            People

            Assignee:
            psomashe Parvathi Somashekar (Inactive)
            Reporter:
            dzinkevi Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: