1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
String s= GUI.buttonsBox("你喜欢哪个歌手?","周杰伦","陈奕迅","张杰"); System.out.println(s);
String s =GUI.choiceBox("吃什么?",new String[]{"鸡蛋","西红柿"}); System.out.println(s);
LocalDate l = GUI.dateBox("选择你的生日", LocalDate.of(1998,2,8)); System.out.println(l);
LocalDateTime ldt = GUI.datetimeBox("选择日期和时间",LocalDateTime.now()); System.out.println(ldt);
String s =GUI.dirOpenBox("请选择对应的文件夹"); System.out.println(s);
String s = GUI.dirSaveBox("D:\\JavaTest1\\output"); System.out.println(s);
double d = GUI.doubleBox("请输入你的体重"); System.out.println(d);
/tring s =GUI.fileOpenBox("D:\\新建文件夹\\http\\HTTP.png"); System.out.println(s);
int i = GUI.getScreenHeight(); int i1 =GUI.getScreenWidth(); System.out.println(i); System.out.println(i1);
String s = GUI.imgBox("你觉得这个壁纸好看吗?","D:/新建文件夹/http/HTTP.png","好看","不好看"); System.out.println(s);
String s =GUI.inputBox("请输入你想看到的信息","你真帅"); System.out.println(s);
String[] strs = GUI.loginBox("请输入账号:"); System.out.println(Arrays.toString(strs));
String s=GUI.passwordBox("请输入密码"); System.out.println(s);
GUI.msgBox("你好,这是一条信息");
String[] strs = GUI.multiInputBox("请输入你的想法,我为你保存","生活越来越好","家人健健康康","平平安安"); System.out.println(Arrays.toString(strs));
boolean b = GUI.okCancelBox("你还好吗?"); System.out.println(b);
try { System.out.println("暂停开始前: " + System.currentTimeMillis()); GUI.showIndeterminateProgressDialog("正在导入"); Thread.sleep(10000);
System.out.println("暂停结束后: " + System.currentTimeMillis()); } catch (InterruptedException e) { Thread.currentThread().interrupt(); }
try { System.out.println("暂停开始前: " + System.currentTimeMillis()); GUI.showProgressDialog("导入中",10,1); Thread.sleep(10000);
System.out.println("暂停结束后: " + System.currentTimeMillis()); } catch (InterruptedException e) { Thread.currentThread().interrupt(); }
|