我正在编写一个简单的程序来帮助我计算混合电子液所需的材料。我尝试在JOptionPane.showInputDialog中添加单选按钮,但我无法将它们连接在一起。当我运行程序时,什么也没有出现。这是我目前拥有的全部代码:
JRadioButton nicSelect = new JRadioButton("What is the target Nicotine level? ");
JRadioButton b1 = new JRadioButton("0");
JRadioButton b2 = new JRadioButton("3");
JRadioButton b3 = new JRadioButton("6");
JRadioButton b4 = new JRadioButton("12");
JRadioButton b5 = new JRadioButton("18");
JRadioButton b6 = new JRadioButton("24");
JSpinner
(http://forums.aussievapers.com/diy-juice-recipes-mixing/28538-e-juice-mixing-calculator-needs-testing.html),并且它的最高值是**36mg/ml**。 - Andrew Thompson