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

📄 control.java~17~

📁 该文件中包含有源代码及一部分的文档,该系统是一个小型的英语单词字典的系统.
💻 JAVA~17~
字号:
package english;

import java.awt.*;
import javax.swing.*;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.event.AncestorEvent;
import javax.swing.event.AncestorListener;
import com.borland.jbcl.layout.BoxLayout2;

public class Control extends JPanel {
    JSlider jSlider1 = new JSlider();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JButton jButton3 = new JButton();
    JPanel jPanel1 = new JPanel();
    JPanel jPanel2 = new JPanel();
    JPanel jPanel3 = new JPanel();
    JPanel jPanel4 = new JPanel();
    JPanel jPanel5 = new JPanel();
    BoxLayout2 boxLayout21 = new BoxLayout2();

    public Control() {
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        this.setLayout(new BoxLayout(this,BoxLayout.PAGE_AXIS));
        this.setPreferredSize(new Dimension(100, 230));
        this.setToolTipText("");
        this.addAncestorListener(new Control_this_ancestorAdapter(this));
        jSlider1.setOrientation(JSlider.VERTICAL);
        jSlider1.addAncestorListener(new Control_jSlider1_ancestorAdapter(this));
        jButton1.setText("stop");
        jButton1.addActionListener(new Control_jButton1_actionAdapter(this));
        jButton2.setText("pause");
        jButton2.addActionListener(new Control_jButton2_actionAdapter(this));
        jButton3.setText("play");
        jButton3.addActionListener(new Control_jButton3_actionAdapter(this));
        jPanel2.setLayout(boxLayout21);
        this.add(jPanel1);
        this.add(jPanel2);
        jPanel2.add(jSlider1);
        jPanel1.add(Box.createRigidArea(new Dimension(0,15)));
        jPanel1.add(jPanel4);
        jPanel4.add(jButton3);
        jPanel1.add(jPanel5);
        jPanel5.add(jButton2);
        jPanel1.add(jPanel3);
        jPanel3.add(jButton1);
        jPanel1.setLayout(new BoxLayout(jPanel1,BoxLayout.PAGE_AXIS));
    }
}

⌨️ 快捷键说明

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