所以我终于能够得到我的是/否确认框。有没有办法改变按钮,说男孩和女孩(我正在制作一个口袋妖怪介绍模拟器)。
答案 0 :(得分:0)
/* 0 */
{
"_id" : ObjectId("563bc608d1f71f49c3d6c80b"),
"components" : [
{
"subslug" : "2:15553:01",
"score" : "0.915",
"position_start" : "1002",
"position_end" : 15553,
"name" : "MMFR",
"ref" : "C"
}
],
"slug" : "2:15553"
}
/* 1 */
{
"_id" : ObjectId("563bc608d1f71f49c3d6c80c"),
"components" : [
{
"subslug" : "1:955553:02",
"score" : "0.615",
"position_start" : "1",
"position_end" : 955553,
"name" : "AGRN",
"ref" : "A"
},
{
"subslug" : "1:955553:01",
"score" : "0.715",
"position_start" : 1,
"position_end" : 955553,
"name" : "AGRN",
"ref" : "A"
}
],
"slug" : "1:955553"
}
"选择"是按钮的字符串列表(或甚至可以是任何组件集)。所以只需使用
OptionDialog.showOptionDialog(Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
将显示" Boy"作为默认值。
答案 1 :(得分:0)