些程序用java实现一个装机程序,不过是一个C/S架构,但是在数据库的设计方面与3层架构的构造方案我想对一些朋友还是否有一定的帮助吧

源代码在线查看: frame1.java~7~

软件大小: 2236 K
上传用户: taiyubao
关键词: java 程序 架构 数据库
下载地址: 免注册下载 普通下载 VIP

相关代码

				package pcdiysystem;
				
				import java.awt.*;
				import javax.swing.*;
				import java.awt.BorderLayout;
				import java.awt.Rectangle;
				import java.awt.event.ActionEvent;
				import java.awt.event.ActionListener;
				import java.awt.event.MouseEvent;
				import java.awt.event.MouseMotionAdapter;
				import java.beans.PropertyChangeEvent;
				import java.beans.PropertyChangeListener;
				import java.awt.event.FocusEvent;
				import java.awt.event.FocusAdapter;
				
				/**
				 * Title: 自助装机系统
				 *
				 * Description: 
				 *
				 * Copyright: Copyright (c) 2006
				 *
				 * Company: 
				 *
				 * @author kamiiiyu
				 * @version 1.0
				 */
				public class Frame1
				    extends JFrame {
				  public Frame1() {
				    try {
				      jbInit();
				    }
				    catch (Exception exception) {
				      exception.printStackTrace();
				    }
				  }
				
				  private void jbInit() throws Exception {
				    getContentPane().setLayout(null);
				    tabProjectData.setBounds(new Rectangle(126, 168, 0, 0));
				    tabProjectData.addPropertyChangeListener(new
				                                             Frame1_tabProjectData_propertyChangeAdapter(this));
				    tabProjectData.addMouseMotionListener(new Frame1_jTable1_mouseMotionAdapter(this));
				    txtProjectName.setText("jTextField1");
				    txtProjectName.setBounds(new Rectangle(124, 248, 77, 20));
				    txtProjectName.addFocusListener(new Frame1_txtProjectName_focusAdapter(this));
				    txtProjectName.addActionListener(new Frame1_txtProjectName_actionAdapter(this));
				    jButton1.setBounds(new Rectangle(104, 83, 81, 23));
				    jButton1.setText("jButton1");
				    this.getContentPane().add(tabProjectData);
				    this.getContentPane().add(txtProjectName);
				    this.getContentPane().add(jButton1);
				  }
				
				  JTable tabProjectData = new JTable();
				  JTextField txtProjectName = new JTextField();
				  JButton jButton1 = new JButton();
				  public void txtProjectName_actionPerformed(ActionEvent e) {
				
				  }
				
				  public void jTable1_mouseMoved(MouseEvent e) {
				
				  }
				
				  public void tabProjectData_propertyChange(PropertyChangeEvent evt) {
				
				  }
				
				  public void txtProjectName_focusGained(FocusEvent e) {
				
				  }
				}
				
				class Frame1_jTable1_mouseMotionAdapter
				    extends MouseMotionAdapter {
				  private Frame1 adaptee;
				  Frame1_jTable1_mouseMotionAdapter(Frame1 adaptee) {
				    this.adaptee = adaptee;
				  }
				
				  public void mouseMoved(MouseEvent e) {
				    adaptee.jTable1_mouseMoved(e);
				  }
				}
				
				class Frame1_tabProjectData_propertyChangeAdapter
				    implements PropertyChangeListener {
				  private Frame1 adaptee;
				  Frame1_tabProjectData_propertyChangeAdapter(Frame1 adaptee) {
				    this.adaptee = adaptee;
				  }
				
				  public void propertyChange(PropertyChangeEvent evt) {
				    adaptee.tabProjectData_propertyChange(evt);
				  }
				}
				
				class Frame1_txtProjectName_actionAdapter
				    implements ActionListener {
				  private Frame1 adaptee;
				  Frame1_txtProjectName_actionAdapter(Frame1 adaptee) {
				    this.adaptee = adaptee;
				  }
				
				  public void actionPerformed(ActionEvent e) {
				    adaptee.txtProjectName_actionPerformed(e);
				  }
				}
				
				class Frame1_txtProjectName_focusAdapter
				    extends FocusAdapter {
				  private Frame1 adaptee;
				  Frame1_txtProjectName_focusAdapter(Frame1 adaptee) {
				    this.adaptee = adaptee;
				  }
				
				  public void focusGained(FocusEvent e) {
				    adaptee.txtProjectName_focusGained(e);
				  }
				}
							

相关资源