📄 trans.java
字号:
package weng;import javax.swing.*;import java.awt.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class Trans extends JInternalFrame { JLabel jLabel1 = new JLabel(); JLabel jLabel2 = new JLabel(); JTextField jTextField1 = new JTextField(); JLabel jLabel3 = new JLabel(); JLabel jLabel4 = new JLabel(); JLabel jLabel5 = new JLabel(); JTextField jTextField2 = new JTextField(); JTextField jTextField3 = new JTextField(); JLabel jLabel6 = new JLabel(); JTextField jTextField4 = new JTextField(); JLabel jLabel7 = new JLabel(); JComboBox jComboBox1 = new JComboBox(); JLabel jLabel8 = new JLabel(); JComboBox jComboBox2 = new JComboBox(); JLabel jLabel9 = new JLabel(); JComboBox jComboBox3 = new JComboBox(); JLabel jLabel10 = new JLabel(); JTextField jTextField5 = new JTextField(); JLabel jLabel11 = new JLabel(); JTextField jTextField6 = new JTextField(); JLabel jLabel12 = new JLabel(); JTextField jTextField7 = new JTextField(); JLabel jLabel13 = new JLabel(); JLabel jLabel14 = new JLabel(); JTextField jTextField8 = new JTextField(); JLabel jLabel15 = new JLabel(); JTextField jTextField9 = new JTextField(); JButton jButton1 = new JButton(); JButton jButton2 = new JButton(); JButton jButton3 = new JButton(); JButton jButton4 = new JButton(); JButton jButton5 = new JButton(); JButton jButton6 = new JButton(); JButton jButton7 = new JButton(); JButton jButton8 = new JButton(); JButton jButton9 = new JButton(); public Trans() { try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } } void jbInit() throws Exception { jLabel1.setText("交易明细"); jLabel1.setBounds(new Rectangle(119, 8, 104, 22)); this.setTitle("trans"); this.getContentPane().setLayout(null); jLabel2.setText("交易号"); jLabel2.setBounds(new Rectangle(6, 34, 34, 16)); jTextField1.setText("jTextField1"); jTextField1.setBounds(new Rectangle(49, 32, 71, 19)); jLabel3.setToolTipText(""); jLabel3.setText("交易日期"); jLabel3.setBounds(new Rectangle(134, 33, 44, 19)); jLabel4.setText("年"); jLabel4.setBounds(new Rectangle(245, 28, 34, 27)); jLabel5.setText("月"); jLabel5.setBounds(new Rectangle(330, 34, 43, 21)); jTextField2.setText("jTextField2"); jTextField2.setBounds(new Rectangle(194, 34, 33, 21)); jTextField3.setText("jTextField3"); jTextField3.setBounds(new Rectangle(284, 31, 37, 22)); jLabel6.setText("日"); jLabel6.setBounds(new Rectangle(424, 34, 34, 16)); jTextField4.setText("jTextField4"); jTextField4.setBounds(new Rectangle(379, 31, 39, 22)); jLabel7.setText("卡号列表"); jLabel7.setBounds(new Rectangle(13, 66, 60, 28)); jComboBox1.setBounds(new Rectangle(92, 71, 65, 21)); jLabel8.setText("姓名"); jLabel8.setBounds(new Rectangle(203, 69, 59, 23)); jComboBox2.setBounds(new Rectangle(299, 68, 90, 24)); jLabel9.setText("交易类型"); jLabel9.setBounds(new Rectangle(7, 101, 61, 22)); jComboBox3.setBounds(new Rectangle(85, 106, 73, 20)); jLabel10.setText("开户日期"); jLabel10.setBounds(new Rectangle(192, 108, 56, 23)); jTextField5.setText("jTextField5"); jTextField5.setBounds(new Rectangle(257, 105, 41, 25)); jLabel11.setText("年"); jLabel11.setBounds(new Rectangle(307, 101, 32, 28)); jTextField6.setText("jTextField6"); jTextField6.setBounds(new Rectangle(349, 98, 31, 30)); jLabel12.setText("月"); jLabel12.setBounds(new Rectangle(383, 98, 37, 27)); jTextField7.setText("jTextField7"); jTextField7.setBounds(new Rectangle(428, 95, 27, 34)); jLabel13.setText("日"); jLabel13.setBounds(new Rectangle(468, 95, 24, 34)); jLabel14.setText("交易金额"); jLabel14.setBounds(new Rectangle(12, 142, 79, 21)); jTextField8.setText("jTextField8"); jTextField8.setBounds(new Rectangle(115, 140, 83, 26)); jLabel15.setText("现有金额 "); jLabel15.setBounds(new Rectangle(235, 141, 93, 26)); jTextField9.setText("jTextField9"); jTextField9.setBounds(new Rectangle(348, 140, 115, 30)); jButton1.setBounds(new Rectangle(33, 191, 77, 31)); jButton1.setText("最前"); jButton2.setBounds(new Rectangle(124, 197, 80, 23)); jButton2.setText("向前"); jButton3.setBounds(new Rectangle(231, 194, 82, 25)); jButton3.setText("向后"); jButton3.addActionListener(new Trans_jButton3_actionAdapter(this)); jButton4.setBounds(new Rectangle(352, 193, 75, 24)); jButton4.setText("最后"); jButton5.setBounds(new Rectangle(31, 255, 72, 24)); jButton5.setText("添加"); jButton6.setBounds(new Rectangle(119, 256, 70, 26)); jButton6.setText("撤销"); jButton7.setBounds(new Rectangle(202, 255, 77, 27)); jButton7.setText("删除"); jButton8.setBounds(new Rectangle(293, 256, 74, 28)); jButton8.setText("保存"); jButton9.setBounds(new Rectangle(379, 254, 80, 29)); jButton9.setText("退出"); this.getContentPane().add(jLabel1, null); this.getContentPane().add(jLabel2, null); this.getContentPane().add(jTextField1, null); this.getContentPane().add(jLabel6, null); this.getContentPane().add(jTextField4, null); this.getContentPane().add(jTextField3, null); this.getContentPane().add(jLabel5, null); this.getContentPane().add(jTextField2, null); this.getContentPane().add(jLabel4, null); this.getContentPane().add(jLabel3, null); this.getContentPane().add(jLabel7, null); this.getContentPane().add(jComboBox1, null); this.getContentPane().add(jLabel8, null); this.getContentPane().add(jComboBox2, null); this.getContentPane().add(jLabel9, null); this.getContentPane().add(jComboBox3, null); this.getContentPane().add(jLabel10, null); this.getContentPane().add(jTextField5, null); this.getContentPane().add(jLabel11, null); this.getContentPane().add(jTextField6, null); this.getContentPane().add(jLabel12, null); this.getContentPane().add(jTextField7, null); this.getContentPane().add(jLabel13, null); this.getContentPane().add(jLabel14, null); this.getContentPane().add(jTextField8, null); this.getContentPane().add(jLabel15, null); this.getContentPane().add(jTextField9, null); this.getContentPane().add(jButton5, null); this.getContentPane().add(jButton6, null); this.getContentPane().add(jButton7, null); this.getContentPane().add(jButton8, null); this.getContentPane().add(jButton9, null); this.getContentPane().add(jButton1, null); this.getContentPane().add(jButton2, null); this.getContentPane().add(jButton4, null); this.getContentPane().add(jButton3, null); } void jButton3_actionPerformed(ActionEvent e) { }}class Trans_jButton3_actionAdapter implements java.awt.event.ActionListener { Trans adaptee; Trans_jButton3_actionAdapter(Trans adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton3_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -