(JTabbedPane tabbedPane, String tabName)
| 511 | } |
| 512 | |
| 513 | public static void switchTab(JTabbedPane tabbedPane, String tabName) { |
| 514 | for (int i = 0; i < tabbedPane.getTabCount(); i++) { |
| 515 | if (tabbedPane.getTitleAt(i).equals(tabName)) { |
| 516 | // 找到后切换到该标签 |
| 517 | tabbedPane.setSelectedIndex(i); |
| 518 | break; |
| 519 | } |
| 520 | } |
| 521 | } |
| 522 | |
| 523 | // 文件流操作:去空保存,完成 InputFile InputTarget 部分 |
| 524 | private static void parseJsonAndWriteFile(String jsonFilePath) throws IOException { |
no outgoing calls
no test coverage detected