leaveframe.java~2~
来自「网吧的计费系统,通过改系统可以简单的为网吧的收费提供方便」· JAVA~2~ 代码 · 共 75 行
JAVA~2~
75 行
package prj;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.*;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JButton;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class LeaveFrame extends JFrame {
public LeaveFrame() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
getContentPane().setLayout(null);
jLabel1.setFont(new java.awt.Font("Dialog", Font.BOLD, 15));
jLabel1.setText("机器号:");
jLabel1.setBounds(new Rectangle(23, 33, 64, 33));
jLabel2.setText("jLabel1");
jLabel2.setBounds(new Rectangle(35, 50, 101, 33));
jButton2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
jButton1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
this.getContentPane().add(jLabel1);
jButton2.setBounds(new Rectangle(40, 146, 70, 29));
jButton2.setText("确定");
jButton1.setBounds(new Rectangle(145, 146, 70, 29));
jButton1.setText("重置");
endtime.setBounds(new Rectangle(109, 85, 141, 26));
cnum.setBounds(new Rectangle(110, 33, 139, 27));
cnum.addItem("1");
cnum.addItem("2");
cnum.addItem("3");
cnum.addItem("4");
cnum.addItem("5");
cnum.addItem("6");
cnum.addItem("7");
cnum.addItem("8");
this.getContentPane().add(jLabel3);
this.getContentPane().add(endtime);
this.getContentPane().add(cnum);
this.getContentPane().add(jButton2);
this.getContentPane().add(jButton1);
jLabel3.setFont(new java.awt.Font("Dialog", Font.BOLD, 15));
jLabel3.setText("结束时间:");
jLabel3.setBounds(new Rectangle(23, 82, 71, 33));
}
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JComboBox cnum = new JComboBox();
JTextField endtime = new JTextField();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?