Java 自定义对话框内的对话框确认

Java 自定义对话框内的对话框确认,java,swing,jdialog,Java,Swing,Jdialog,您好,我有以下对话框 Object[] options = {"10 MINS: " + Utility.NF.format(price1), "30 MINS: " + Utility.NF.format(price2), "1 HOUR: " + Utility.NF.format(price3), "ALL DAY: " + Utility.NF.format(price4) }; int n = JOptionPane.showOptionDialog(

您好,我有以下对话框

Object[] options = {"10 MINS: " + Utility.NF.format(price1),
    "30 MINS: " + Utility.NF.format(price2),
    "1 HOUR: " + Utility.NF.format(price3),
    "ALL DAY: " + Utility.NF.format(price4)
    };

int n = JOptionPane.showOptionDialog(new JFrame(),
        "Please select the credit you wish to add \n WARNING: CREDIT CAN NOT BE REFUNDED",
         "Credit selection",
        JOptionPane.YES_NO_OPTION,
        JOptionPane.WARNING_MESSAGE,
        null,     //do not use a custom Icon
        options,  //the titles of buttons
        options[0]); //default button title
        return n;
我的问题是,有没有一种方法可以在我的自定义对话框中添加“是非”确认

例如,如果用户在“我的自定义”对话框中选择“10分钟…”,则会弹出另一个简单的“是/否”确认对话框

我搜索了其他问题,但没有发现自定义对话框中会出现“是/否”对话框的问题

干杯,

请参见,在您的
PropertyChangeListener
中打开新的
作业窗格
,并编辑您的问题以包含一个显示您修订方法的内容。请参见,在
PropertyChangeListener
中打开新的
作业窗格
,并编辑您的问题以包含一个显示您修订方法的内容。