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

📄 settingpanel.java

📁 java+eclipse做的TTPlayer
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* * SettingPanel.java * * Created on 2007年12月15日, 下午8:03 */package com.hadeslee.yoyoplayer.setting;import com.hadeslee.yoyoplayer.util.Config;import com.hadeslee.yoyoplayer.util.Util;import com.hadeslee.yoyoplayer.util.Version;import java.util.Date;import java.util.List;import javax.swing.JOptionPane;/** * * @author  hadeslee */public class SettingPanel extends javax.swing.JPanel implements Initable {    /** Creates new form SettingPanel */    public SettingPanel() {        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() {        mixers = new javax.swing.JComboBox();        jLabel1 = new javax.swing.JLabel();        jLabel3 = new javax.swing.JLabel();        encoding = new javax.swing.JComboBox();        autoMini = new javax.swing.JCheckBox();        showTrayIcon = new javax.swing.JCheckBox();        showPlayTip = new javax.swing.JCheckBox();        showTitle = new javax.swing.JCheckBox();        autoShutDown = new javax.swing.JCheckBox();        shutDownTime = new javax.swing.JSpinner();        jPanel1 = new javax.swing.JPanel();        jLabel2 = new javax.swing.JLabel();        checkUpdate = new javax.swing.JComboBox();        jButton1 = new javax.swing.JButton();        jPanel2 = new javax.swing.JPanel();        jButton9 = new javax.swing.JButton();        jButton10 = new javax.swing.JButton();        jButton2 = new javax.swing.JButton();        autoClose = new javax.swing.JCheckBox();        miniHide = new javax.swing.JCheckBox();        jLabel1.setText(Config.getResource("SettingPanel.audioDevice")); // NOI18N        jLabel3.setText(Config.getResource("SettingPanel.lyricEncoding")); // NOI18N        encoding.setEditable(true);        encoding.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "GBK", "Big5", "UTF-8", "ISO8859-1" }));        autoMini.setText(Config.getResource("SettingPanel.autoMinimize")); // NOI18N        autoMini.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                autoMiniActionPerformed(evt);            }        });        showTrayIcon.setText(Config.getResource("SettingPanel.showTrayIcon")); // NOI18N        showPlayTip.setText(Config.getResource("SettingPanel.showPlayTip")); // NOI18N        showTitle.setText(Config.getResource("SettingPanel.showSongTitleOnTaskBar")); // NOI18N        showTitle.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                showTitleActionPerformed(evt);            }        });        autoShutDown.setText(Config.getResource("SettingPanel.autoShutDownPC")); // NOI18N        autoShutDown.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                autoShutDownActionPerformed(evt);            }        });        shutDownTime.setModel(new javax.swing.SpinnerDateModel(new java.util.Date(), null, null, java.util.Calendar.MINUTE));        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(Config.getResource("SettingPanel.update"))); // NOI18N        jLabel2.setText(Config.getResource("SettingPanel.autoCheckUpdate")); // NOI18N        checkUpdate.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "每天", "每周", "每月", "不检查" }));        jButton1.setText(Config.getResource("SettingPanel.checkNow")); // NOI18N        jButton1.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton1ActionPerformed(evt);            }        });        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);        jPanel1.setLayout(jPanel1Layout);        jPanel1Layout.setHorizontalGroup(            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)            .addGroup(jPanel1Layout.createSequentialGroup()                .addComponent(jLabel2)                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)                .addComponent(checkUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)                .addComponent(jButton1)                .addContainerGap(73, Short.MAX_VALUE))        );        jPanel1Layout.setVerticalGroup(            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)            .addGroup(jPanel1Layout.createSequentialGroup()                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)                    .addComponent(jLabel2)                    .addComponent(checkUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)                    .addComponent(jButton1))                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))        );        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);        jButton2.setText(Config.getResource("resetAll")); // NOI18N        jPanel2.add(jButton2);        autoClose.setText(Config.getResource("SettingPanel.closeWhenPressSave")); // NOI18N        miniHide.setText(Config.getResource("SettingPanel.hideWhenMinimize")); // NOI18N        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.TRAILING)                            .addGroup(layout.createSequentialGroup()                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                                    .addComponent(showPlayTip)                                    .addComponent(autoMini))                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 81, Short.MAX_VALUE)                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                                    .addComponent(showTitle)                                    .addComponent(showTrayIcon)))                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()                                .addComponent(autoShutDown)                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)                                .addComponent(shutDownTime, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                                    .addComponent(jLabel1)                                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE))                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()                                        .addComponent(encoding, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 60, Short.MAX_VALUE)                                        .addComponent(autoClose))

⌨️ 快捷键说明

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