Ⅰ 如何用java实现警报功能
JOptionPane.showMessageDialog(null,"输薯氏册入提示错误数宏信息核埋","对话框的标题",JOptionPane.ERROR_MESSAGE);
Ⅱ java如何发出报警啊
Display的常用的两个方法: setCurrent(Alert alert, Displayable nextDisplayable);//显示alert之后跳到nextDisplayable setCurrent(Displayable nextDisplayable) ;//将nextDisplayable显示到屏幕 例如罩没: Form form = new Form("title");//物谨纳定义form Alert alert=new Alert("titel","contents",null,AlertType.INFO);//定义alert display.setCurrent(alert,form);//显示提醒信息alert,然晌态后跳到form