⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 albumwindow.java

📁 这是一个小旅馆运行程序,很实用也很全面.希望对大家有所启发.
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/** * Copyright 2004, Martin Jungowski * *  This file is part of JHotel. * *  JHotel is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  JHotel is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *   along with JHotel; if not, write to the Free Software *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * * *  */import java.util.*;import java.awt.Frame;public class AlbumWindow extends Frame {	private javax.swing.JLabel jLabel = null;	private javax.swing.JLabel jLabel1 = null;	private javax.swing.JLabel jLabel2 = null;	private javax.swing.JLabel jLabel3 = null;	private javax.swing.JLabel jLabel4 = null;	private javax.swing.JLabel jLabel5 = null;	private javax.swing.JLabel jLabel6 = null;	private javax.swing.JLabel jLabel7 = null;	private javax.swing.JLabel jLabel8 = null;	private javax.swing.JLabel jLabel9 = null;	private javax.swing.JLabel jLabel10 = null;	private javax.swing.JLabel jLabel11 = null;	private javax.swing.JLabel jLabel12 = null;	private javax.swing.JLabel jLabel13 = null;	private javax.swing.JTextField jTextField = null;	private javax.swing.JTextField jTextField1 = null;	private javax.swing.JTextField jTextField2 = null;	private javax.swing.JTextArea jTextArea = null;	private javax.swing.JTextField jTextField4 = null;	private javax.swing.JTextField jTextField5 = null;	private javax.swing.JTextField jTextField6 = null;	private javax.swing.JTextField jTextField7 = null;	private javax.swing.JTextField jTextField8 = null;	private javax.swing.JTextField jTextField9 = null;	private javax.swing.JTextField jTextField10 = null;	private javax.swing.JTextField jTextField11 = null;	private javax.swing.JTextField jTextField12 = null;	private javax.swing.JTextField jTextField13 = null;	private javax.swing.JButton jButton = null;	private javax.swing.JButton jButton1 = null;	private javax.swing.JProgressBar jProgressBar = null;	private javax.swing.JLabel jLabel14 = null;	private AlbumWindow thisWindow;	private Album album;	private ArrayList newEntries = new ArrayList();				private javax.swing.JButton jButton2 = null;	private javax.swing.JButton jButton3 = null;	public AlbumWindow() {		this.thisWindow = this;				initialize();	}	/**	 * This method initializes this	 * 	 * @return void	 */	private void initialize() {		this.setLayout(null);		this.add(getJLabel(), null);		this.add(getJLabel1(), null);		this.add(getJLabel2(), null);		this.add(getJLabel3(), null);		this.add(getJLabel4(), null);		this.add(getJLabel5(), null);		this.add(getJLabel6(), null);		this.add(getJLabel7(), null);		this.add(getJLabel8(), null);		this.add(getJLabel9(), null);		this.add(getJLabel10(), null);		this.add(getJLabel11(), null);		this.add(getJLabel12(), null);		this.add(getJLabel13(), null);		this.add(getJTextField(), null);		this.add(getJTextField1(), null);		this.add(getJTextField2(), null);		this.add(getJTextArea(), null);		this.add(getJTextField4(), null);		this.add(getJTextField5(), null);		this.add(getJTextField6(), null);		this.add(getJTextField7(), null);		this.add(getJTextField8(), null);		this.add(getJTextField9(), null);		this.add(getJTextField10(), null);		this.add(getJTextField11(), null);		this.add(getJTextField12(), null);		this.add(getJTextField13(), null);		this.add(getJButton(), null);		this.add(getJButton1(), null);		this.add(getJProgressBar(), null);		this.add(getJLabel14(), null);		this.add(getJButton2(), null);		this.add(getJButton3(), null);		this.setSize(713, 556);		this.addWindowListener(new java.awt.event.WindowAdapter() { 			public void windowClosing(java.awt.event.WindowEvent e) {    				dispose();			}		});		Album album = new Album(thisWindow);		album.start();		this.album = album;			}	/**	 * This method initializes jLabel	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel() {		if(jLabel == null) {			jLabel = new javax.swing.JLabel();			jLabel.setBounds(220, 33, 244, 21);			jLabel.setText("Lfd. Nummer");		}		return jLabel;	}	/**	 * This method initializes jLabel1	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel1() {		if(jLabel1 == null) {			jLabel1 = new javax.swing.JLabel();			jLabel1.setBounds(220, 67, 244, 21);			jLabel1.setText("Zimmer");		}		return jLabel1;	}	/**	 * This method initializes jLabel2	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel2() {		if(jLabel2 == null) {			jLabel2 = new javax.swing.JLabel();			jLabel2.setBounds(220, 101, 244, 21);			jLabel2.setText("Name, Vorname");		}		return jLabel2;	}	/**	 * This method initializes jLabel3	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel3() {		if(jLabel3 == null) {			jLabel3 = new javax.swing.JLabel();			jLabel3.setBounds(220, 135, 244, 21);			jLabel3.setText("Adresse");		}		return jLabel3;	}	/**	 * This method initializes jLabel4	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel4() {		if(jLabel4 == null) {			jLabel4 = new javax.swing.JLabel();			jLabel4.setBounds(220, 179, 244, 21);			jLabel4.setText("Geburtsdatum");		}		return jLabel4;	}	/**	 * This method initializes jLabel5	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel5() {		if(jLabel5 == null) {			jLabel5 = new javax.swing.JLabel();			jLabel5.setBounds(220, 203, 244, 21);			jLabel5.setText("Geburtsort");		}		return jLabel5;	}	/**	 * This method initializes jLabel6	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel6() {		if(jLabel6 == null) {			jLabel6 = new javax.swing.JLabel();			jLabel6.setBounds(220, 237, 244, 21);			jLabel6.setText("Staatsangeh鰎igkeit");		}		return jLabel6;	}	/**	 * This method initializes jLabel7	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel7() {		if(jLabel7 == null) {			jLabel7 = new javax.swing.JLabel();			jLabel7.setBounds(220, 271, 244, 21);			jLabel7.setText("Beruf, Firma");		}		return jLabel7;	}	/**	 * This method initializes jLabel8	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel8() {		if(jLabel8 == null) {			jLabel8 = new javax.swing.JLabel();			jLabel8.setBounds(220, 305, 244, 21);			jLabel8.setText("Kinder unter 18 Jahren");		}		return jLabel8;	}	/**	 * This method initializes jLabel9	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel9() {		if(jLabel9 == null) {			jLabel9 = new javax.swing.JLabel();			jLabel9.setBounds(220, 339, 244, 21);			jLabel9.setText("Teilnehmer (Gruppe)");		}		return jLabel9;	}	/**	 * This method initializes jLabel10	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel10() {		if(jLabel10 == null) {			jLabel10 = new javax.swing.JLabel();			jLabel10.setBounds(220, 373, 244, 21);			jLabel10.setText("Personalausweis oder Reisepass");		}		return jLabel10;	}	/**	 * This method initializes jLabel11	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel11() {		if(jLabel11 == null) {			jLabel11 = new javax.swing.JLabel();			jLabel11.setBounds(220, 407, 244, 21);			jLabel11.setText("Kraftfahrzeug Kennzeichen");		}		return jLabel11;	}	/**	 * This method initializes jLabel12	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel12() {		if(jLabel12 == null) {			jLabel12 = new javax.swing.JLabel();			jLabel12.setBounds(220, 441, 244, 21);			jLabel12.setText("Ankunft");		}		return jLabel12;	}	/**	 * This method initializes jLabel13	 * 	 * @return javax.swing.JLabel	 */	private javax.swing.JLabel getJLabel13() {		if(jLabel13 == null) {			jLabel13 = new javax.swing.JLabel();			jLabel13.setBounds(220, 475, 244, 21);			jLabel13.setText("Abreise");		}		return jLabel13;	}	/**	 * This method initializes jTextField	 * 	 * @return javax.swing.JTextField	 */	private javax.swing.JTextField getJTextField() {		if(jTextField == null) {			jTextField = new javax.swing.JTextField();			jTextField.setBounds(463, 34, 225, 21);			jTextField.setEditable(false);		}		return jTextField;	}	/**	 * This method initializes jTextField1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -