我想在java中执行一个函数,但同时我想JOptionPane
在操作开始和结束时向用户显示一个,问题是如果我不按下第一个的“Accept”buyton JOptionPane
,我的函数不会't 开始,我希望它是自动的,我该怎么做?这是我的代码,我正在为我的功能使用 JRI 接口。
JOptionPane.showMessageDialog(null, "Leyendo archivos, espere un momento...","Importar archivos cel", JOptionPane.INFORMATION_MESSAGE);
REXP data = re.eval("rawdata <- read.celfiles(celFiles)");
JOptionPane.showMessageDialog(null, "Se han importado las muestras exitosamente.", "Importar archivos cel",JOptionPane.INFORMATION_MESSAGE);