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

📄 searchlyricpanel.java

📁 java+eclipse做的TTPlayer
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* * SearchLyricPanel.java * * Created on 2007年12月25日, 下午7:51 */package com.hadeslee.yoyoplayer.setting;import com.hadeslee.yoyoplayer.util.Config;import com.hadeslee.yoyoplayer.util.FileNameFilter;import com.hadeslee.yoyoplayer.util.Util;import java.io.File;import java.util.Vector;import java.util.logging.Logger;import javax.swing.JFileChooser;import javax.swing.JOptionPane;/** * * @author  hadeslee */public class SearchLyricPanel extends javax.swing.JPanel implements Initable{    private static Logger log=Logger.getLogger(SearchLyricPanel.class.getName());    private Vector<File> files;    private File lyricDir;    /** Creates new form SearchLyricPanel */    public SearchLyricPanel() {        initComponents();        init();    }    /** This method is called from within the constructor to     * initialize the form.     * WARNING: Do NOT modify this code. The content of this method is     * always regenerated by the Form Editor.     */    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents    private void initComponents() {        jPanel1 = new javax.swing.JPanel();        jScrollPane1 = new javax.swing.JScrollPane();        list = new javax.swing.JList();        jButton1 = new javax.swing.JButton();        jButton2 = new javax.swing.JButton();        jButton3 = new javax.swing.JButton();        jButton4 = new javax.swing.JButton();        autoSearch = new javax.swing.JCheckBox();        searchWhenFull = new javax.swing.JCheckBox();        selectBest = new javax.swing.JCheckBox();        relativeWithFile = new javax.swing.JCheckBox();        autoOverWrite = new javax.swing.JCheckBox();        saveAsTheFileName = new javax.swing.JCheckBox();        jLabel1 = new javax.swing.JLabel();        saveLyricDir = new javax.swing.JTextField();        jButton5 = new javax.swing.JButton();        jPanel2 = new javax.swing.JPanel();        jButton9 = new javax.swing.JButton();        jButton10 = new javax.swing.JButton();        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(Config.getResource("SearchLyricPanel.localSearch"))); // NOI18N        list.setModel(new javax.swing.AbstractListModel() {            String[] strings = { "USER.HOME", "YOYO.HOME" };            public int getSize() { return strings.length; }            public Object getElementAt(int i) { return strings[i]; }        });        jScrollPane1.setViewportView(list);        jButton1.setText(Config.getResource("SearchLyricPanel.add")); // NOI18N        jButton1.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton1ActionPerformed(evt);            }        });        jButton2.setText(Config.getResource("SearchLyricPanel.delete")); // NOI18N        jButton2.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton2ActionPerformed(evt);            }        });        jButton3.setText(Config.getResource("SearchLyricPanel.up")); // NOI18N        jButton3.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton3ActionPerformed(evt);            }        });        jButton4.setText(Config.getResource("SearchLyricPanel.down")); // NOI18N        jButton4.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton4ActionPerformed(evt);            }        });        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);        jPanel1.setLayout(jPanel1Layout);        jPanel1Layout.setHorizontalGroup(            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE)                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)                    .addComponent(jButton1)                    .addComponent(jButton2)                    .addComponent(jButton3)                    .addComponent(jButton4)))        );        jPanel1Layout.setVerticalGroup(            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)            .addGroup(jPanel1Layout.createSequentialGroup()                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                    .addGroup(jPanel1Layout.createSequentialGroup()                        .addComponent(jButton1)                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)                        .addComponent(jButton2)                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)                        .addComponent(jButton3)                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)                        .addComponent(jButton4))                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE))                .addContainerGap())        );        autoSearch.setText(Config.getResource("autoSearchLyric")); // NOI18N        searchWhenFull.setText(Config.getResource("SearchLyricPanel.searchOnlyWhenTagFull")); // NOI18N        selectBest.setText(Config.getResource("SearchLyricPanel.selectBest")); // NOI18N        relativeWithFile.setText(Config.getResource("SearchLyricPanel.autoRelative")); // NOI18N        autoOverWrite.setText(Config.getResource("SearchLyricPanel.autoOverwrite")); // NOI18N        saveAsTheFileName.setText(Config.getResource("SearchLyricPanel.saveAsTheSameNameAsSongFile")); // NOI18N        jLabel1.setText(Config.getResource("SearchLyricPanel.saveFileTo")); // NOI18N        saveLyricDir.setEditable(false);        jButton5.setText(Config.getResource("SearchLyricPanel.change")); // NOI18N        jButton5.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton5ActionPerformed(evt);            }        });        jButton9.setText(Config.getResource("save")); // NOI18N        jButton9.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton9ActionPerformed(evt);            }        });        jPanel2.add(jButton9);        jButton10.setText(Config.getResource("reset")); // NOI18N        jButton10.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton10ActionPerformed(evt);            }        });        jPanel2.add(jButton10);        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);        this.setLayout(layout);        layout.setHorizontalGroup(            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)            .addGroup(layout.createSequentialGroup()                .addContainerGap()                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                    .addGroup(layout.createSequentialGroup()                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                            .addGroup(layout.createSequentialGroup()                                .addComponent(autoSearch)                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)                                .addComponent(searchWhenFull))                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))                        .addContainerGap())                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()

⌨️ 快捷键说明

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