カルネージハートエクサのチームデータ編集ツール JAVAベース
チーム配置ボタンのラベルを修正
| @@ -24,7 +24,9 @@ | ||
| 24 | 24 | cheFile che; |
| 25 | 25 | cheTeamData team; |
| 26 | 26 | |
| 27 | - /** Creates new form TeamPanel */ | |
| 27 | + /** | |
| 28 | + * Creates new form TeamPanel | |
| 29 | + */ | |
| 28 | 30 | public TeamPanel() { |
| 29 | 31 | okedata = new DefaultListModel(); |
| 30 | 32 | che = new cheFile(); |
| @@ -50,6 +52,7 @@ | ||
| 50 | 52 | |
| 51 | 53 | /** |
| 52 | 54 | * チームデータを読み込み |
| 55 | + * | |
| 53 | 56 | * @param p チームデータ |
| 54 | 57 | */ |
| 55 | 58 | public void load_team(cheTeamData p) { |
| @@ -64,7 +67,8 @@ | ||
| 64 | 67 | |
| 65 | 68 | /** |
| 66 | 69 | * OKEデータを読み込み |
| 67 | - * @param nidx OKE番号 | |
| 70 | + * | |
| 71 | + * @param nidx OKE番号 | |
| 68 | 72 | * @param p OKEデータ |
| 69 | 73 | * @param n 配置場所ID |
| 70 | 74 | */ |
| @@ -113,6 +117,7 @@ | ||
| 113 | 117 | |
| 114 | 118 | /** |
| 115 | 119 | * 選択中のOKEデータを取得 |
| 120 | + * | |
| 116 | 121 | * @return OKEデータ。未選択時はnull |
| 117 | 122 | */ |
| 118 | 123 | public cheOkeData get_current_oke() { |
| @@ -125,6 +130,7 @@ | ||
| 125 | 130 | |
| 126 | 131 | /** |
| 127 | 132 | * 選択中のOKE配置場所IDを取得 |
| 133 | + * | |
| 128 | 134 | * @return 配置場所ID。未選択時は-1 |
| 129 | 135 | */ |
| 130 | 136 | public int get_current_oke_pos() { |
| @@ -137,6 +143,7 @@ | ||
| 137 | 143 | |
| 138 | 144 | /** |
| 139 | 145 | * チームリストの取得 |
| 146 | + * | |
| 140 | 147 | * @return チームリストパネル |
| 141 | 148 | */ |
| 142 | 149 | private TeamListPanel get_teamlist() { |
| @@ -144,10 +151,10 @@ | ||
| 144 | 151 | return form.get_teamlist(); |
| 145 | 152 | } |
| 146 | 153 | |
| 147 | - /** This method is called from within the constructor to | |
| 148 | - * initialize the form. | |
| 149 | - * WARNING: Do NOT modify this code. The content of this method is | |
| 150 | - * always regenerated by the Form Editor. | |
| 154 | + /** | |
| 155 | + * This method is called from within the constructor to initialize the form. | |
| 156 | + * WARNING: Do NOT modify this code. The content of this method is always | |
| 157 | + * regenerated by the Form Editor. | |
| 151 | 158 | */ |
| 152 | 159 | @SuppressWarnings("unchecked") |
| 153 | 160 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
| @@ -476,11 +483,11 @@ | ||
| 476 | 483 | private void saveTEAMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveTEAMActionPerformed |
| 477 | 484 | int nret; |
| 478 | 485 | JFileChooser fdlg = new JFileChooser(Main.cheDataDir); |
| 479 | - String filterTitle = | |
| 480 | - java.util.ResourceBundle.getBundle("chexaformation/resource"). | |
| 486 | + String filterTitle | |
| 487 | + = java.util.ResourceBundle.getBundle("chexaformation/resource"). | |
| 481 | 488 | getString("filterTitleCHE"); |
| 482 | - FileNameExtensionFilter ffilter = | |
| 483 | - new FileNameExtensionFilter(filterTitle, "CHE"); | |
| 489 | + FileNameExtensionFilter ffilter | |
| 490 | + = new FileNameExtensionFilter(filterTitle, "CHE"); | |
| 484 | 491 | fdlg.setFileFilter(ffilter); |
| 485 | 492 | fdlg.setSelectedFile(new File(che.get_fname())); |
| 486 | 493 | nret = fdlg.showSaveDialog(getRootPane().getParent()); |
| @@ -508,18 +515,18 @@ | ||
| 508 | 515 | if (che.save() == true) { |
| 509 | 516 | Main.mesg_box((Dialog) (getRootPane().getParent()), |
| 510 | 517 | java.util.ResourceBundle.getBundle( |
| 511 | - "chexaformation/resource"). | |
| 518 | + "chexaformation/resource"). | |
| 512 | 519 | getString("titleSaveTeam"), |
| 513 | 520 | java.util.ResourceBundle.getBundle( |
| 514 | - "chexaformation/resource"). | |
| 521 | + "chexaformation/resource"). | |
| 515 | 522 | getString("mesgSaveTeam"), ""); |
| 516 | 523 | } else { |
| 517 | 524 | Main.mesg_box((Dialog) (getRootPane().getParent()), |
| 518 | 525 | java.util.ResourceBundle.getBundle( |
| 519 | - "chexaformation/resource"). | |
| 526 | + "chexaformation/resource"). | |
| 520 | 527 | getString("titleSaveTeam"), |
| 521 | 528 | java.util.ResourceBundle.getBundle( |
| 522 | - "chexaformation/resource"). | |
| 529 | + "chexaformation/resource"). | |
| 523 | 530 | getString("failSaveTeam"), |
| 524 | 531 | ifile.getAbsolutePath()); |
| 525 | 532 | } |
| @@ -537,7 +544,7 @@ | ||
| 537 | 544 | if (team.check_position(nsel, i) == true) { |
| 538 | 545 | int old_pos = team.get_position(nsel); |
| 539 | 546 | if (old_pos != -1) { |
| 540 | - ((JButton) btnlist[old_pos]).setText("_"); | |
| 547 | + ((JButton) btnlist[old_pos]).setText("-"); | |
| 541 | 548 | } |
| 542 | 549 | team.set_position(nsel, i); |
| 543 | 550 | ((JButton) btnlist[i]).setText( |