//Applet1.java:
package chuju;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.util.*;
import com.borland.jbcl.layout.*;
import javax.swing.*;
public class Applet1 extends Applet{
boolean isStandalone = false;
String var0;
String var1;
String var2;
String var3;
String var4;
String var5;
String var6;
String var7;
String var8;
String var9;
String var10;
String var11;
String var12;
String var13;
String var14;
private transient Vector textListeners;
XYLayout xYLayout1 = new XYLayout();
JTextPane jTextPane1 = new JTextPane();
JTextPane jTextPane2 = new JTextPane();
JTextPane jTextPane3 = new JTextPane();
JTextArea jTextArea1 = new JTextArea();
XYLayout xYLayout2 = new XYLayout();
JTextArea jTextArea2 = new JTextArea();
JTextPane jTextPane4 = new JTextPane();
JTextPane jTextPane5 = new JTextPane();
JTextPane jTextPane6 = new JTextPane();
JButton jButton1 = new JButton();
JTextField jTextField1 = new JTextField();
XYLayout xYLayout3 = new XYLayout();
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
JButton jButton2 = new JButton();
JPasswordField jPasswordField1 = new JPasswordField();
/**Get a parameter value*/
public String getParameter(String key, String def) {
return isStandalone ? System.getProperty(key, def) :
(getParameter(key) != null ? getParameter(key) : def);
}
/**Construct the applet*/
public Applet1() {
}
/**Initialize the applet*/
public void init() {
try {
var0 = this.getParameter("param0", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var1 = this.getParameter("param1", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var2 = this.getParameter("param2", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var3 = this.getParameter("param3", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var4 = this.getParameter("param4", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var5 = this.getParameter("param5", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var6 = this.getParameter("param6", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var7 = this.getParameter("param7", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var8 = this.getParameter("param8", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var9 = this.getParameter("param9", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var10 = this.getParameter("param10", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var11 = this.getParameter("param11", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var12 = this.getParameter("param12", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var13 = this.getParameter("param13", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
var14 = this.getParameter("param14", "");
}
catch(Exception e) {
e.printStackTrace();
}
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
/**Component initialization*/
private void jbInit() throws Exception {
jTextPane6.setText("jTextPane1");
jTextPane5.setText("jTextPane2");
jTextPane4.setText("jTextPane3");
jTextArea2.setText("jTextArea1");
jTextArea1.setText("jTextArea1");
jTextPane3.setText("jTextPane3");
jTextPane2.setText("jTextPane2");
jTextPane1.setText("jTextPane1");
jButton1.setText("确定");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton1_actionPerformed(e);
}
});
this.setLayout(xYLayout3);
jLabel1.setText("帐号:");
jLabel2.setText("密码:");
jButton2.setText("取消");
this.add(jLabel1);
this.add(jTextField1);
this.add(jLabel2);
this.add(jButton1);
this.add(jButton2);
this.add(jPasswordField1);
/*
this.add(jLabel1, new XYConstraints(122, 53, 45, -1));
this.add(jTextField1, new XYConstraints(167, 53, 102, -1));
this.add(jLabel2, new XYConstraints(122, 81, 45, -1));
this.add(jButton1, new XYConstraints(122, 118, -1, -1));
this.add(jButton2, new XYConstraints(122, 118, -1, -1));
this.add(jPasswordField1, new XYConstraints(167, 82, 114, -1));
*/ }
/**Get Applet information*/
public String getAppletInfo() {
return "Applet Information";
}
/**Get parameter info*/
public String[][] getParameterInfo() {
String[][] pinfo =
{
{"param0", "String", ""},
{"param1", "String", ""},
{"param2", "String", ""},
{"param3", "String", ""},
{"param4", "String", ""},
{"param5", "String", ""},
{"param6", "String", ""},
{"param7", "String", ""},
{"param8", "String", ""},
{"param9", "String", ""},
{"param10", "String", ""},
{"param11", "String", ""},
{"param12", "String", ""},
{"param13", "String", ""},
{"param14", "String", ""},
};
return pinfo;
}
public synchronized void removeTextListener(TextListener l) {
if (textListeners != null &&
textListeners.contains(l)) {
Vector v = (Vector) textListeners.clone();
v.removeElement(l);
textListeners = v;
}
}
public synchronized void addTextListener(TextListener l) {
Vector v = textListeners == null ? new Vector(2) : (Vector) textListeners.clone();
if (!v.contains(l)) {
v.addElement(l);
textListeners = v;
}
}
protected void fireTextValueChanged(TextEvent e) {
if (textListeners != null) {
Vector listeners = textListeners;
int count = listeners.size();
for (int i = 0;
i < count;
i++) {
((TextListener) listeners.elementAt(i)).textValueChanged(e);
}
}
}
public void textValueChanged(TextEvent e) {
}
void jButton1_actionPerformed(ActionEvent e) {
if (jLabel1.getText()==null){
}else
{
chuju_app2 form21 = new chuju_app2();
//form21.setVisible(true);
form21.show();
//form21.toFront();
}
}
}
----------------------------------------
//chuju_app2.java
package chuju;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import com.borland.jbcl.layout.*;
public class chuju_app2 extends JFrame {
JPanel contentPane;
JMenuBar jMenuBar1 = new JMenuBar();
JMenu jMenuFile = new JMenu();
JMenuItem jMenuFileExit = new JMenuItem();
JMenu jMenuHelp = new JMenu();
JMenuItem jMenuHelpAbout = new JMenuItem();
JToolBar jToolBar = new JToolBar();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JButton jButton3 = new JButton();
ImageIcon image1;
ImageIcon image2;
ImageIcon image3;
JLabel statusBar = new JLabel();
JPanel jPanel1 = new JPanel();
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel3 = new JPanel();
JPanel jPanel4 = new JPanel();
JPanel jPanel2 = new JPanel();
JTabbedPane jTabbedPane1 = new JTabbedPane();
JLabel jLabel3 = new JLabel();
JLabel jLabel4 = new JLabel();
JLabel jLabel7 = new JLabel();
JPanel jPanel5 = new JPanel();
JPanel jPanel6 = new JPanel();
BorderLayout borderLayout4 = new BorderLayout();
JLabel jLabel8 = new JLabel();
JPanel jPanel7 = new JPanel();
JLabel jLabel9 = new JLabel();
JLabel jLabel10 = new JLabel();
JLabel jLabel11 = new JLabel();
JLabel jLabel12 = new JLabel();
JTextField jTextField1 = new JTextField();
JLabel jLabel13 = new JLabel();
JTextField jTextField2 = new JTextField();
JLabel jLabel14 = new JLabel();
JTextField jTextField3 = new JTextField();
JLabel jLabel15 = new JLabel();
JTextField jTextField4 = new JTextField();
JPanel jPanel8 = new JPanel();
JLabel jLabel16 = new JLabel();
String[] petStrings1 = { "吸尘器", "抽油烟机", "电暖器", "热水器", "燃气灶" };
String[] petStrings2 = { "KRP-3", "KRP-2", "NS8", "NS8F", "NF15" };
JComboBox jComboBox1 = new JComboBox(petStrings1);
JComboBox jComboBox2 = new JComboBox(petStrings2);
JLabel jLabel17 = new JLabel();
JPanel jPanel9 = new JPanel();
JLabel jLabel1 = new JLabel();
OperationPanel1 operationPanel1 = new OperationPanel1();
technicPanel TechnicPanel1 = new technicPanel();
InnerPanel innerPanel1 = new InnerPanel();
FitPanel fitPanel1 = new FitPanel();
JButton jButton4 = new JButton();
JButton jButton5 = new JButton();
JButton jButton6 = new JButton();
XYLayout xYLayout1 = new XYLayout();
JMenu jMenu1 = new JMenu();
JMenuItem jMenuItem1 = new JMenuItem();
JMenu jMenu2 = new JMenu();
JMenuItem jMenuItem2 = new JMenuItem();
JMenu jMenu3 = new JMenu();
JMenuItem jMenuItem3 = new JMenuItem();
JMenu jMenu4 = new JMenu();
JMenuItem jMenuItem4 = new JMenuItem();
JMenu jMenu8 = new JMenu();
JMenuItem jMenuItem8 = new JMenuItem();
JMenu jMenu6 = new JMenu();
JMenuItem jMenuItem6 = new JMenuItem();
JMenu jMenu7 = new JMenu();
JMenuItem jMenuItem7 = new JMenuItem();
JMenu jMenu5 = new JMenu();
JMenuItem jMenuItem5 = new JMenuItem();
JMenu jMenu10 = new JMenu();
JMenuItem jMenuItem10 = new JMenuItem();
JMenu jMenu9 = new JMenu();
JMenuItem jMenuItem9 = new JMenuItem();
JMenuItem jMenuItem12 = new JMenuItem();
JMenuItem jMenuItem13 = new JMenuItem();
JMenu jMenu11 = new JMenu();
JMenuItem jMenuItem11 = new JMenuItem();
JMenuItem jMenuItem14 = new JMenuItem();
JMenuItem jMenuItem15 = new JMenuItem();
JMenuItem jMenuItem16 = new JMenuItem();
JMenuItem jMenuItem17 = new JMenuItem();
JMenuItem jMenuItem18 = new JMenuItem();
JMenuItem jMenuItem19 = new JMenuItem();
XYLayout xYLayout2 = new XYLayout();
XYLayout xYLayout3 = new XYLayout();
XYLayout xYLayout4 = new XYLayout();
XYLayout xYLayout5 = new XYLayout();
XYLayout xYLayout6 = new XYLayout();
XYLayout xYLayout7 = new XYLayout();
XYLayout xYLayout8 = new XYLayout();
/**Construct the frame*/
public chuju_app2() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
/**Component initialization*/
private void jbInit() throws Exception {
image1 = new ImageIcon(chuju.chuju_app2.class.getResource("openFile.gif"));
image2 = new ImageIcon(chuju.chuju_app2.class.getResource("closeFile.gif"));
image3 = new ImageIcon(chuju.chuju_app2.class.getResource("help.gif"));
//setIconImage(Toolkit.getDefaultToolkit().createImage(chuju_app2.class.getResource("[Your Icon]")));
contentPane = (JPanel) this.getContentPane();
contentPane.setLayout(borderLayout1);
this.setSize(new Dimension(625, 474));
this.setState(Frame.ICONIFIED);
this.setTitle("厨具出口公司信息管理系统");
statusBar.setText(" ");
jMenuFile.setText("系统管理");
jMenuFileExit.setText("Exit");
jMenuFileExit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jMenuFileExit_actionPerformed(e);
}
});
jMenuHelp.setText("Help");
jMenuHelpAbout.setText("About");
jMenuHelpAbout.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jMenuHelpAbout_actionPerformed(e);
}
});
jButton1.setIcon(image1);
jButton1.setToolTipText("Open File");
jButton2.setIcon(image2);
jButton2.setToolTipText("Close File");
jButton3.setIcon(image3);
jButton3.setToolTipText("Help");
jPanel1.setLayout(xYLayout2);
jPanel4.setLayout(xYLayout4);
jLabel3.setText("jLabel3");
jLabel4.setText("jLabel4");
jLabel7.setText("jLabel7");
jPanel3.setLayout(borderLayout4);
jLabel8.setText("注:");
jLabel9.setText("3、工厂提供1%免费配件或0.5%整机,超出部分需收费。");
jLabel10.setText("2、功率是实际生产的额定功率,一般误差是+5%-10%,请务必准确填写。如标称功率和实际功率不一致,请注明。");
jLabel11.setText("1、同一型号不同颜色可以填写在一张表格上;如不同型号,必须分开填写。");
jPanel7.setLayout(xYLayout6);
jPanel5.setLayout(xYLayout5);
jLabel12.setText("业务:");
jLabel13.setText("审核:");
jTextField2.setText("欧阳锋");
jLabel14.setText("批准:");
jTextField3.setText("张无忌");
jLabel15.setText("统计:");
jTextField4.setText("阿紫");
jTextField1.setText("张三丰");
jPanel2.setLayout(xYLayout3);
jLabel16.setText("产品名称:");
jLabel17.setText("产品型号:");
jLabel1.setFont(new java.awt.Font("SansSerif", 1, 20));
jLabel1.setText("厨具出口公司预排产通知单");
jButton4.setText("提交");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton4_actionPerformed(e);
}
});
jButton5.setText("保存");
jButton6.setText("审核");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton6_actionPerformed(e);
}
});
jPanel8.setLayout(xYLayout1);
jMenu1.setText("元件管理");
jMenuItem1.setText("新增元件");
jMenu2.setText("产品管理");
jMenuItem2.setText("新增 产品");
jMenu3.setText("预排产");
jMenuItem3.setText("填写预排产单");
jMenu4.setText("报检与报关");
jMenuItem4.setText("报检 ");
jMenu8.setText("认证管理");
jMenuItem8.setText("认证进度表");
jMenu6.setText("发货管理");
jMenuItem6.setText("发货");
jMenu7.setText("单证管理");
jMenuItem7.setText("单证");
jMenu5.setText("生产管理");
jMenuItem5.setText("生产进度表");
jMenu10.setText("客户关系");
jMenuItem10.setText("报检 ");
jMenu9.setText("样板机管理");
jMenuItem9.setText("报检 ");
jMenuItem12.setText("系统备份");
jMenuItem13.setText("系统日志");
jMenu11.setText("用户管理");
jMenuItem11.setText("用户新增");
jMenuItem14.setText("编辑用户基本信息");
jMenuItem15.setText("用户授权");
jMenuItem16.setText("工作组");
jMenuItem17.setText("认证申请");
jMenuItem18.setText("库存");
jMenuItem19.setText("生产日报表");
jPanel9.setLayout(xYLayout7);
jPanel6.setLayout(xYLayout8);
jToolBar.add(jButton1);
jToolBar.add(jButton2);
jToolBar.add(jButton3);
jMenuFile.add(jMenu11);
jMenuFile.add(jMenuItem12);
jMenuFile.add(jMenuItem13);
jMenuFile.add(jMenuFileExit);
jMenuHelp.add(jMenuHelpAbout);
jMenuBar1.add(jMenuFile);
jMenuBar1.add(jMenu1);
jMenuBar1.add(jMenu2);
jMenuBar1.add(jMenu3);
jMenuBar1.add(jMenu4);
jMenuBar1.add(jMenu8);
jMenuBar1.add(jMenu6);
jMenuBar1.add(jMenu7);
jMenuBar1.add(jMenu5);
jMenuBar1.add(jMenuHelp);
jMenuBar1.add(jMenu10);
jMenuBar1.add(jMenu9);
this.setJMenuBar(jMenuBar1);
contentPane.add(jToolBar, BorderLayout.NORTH);
contentPane.add(statusBar, BorderLayout.SOUTH);
contentPane.add(jPanel1, BorderLayout.CENTER);
jPanel1.add(jPanel3, new XYConstraints(0, 314, 625, -1));
jPanel3.add(jPanel6, BorderLayout.NORTH);
jPanel6.add(jLabel12, new XYConstraints(53, 10, -1, -1));
jPanel6.add(jTextField1, new XYConstraints(94, 8, -1, -1));
jPanel6.add(jLabel13, new XYConstraints(139, 10, -1, -1));
jPanel6.add(jTextField2, new XYConstraints(180, 8, -1, -1));
jPanel6.add(jLabel14, new XYConstraints(225, 10, -1, -1));
jPanel6.add(jTextField3, new XYConstraints(266, 8, -1, -1));
jPanel6.add(jLabel15, new XYConstraints(311, 10, -1, -1));
jPanel6.add(jTextField4, new XYConstraints(352, 8, -1, -1));
jPanel6.add(jButton4, new XYConstraints(385, 5, -1, -1));
jPanel6.add(jButton5, new XYConstraints(449, 5, -1, -1));
jPanel6.add(jButton6, new XYConstraints(513, 5, -1, -1));
jPanel3.add(jPanel5, BorderLayout.CENTER);
jPanel5.add(jLabel8, new XYConstraints(0, 0, -1, -1));
jPanel3.add(jPanel7, BorderLayout.SOUTH);
jPanel7.add(jLabel11, new XYConstraints(0, 0, 625, -1));
jPanel7.add(jLabel10, new XYConstraints(0, 18, 625, -1));
jPanel7.add(jLabel9, new XYConstraints(0, 36, 625, -1));
jPanel1.add(jPanel4, new XYConstraints(0, 61, 625, 253));
jPanel4.add(jTabbedPane1, new XYConstraints(0, 0, 625, -1));
jTabbedPane1.add(operationPanel1, "业务信息");
jTabbedPane1.add(TechnicPanel1, "技术参数");
jTabbedPane1.add(innerPanel1, "包装箱及印刷说明");
jTabbedPane1.add(fitPanel1, "配件");
jPanel1.add(jPanel2, new XYConstraints(0, 0, 625, -1));
jPanel8.add(jLabel16, new XYConstraints(6, 0, -1, -1));
jPanel8.add(jComboBox1, new XYConstraints(71, 0, -1, -1));
jPanel8.add(jLabel17, new XYConstraints(152, 0, -1, -1));
jPanel8.add(jComboBox2, new XYConstraints(217, 0, -1, -1));
jPanel2.add(jPanel9, new XYConstraints(0, 0, 625, -1));
jPanel9.add(jLabel1, new XYConstraints(188, 5, -1, -1));
jPanel2.add(jPanel8, new XYConstraints(0, 39, 625, -1));
jMenu1.add(jMenuItem1);
jMenu2.add(jMenuItem2);
jMenu3.add(jMenuItem3);
jMenu4.add(jMenuItem4);
jMenu8.add(jMenuItem8);
jMenu8.add(jMenuItem17);
jMenu6.add(jMenuItem6);
jMenu6.add(jMenuItem18);
jMenu7.add(jMenuItem7);
jMenu5.add(jMenuItem5);
jMenu5.add(jMenuItem19);
jMenu10.add(jMenuItem10);
jMenu9.add(jMenuItem9);
jMenu11.add(jMenuItem11);
jMenu11.add(jMenuItem14);
jMenu11.add(jMenuItem15);
jMenu11.add(jMenuItem16);
}
/**File | Exit action performed*/
public void jMenuFileExit_actionPerformed(ActionEvent e) {
System.exit(0);
}
/**Help | About action performed*/
public void jMenuHelpAbout_actionPerformed(ActionEvent e) {
chuju_app2_AboutBox dlg = new chuju_app2_AboutBox(this);
Dimension dlgSize = dlg.getPreferredSize();
Dimension frmSize = getSize();
Point loc = getLocation();
dlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);
dlg.setModal(true);
dlg.show();
}
/**Overridden so we can exit when window is closed*/
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
jMenuFileExit_actionPerformed(null);
}
}
void jButton6_actionPerformed(ActionEvent e) {
}
void jButton4_actionPerformed(ActionEvent e) {
this.jPanel1.remove(1);
this.repaint();
}
}
--------------------------------------------------------------------------
package chuju;
import java.awt.*;
import javax.swing.*;
import com.borland.jbcl.layout.*;
/**
* Title: ChuJu
* Description:
* Copyright: Copyright (c) 2002
* Company: mondi
* @author niexq
* @version 1.0
*/
public class OperationPanel1 extends JPanel {
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
JPanel jPanel2 = new JPanel();
JTextField jTextField6 = new JTextField();
JTextField jTextField5 = new JTextField();
JTextField jTextField4 = new JTextField();
JTextField jTextField3 = new JTextField();
JTextField jTextField2 = new JTextField();
JTextField jTextField1 = new JTextField();
XYLayout xYLayout1 = new XYLayout();
JLabel jLabel6 = new JLabel();
JLabel jLabel5 = new JLabel();
JLabel jLabel4 = new JLabel();
JLabel jLabel3 = new JLabel();
JLabel jLabel7 = new JLabel();
JLabel jLabel8 = new JLabel();
JPanel jPanel3 = new JPanel();
JLabel jLabel15 = new JLabel();
JLabel jLabel14 = new JLabel();
JLabel jLabel12 = new JLabel();
JLabel jLabel11 = new JLabel();
JLabel jLabel16 = new JLabel();
JLabel jLabel17 = new JLabel();
JLabel jLabel13 = new JLabel();
JLabel jLabel18 = new JLabel();
XYLayout xYLayout2 = new XYLayout();
JTextField jTextField19 = new JTextField();
JTextField jTextField18 = new JTextField();
JTextField jTextField17 = new JTextField();
JTextField jTextField16 = new JTextField();
JTextField jTextField15 = new JTextField();
JTextField jTextField14 = new JTextField();
JTextField jTextField13 = new JTextField();
JTextField jTextField12 = new JTextField();
JTextField jTextField11 = new JTextField();
JTextField jTextField10 = new JTextField();
JTextField jTextField114 = new JTextField();
JTextField jTextField113 = new JTextField();
JTextField jTextField112 = new JTextField();
JTextField jTextField111 = new JTextField();
JTextField jTextField25 = new JTextField();
JTextField jTextField110 = new JTextField();
JTextField jTextField24 = new JTextField();
JTextField jTextField23 = new JTextField();
JTextField jTextField22 = new JTextField();
JTextField jTextField21 = new JTextField();
JTextField jTextField20 = new JTextField();
JTextField jTextField9 = new JTextField();
JTextField jTextField8 = new JTextField();
JTextField jTextField7 = new JTextField();
JTextField jTextField115 = new JTextField();
JTextField jTextField116 = new JTextField();
JTextField jTextField117 = new JTextField();
JTextField jTextField118 = new JTextField();
JTextField jTextField119 = new JTextField();
JTextField jTextField26 = new JTextField();
JTextField jTextField27 = new JTextField();
JTextField jTextField28 = new JTextField();
public OperationPanel1() {
try {
jbInit();
}
catch(Exception ex) {
ex.printStackTrace();
}
}
void jbInit() throws Exception {
this.setLayout(borderLayout1);
jLabel6.setText("合同号:");
jLabel5.setText("批次号:");
jLabel4.setText("销售地区:");
jLabel3.setText("认证标准:");
jLabel7.setText("商标:");
jLabel8.setText("客户:");
jPanel3.setLayout(xYLayout1);
jPanel2.setLayout(xYLayout2);
jLabel15.setText("完成日期");
jLabel14.setText("产品编码");
jLabel12.setDisplayedMnemonic('0');
jLabel12.setText("客商型号");
jLabel11.setText("本厂型号");
jLabel16.setText("功率电压");
jLabel17.setText("数量");
jLabel13.setText("颜色");
jLabel13.setDisplayedMnemonic('0');
jLabel18.setText("验货安排");
this.add(jPanel1, BorderLayout.NORTH);
jPanel3.add(jTextField5, new XYConstraints(494, 1, 115, -1));
jPanel3.add(jLabel6, new XYConstraints(443, 1, 60, -1));
jPanel3.add(jTextField3, new XYConstraints(278, 1, 159, -1));
jPanel3.add(jLabel4, new XYConstraints(217, 1, -1, -1));
jPanel3.add(jTextField2, new XYConstraints(39, 1, 159, -1));
jPanel3.add(jLabel8, new XYConstraints(3, 1, 60, -1));
jPanel3.add(jTextField6, new XYConstraints(494, 24, 115, -1));
jPanel3.add(jLabel5, new XYConstraints(443, 24, -1, -1));
jPanel3.add(jLabel3, new XYConstraints(217, 24, -1, -1));
jPanel3.add(jTextField1, new XYConstraints(39, 24, 159, -1));
jPanel3.add(jLabel7, new XYConstraints(3, 24, -1, -1));
jPanel3.add(jTextField4, new XYConstraints(278, 24, 159, -1));
this.add(jPanel2, BorderLayout.CENTER);
jPanel1.add(jPanel3, null);
jPanel2.add(jLabel15, new XYConstraints(7, 5, 64, -1));
jPanel2.add(jLabel12, new XYConstraints(72, 5, 96, -1));
jPanel2.add(jLabel11, new XYConstraints(261, 5, 96, -1));
jPanel2.add(jLabel16, new XYConstraints(358, 5, 83, -1));
jPanel2.add(jLabel17, new XYConstraints(442, 5, 39, -1));
jPanel2.add(jLabel13, new XYConstraints(482, 5, 63, -1));
jPanel2.add(jLabel18, new XYConstraints(546, 5, 71, -1));
jPanel2.add(jTextField18, new XYConstraints(72, 50, 96, -1));
jPanel2.add(jTextField12, new XYConstraints(7, 27, 64, -1));
jPanel2.add(jTextField11, new XYConstraints(72, 27, 96, -1));
jPanel2.add(jTextField8, new XYConstraints(169, 27, 91, -1));
jPanel2.add(jTextField10, new XYConstraints(261, 27, 96, -1));
jPanel2.add(jTextField7, new XYConstraints(358, 27, 83, -1));
jPanel2.add(jTextField25, new XYConstraints(358, 72, 83, -1));
jPanel2.add(jTextField22, new XYConstraints(358, 50, 83, -1));
jPanel2.add(jTextField19, new XYConstraints(261, 50, 96, -1));
jPanel2.add(jTextField114, new XYConstraints(261, 72, 96, -1));
jPanel2.add(jTextField21, new XYConstraints(169, 50, 91, -1));
jPanel2.add(jTextField24, new XYConstraints(169, 72, 91, -1));
jPanel2.add(jTextField113, new XYConstraints(72, 72, 96, -1));
jPanel2.add(jTextField112, new XYConstraints(7, 72, 64, -1));
jPanel2.add(jTextField17, new XYConstraints(7, 50, 64, -1));
jPanel2.add(jTextField9, new XYConstraints(442, 27, 39, -1));
jPanel2.add(jTextField20, new XYConstraints(442, 50, 39, -1));
jPanel2.add(jTextField23, new XYConstraints(442, 72, 39, -1));
jPanel2.add(jTextField13, new XYConstraints(482, 27, 63, -1));
jPanel2.add(jTextField16, new XYConstraints(482, 50, 63, -1));
jPanel2.add(jTextField111, new XYConstraints(482, 72, 63, -1));
jPanel2.add(jTextField110, new XYConstraints(546, 72, 71, -1));
jPanel2.add(jTextField14, new XYConstraints(546, 27, 71, -1));
jPanel2.add(jTextField15, new XYConstraints(546, 50, 71, -1));
jPanel2.add(jLabel14, new XYConstraints(169, 5, 91, -1));
jPanel2.add(jTextField115, new XYConstraints(261, 95, 96, -1));
jPanel2.add(jTextField26, new XYConstraints(358, 95, 83, -1));
jPanel2.add(jTextField28, new XYConstraints(442, 95, 39, -1));
jPanel2.add(jTextField118, new XYConstraints(482, 95, 63, -1));
jPanel2.add(jTextField119, new XYConstraints(546, 95, 71, -1));
jPanel2.add(jTextField117, new XYConstraints(7, 95, 64, -1));
jPanel2.add(jTextField116, new XYConstraints(72, 95, 96, -1));
jPanel2.add(jTextField27, new XYConstraints(169, 95, 91, -1));
}
}
--------------------------------------------------------------------------
//Frame1.java
package chuju;
import java.awt.*;
import javax.swing.*;
import com.borland.jbcl.layout.*;
import com.borland.dbswing.*;
import com.borland.dx.dataset.*;
import com.borland.dx.sql.dataset.*;
/**
* Title: ChuJu
* Description:
* Copyright: Copyright (c) 2002
* Company: mondi
* @author lzy
* @version 1.0
*/
public class Frame1 extends JFrame {
XYLayout xYLayout1 = new XYLayout();
TableDataSet tableDataSet1 = new TableDataSet();
Column column1 = new Column();
Column asfd = new Column();
Column dd3 = new Column();
Column ddd = new Column();
Column dn5 = new Column();
JdbTable jdbTable1 = new JdbTable();
QueryDataSet queryDataSet1 = new QueryDataSet();
public Frame1() {
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
private void jbInit() throws Exception {
this.getContentPane().setLayout(xYLayout1);
asfd.setColumnName("NewColumn1");
asfd.setDataType(com.borland.dx.dataset.Variant.STRING);
asfd.setPreferredOrdinal(0);
asfd.setServerColumnName("NewColumn1");
asfd.setSqlType(0);
dd3.setColumnName("NewColumn2");
dd3.setDataType(com.borland.dx.dataset.Variant.STRING);
dd3.setPreferredOrdinal(1);
dd3.setServerColumnName("NewColumn2");
dd3.setSqlType(0);
ddd.setColumnName("NewColumn3");
ddd.setDataType(com.borland.dx.dataset.Variant.STRING);
ddd.setPreferredOrdinal(2);
ddd.setServerColumnName("NewColumn3");
ddd.setSqlType(0);
dn5.setColumnName("NewColumn4");
dn5.setDataType(com.borland.dx.dataset.Variant.STRING);
dn5.setPreferredOrdinal(3);
dn5.setServerColumnName("NewColumn4");
dn5.setSqlType(0);
tableDataSet1.setColumns(new Column[] {asfd, dd3, ddd, dn5});
jdbTable1.setDataSet(tableDataSet1);
this.getContentPane().add(jdbTable1, new XYConstraints(64, 40, 313, 230));
}
}
-----------------------------------------------------
上面这几个程序都要编译后才能运行。你看看吧。