⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 save.java~1~

📁 最近在新浪"读书频道"下载了一个小说,有40多个页面,后缀全是shtml的,发现改成html就可以在本地看了,但改起来太麻烦,就写了这个程序,专门用来批量修改某目录下的文件后缀.
💻 JAVA~1~
字号:
package changeExts;import java.awt.*;import javax.swing.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class Save extends JDialog {  JPanel panel1 = new JPanel();  BorderLayout borderLayout1 = new BorderLayout();  JButton jButton2 = new JButton();  JButton jButton1 = new JButton();  XYLayout xYLayout1 = new XYLayout();  JLabel jLabel1 = new JLabel();  JTextField jTextField1 = new JTextField();  JPanel panel2 = new JPanel();  public Save(Frame frame, String title, boolean modal) {    super(frame, title, modal);    try {      jbInit();      pack();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  public Save() {    this(null, "", false);  }  private void jbInit() throws Exception {    panel1.setLayout(borderLayout1);    jButton2.setText("取消");    jButton1.addActionListener(new SaveAs_jButton1_actionAdapter(this));    jButton1.setText("确定");    jLabel1.setVerticalTextPosition(SwingConstants.CENTER);    jLabel1.setVerticalAlignment(SwingConstants.CENTER);    jLabel1.setText("请输入想要的文件后缀:");    jTextField1.addActionListener(new SaveAs_jTextField1_actionAdapter(this));    jTextField1.setText("文件后缀");    jTextField1.setDebugGraphicsOptions(0);    panel2.setLayout(xYLayout1);    getContentPane().add(panel1);    panel1.add(panel2, BorderLayout.CENTER);    panel2.add(jButton1, new XYConstraints(58, 158, 69, 24));    panel2.add(jLabel1, new XYConstraints(24, 13, 120, 29));    panel2.add(jButton2, new XYConstraints(148, 158, 69, 24));    panel2.add(jTextField1, new XYConstraints(145, 14, 82, 26));  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -