@Override public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); if (ValueWidget.isInteger(command)) { int selectedIndex = Integer.parseInt(command); tabbedPane.setSelectedIndex(selectedIndex); // autoTestPanel.searchSuccess(selectedIndex); } else { ToastMessage.toast("已取消", 2000, Color.RED); } }