辅导:JAVA写的MP3标签读写器
来源:优易学  2011-10-6 22:37:52   【优易学:中国教育考试门户网】   资料下载   IT书店

   .addGroup(layout.createSequentialGroup()
   .addContainerGap()
   .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
   .addComponent(jLabel5)
   .addComponent(fileName, javax.swing.GroupLayout.PREFERRED_SIZE,
  javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
   .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
   .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
  javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
   .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
   .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
   .addComponent(jButton1)
   .addComponent(jButton2)
   .addComponent(jButton3))
   .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
   .addComponent(jLabel9)
   .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
   );
   pack();
  }// </editor-fold>
  private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
   // TODO add your handling code here:
   this.dispose();
  }
  private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
   // TODO add your handling code here:
   doSave();
  }
  private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
   // TODO add your handling code here:
   init();
  }
  private void doSave() {
   try {
   info.setAlbum(album.getText());
   info.setArtist(artist.getText());
   info.setComment(comment.getText());
    info.setR1((byte) 0);
    try {
    info.setR2(Byte.parseByte(r2.getText()));
    info.setR3(Byte.parseByte(r3.getText()));
    } catch (Exception exe) {
   exe.printStackTrace();
    }

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... 下一页  >> 

责任编辑:小草

文章搜索:
 相关文章
热点资讯
资讯快报
热门课程培训