[java]showInputDialog

 

1.如何得到java中JOptiongPane的showInputDialog的值;

String xx[]={"aaa","bbb"};   
JoptionPane.showInputDialog(null,"请选择楼盘名称:","请选择",j.INFORMATION_MESSAGE,null,xx,null);
我要如何得到那个aaa,或者bbb;
最佳答案
Object obj=JoptionPane.showInputDialog(null,"请选择楼盘名称:","请选择",j.INFORMATION_MESSAGE,null,xx,null);

system.out.println((String)obj);
没调试出来啊

你可能感兴趣的:(java,String,object,null)