📄 roomsearch.java~8~
字号:
package com.room;import javax.swing.*;import com.borland.jbcl.layout.*;import java.awt.*;import java.util.Vector;import java.sql.*;import com.dbmanage.*;import javax.swing.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class RoomSearch extends JPanel { XYLayout xYLayout1 = new XYLayout(); JLabel jLabel1 = new JLabel(); JLabel jLabel2 = new JLabel(); JTextField jTextField1 = new JTextField(); JScrollPane jScrollPane1 = new JScrollPane(); JTable jTable1 = new JTable(); private String RoomNo; //房间识别号 private String searchRoomNo; private int CustNo;// 住宿人数 private String outPut; JButton jButton1 = new JButton();//输出结果 Vector searchList = new Vector(); public RoomSearch() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { jLabel1.setFont(new java.awt.Font("SansSerif", 1, 22)); jLabel1.setForeground(SystemColor.desktop); jLabel1.setToolTipText(""); jLabel1.setHorizontalAlignment(SwingConstants.CENTER); jLabel1.setHorizontalTextPosition(SwingConstants.TRAILING); jLabel1.setText("宾馆客房查询"); this.setEnabled(false); this.addAncestorListener(new RoomSearch_this_ancestorAdapter(this)); this.setLayout(xYLayout1); jLabel2.setFont(new java.awt.Font("Dialog", 1, 15)); jLabel2.setForeground(SystemColor.desktop); jLabel2.setHorizontalAlignment(SwingConstants.CENTER); jLabel2.setHorizontalTextPosition(SwingConstants.TRAILING); jLabel2.setText("请输入房间号"); jTextField1.setText("jTextField1"); xYLayout1.setWidth(503); xYLayout1.setHeight(480); jButton1.setFont(new java.awt.Font("SansSerif", 1, 15)); jButton1.setForeground(SystemColor.desktop); jButton1.setHorizontalAlignment(SwingConstants.CENTER); jButton1.setText("查询"); this.add(jTextField1, new XYConstraints(212, 136, 104, 41)); this.add(jLabel2, new XYConstraints(29, 134, 155, 43)); this.add(jLabel1, new XYConstraints(172, 31, 185, 67)); this.add(jScrollPane1, new XYConstraints(95, 221, 286, 167)); this.add(jButton1, new XYConstraints(364, 135, 93, 44)); jScrollPane1.getViewport().add(jTable1, null); } void this_ancestorAdded(AncestorEvent e) { }}//end publicclass RoomSearch_this_ancestorAdapter implements javax.swing.event.AncestorListener { RoomSearch adaptee; RoomSearch_this_ancestorAdapter(RoomSearch adaptee) { this.adaptee = adaptee; } public void ancestorAdded(AncestorEvent e) { adaptee.this_ancestorAdded(e); } public void ancestorRemoved(AncestorEvent e) { } public void ancestorMoved(AncestorEvent e) { }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -