📄 frmasset1.java~2~
字号:
package 固定资产管理系统;
import java.awt.*;
import javax.swing.JInternalFrame;
import javax.swing.*;
import javax.swing.border.TitledBorder;
import javax.swing.table.JTableHeader;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.XYConstraints;
public class FrmAsset1 extends JInternalFrame {
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
JPanel jPanel2 = new JPanel();
JPanel jPanel3 = new JPanel();
JScrollPane jScrollPane1 = new JScrollPane();
BorderLayout borderLayout2 = new BorderLayout();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JButton jButton3 = new JButton();
JTable jTable1=new JTable(3,3);
JTableHeader jTableHeader1 = jTable1.getTableHeader();
JLabel jLabel1 = new JLabel();
JTextField jTextField1 = new JTextField();
JLabel jLabel2 = new JLabel();
JTextField jTextField2 = new JTextField();
JLabel jLabel3 = new JLabel();
JComboBox jComboBox1 = new JComboBox();
JLabel jLabel4 = new JLabel();
JComboBox jComboBox2 = new JComboBox();
JLabel jLabel5 = new JLabel();
JTextField jTextField3 = new JTextField();
JLabel jLabel6 = new JLabel();
JTextField jTextField4 = new JTextField();
JLabel jLabel7 = new JLabel();
JTextField jTextField5 = new JTextField();
JLabel jLabel8 = new JLabel();
JComboBox jComboBox3 = new JComboBox();
JLabel jLabel9 = new JLabel();
JTextField jTextField6 = new JTextField();
JLabel jLabel10 = new JLabel();
JTextField jTextField7 = new JTextField();
XYLayout xYLayout1 = new XYLayout();
TitledBorder titledBorder1 = new TitledBorder("固定资产信息");
TitledBorder titledBorder2 = new TitledBorder("");
TitledBorder titledBorder3 = new TitledBorder("");
public FrmAsset1() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
getContentPane().setLayout(borderLayout1);
jButton1.setText("jButton1");
jButton2.setText("jButton2");
jButton3.setText("jButton3");
jLabel1.setText("资产编号");
jTextField1.setText("");
jLabel2.setText("资产名称");
jTextField2.setText("");
jLabel3.setText(" 大类");
jPanel1.setLayout(xYLayout1);
jLabel4.setToolTipText("");
jLabel4.setText(" 小类");
jLabel5.setText(" 样式");
jLabel6.setText(" 价格");
jLabel7.setText("购入日期");
jLabel8.setText(" 状态");
jLabel9.setText(" 经手人");
jLabel10.setText(" 备注");
this.setClosable(true);
this.setClosed(true);
this.setIcon(true);
this.setIconifiable(true);
this.setMaximizable(true);
this.setResizable(true);
this.setTitle("固定资产管理");
jPanel1.setBorder(titledBorder1);
jScrollPane1.setBorder(titledBorder2);
jPanel2.setBorder(titledBorder3);
jPanel2.add(jButton1);
jPanel2.add(jButton2);
jPanel2.add(jButton3);
this.getContentPane().add(jPanel2, java.awt.BorderLayout.SOUTH);
jPanel1.add(jComboBox1, new XYConstraints(310, 7, 55, 20));
jPanel1.add(jLabel3, new XYConstraints(260, 7, 55, 20));
jPanel1.add(jTextField2, new XYConstraints(205, 7, 55, 20));
jPanel1.add(jLabel2, new XYConstraints(155, 7, 55, 20));
jPanel1.add(jLabel1, new XYConstraints(40, 7, 55, 20));
jPanel1.add(jLabel4, new XYConstraints(40, 37, 55, 20));
jPanel1.add(jComboBox2, new XYConstraints(90, 37, 55, 20));
jPanel1.add(jTextField4, new XYConstraints(310, 37, 55, 20));
jPanel1.add(jLabel6, new XYConstraints(260, 37, 55, 20));
jPanel1.add(jTextField3, new XYConstraints(205, 37, 55, 20));
jPanel1.add(jLabel5, new XYConstraints(155, 37, 55, 20));
jPanel1.add(jTextField1, new XYConstraints(90, 7, 55, 20));
jPanel1.add(jLabel7, new XYConstraints(40, 67, 55, 20));
jPanel1.add(jTextField5, new XYConstraints(90, 67, 55, 20));
jPanel1.add(jTextField6, new XYConstraints(310, 67, 55, 20));
jPanel1.add(jLabel9, new XYConstraints(260, 67, 55, 20));
jPanel1.add(jComboBox3, new XYConstraints(205, 67, 55, 20));
jPanel1.add(jLabel8, new XYConstraints(155, 67, 55, 20));
jPanel1.add(jLabel10, new XYConstraints(40, 97, 55, 20));
this.getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);
this.getContentPane().add(jPanel3, java.awt.BorderLayout.CENTER);
jPanel3.setLayout(borderLayout2);
jPanel3.add(jScrollPane1, java.awt.BorderLayout.CENTER);
jPanel3.add(jTableHeader1, java.awt.BorderLayout.NORTH);
jScrollPane1.getViewport().add(jTable1);
jPanel1.add(jTextField7, new XYConstraints(90, 97, 275, 20));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -