From e8b8213d4f92989eb1c2dff493af047881edf8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E9=94=8B?= <1409489435@qq.com> Date: Thu, 17 Oct 2024 16:34:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E6=AC=A1=E8=BF=9B=E5=88=B6?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- One/src/test1.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/One/src/test1.java b/One/src/test1.java index db08025..ffe12e8 100644 --- a/One/src/test1.java +++ b/One/src/test1.java @@ -1,4 +1,6 @@ import javafx.application.Application; +import javafx.stage.Stage; +import javafx.application.Application; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.control.*; @@ -27,7 +29,7 @@ public class test1 extends Application { Label fromBaseLabel = new Label("源进制:"); GridPane.setConstraints(fromBaseLabel, 0, 1); ComboBox fromBaseCombo = new ComboBox<>(); - fromBaseCombo.getItems().addAll(2, 10, 16); + fromBaseCombo.getItems().addAll(2, 8, 10, 16); // 添加八进制 fromBaseCombo.setValue(10); // 默认选择十进制 GridPane.setConstraints(fromBaseCombo, 1, 1); @@ -35,7 +37,7 @@ public class test1 extends Application { Label toBaseLabel = new Label("目标进制:"); GridPane.setConstraints(toBaseLabel, 0, 2); ComboBox toBaseCombo = new ComboBox<>(); - toBaseCombo.getItems().addAll(2, 10, 16); + toBaseCombo.getItems().addAll(2, 8, 10, 16); // 添加八进制 toBaseCombo.setValue(10); // 默认选择十进制 GridPane.setConstraints(toBaseCombo, 1, 2);