该文件中包含有源代码及一部分的文档,该系统是一个小型的英语单词字典的系统.
源代码在线查看: control.java~3~
package english;
import java.awt.*;
import javax.swing.*;
import java.awt.Dimension;
import java.awt.BorderLayout;
public class Control extends JPanel {
FlowLayout flowLayout1 = new FlowLayout();
JSlider jSlider1 = new JSlider();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JButton jButton3 = new JButton();
public Control() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
this.setLayout(flowLayout1);
this.setPreferredSize(new Dimension(70, 230));
this.setToolTipText("");
jSlider1.setOrientation(JSlider.VERTICAL);
jButton1.setText("stop");
jButton2.setText("pause");
jButton3.setText("play");
this.add(jButton3);
this.add(jButton2);
this.add(jButton1);
this.add(jSlider1);
}
}