些程序用java实现一个装机程序,不过是一个C/S架构,但是在数据库的设计方面与3层架构的构造方案我想对一些朋友还是否有一定的帮助吧
源代码在线查看: diypanel.java~38~
package pcdiysystem.Panel;
import java.awt.*;
import javax.swing.*;
import java.awt.BorderLayout;
import java.lang.Integer;
import pcdiysystem.Panel.ComponentListPanel;
import pcdiysystem.Panel.ProjectPanel;
/**
* Title: 自助装机系统
*
* Description:
*
* Copyright: Copyright (c) 2006
*
* Company:
*
* @author kamiiiyu
* @version 1.0
*/
public class DIYPanel
extends JPanel {
BorderLayout borderLayout1 = new BorderLayout();
JSplitPane sppDIY=new JSplitPane();
ComponentListPanel pnlLeft=new ComponentListPanel();
ProjectPanel pnlRight=new ProjectPanel(pnlLeft);
public DIYPanel() {
try {
jbInit();
}
catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
pnlLeft=new ComponentListPanel(pnlRight);
this.setLayout(borderLayout1);
sppDIY.setDividerLocation((int)(800*0.6));
//sppDIY.setDividerLocation(0.5);
//sppDIY.add(pnlLeft,sppDIY.LEFT);
//sppDIY.add(pnlRight,sppDIY.RIGHT);
this.add(sppDIY, java.awt.BorderLayout.CENTER);
}
}