我想将YES和NO改为同意/不同意.我该怎么办?
int reply = JOptionPane.showConfirmDialog(null,
"Are you want to continue the process?",
"YES?",
JOptionPane.YES_NO_OPTION);
Run Code Online (Sandbox Code Playgroud) 我想知道如何通过java打开文件.
我可以像这样打开Office
try {
Runtime runTime = Runtime.getRuntime();
Process process = runTime.exec("C:\\Program Files\\Microsoft Office\\Office15\\EXCEL.EXE");
} catch (IOException e) {
e.printStackTrace();
}
Run Code Online (Sandbox Code Playgroud)
但我想直接从java打开文件.