Pane().add(jPanel3, java.awt.BorderLayout.SOUTH);Р pack();Р }// </editor-fold>Р private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { Р // TODO add your handling code here:Р JFileChooser chooser=new JFileChooser();Р chooser.showOpenDialog(jLabel1);Р jTextField1.setText(chooser.getSelectedFile().getPath().toString());Р jLabel3.setText("源文件大小:"+chooser.getSelectedFile().length()+"字节");Р f1=chooser.getSelectedFile();Р } Р private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { Р // TODO add your handling code here:Р JFileChooser chooser1=new JFileChooser();Р chooser1.showSaveDialog(jLabel1);Р f2=chooser1.getSelectedFile();Р jTextField2.setText(chooser1.getSelectedFile().getPath().toString());Р jLabel4.setText("目标文件大小:"+chooser1.getSelectedFile().length()+"字节");