描述:消息提示弹窗 作者:蒋庆意 日期时间:2021/1/22 13:44 cocoasjiang@foxmail.com
| 10 | * cocoasjiang@foxmail.com |
| 11 | */ |
| 12 | public class MsgHintUtil { |
| 13 | |
| 14 | /** |
| 15 | * 显示提示对话框 |
| 16 | * @param msg |
| 17 | */ |
| 18 | public static void showHint(String msg){ |
| 19 | JOptionPane.showMessageDialog(null,msg,"提示",JOptionPane.PLAIN_MESSAGE); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * 源代码文档生成成功提示对话框 |
| 24 | * @param savePath 文档保存位置 |
| 25 | * @param pages 文档页数 |
| 26 | * @param lineNums 文档行数 |
| 27 | */ |
| 28 | public static void showFinishHint(String savePath,int pages,int lineNums){ |
| 29 | StringBuilder sb = new StringBuilder(); |
| 30 | sb.append("源代码文档生成成功!").append("\n"); |
| 31 | sb.append("文档位置:").append(savePath).append("\n"); |
| 32 | sb.append("文档页数:").append(pages).append("页").append("\n"); |
| 33 | sb.append("文档行数:").append(lineNums).append("行"); |
| 34 | JOptionPane.showMessageDialog(null,sb.toString(),"完成",JOptionPane.PLAIN_MESSAGE); |
| 35 | } |
| 36 | |
| 37 | |
| 38 | } |
nothing calls this directly
no outgoing calls
no test coverage detected