📄 displayroominfo.java~6~
字号:
package GuestManagement;
import java.awt.*;
import ShowTable.*;
import javax.swing.*;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import hotelinformationmanagesystem.SetFormCenter;
import java.awt.Font;
import javax.swing.event.AncestorEvent;
import javax.swing.event.AncestorListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseAdapter;
/**
* <p>Title: 酒店信息管理系统</p>
*
* <p>Description: The Management Information System of Hotel</p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: JSP</p>
*
* @author 江世澎
* @version 1.0
*/
public class DisplayRoomInfo extends JFrame {
XYLayout xYLayout1 = new XYLayout();
JTable jTable1;
TableExample table = new TableExample();
JScrollPane jScrollPane1 = new JScrollPane();
JLabel jLabel1 = new JLabel();
public DisplayRoomInfo() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
jTable1 = table.createTable();
getContentPane().setLayout(xYLayout1);
this.setResizable(false);
this.setTitle("客人入住的房间信息");
this.setSize(380, 300);
SetFormCenter wcenter = new SetFormCenter();
wcenter.setcenter(this);
xYLayout1.setWidth(374);
xYLayout1.setHeight(263);
jLabel1.addMouseListener(new DisplayRoomInfo_jLabel1_mouseAdapter(this));
this.getContentPane().add(jScrollPane1,
new XYConstraints(3, 3, 368, 231));
this.getContentPane().add(jLabel1, new XYConstraints(316, 239, -1, -1));
jLabel1.setFont(new java.awt.Font("宋体", Font.BOLD, 18));
jLabel1.setText("退出");
jScrollPane1.getViewport().add(jTable1);
table.fetch("Select HIMS_RoomInfo.* from HIMS_Register_CheckInRoom,HIMS_RoomInfo where HIMS_RoomInfo .RoomID in (select RoomName01 from HIMS_Register_CheckInRoom) or HIMS_RoomInfo.RoomID in (select RoomName02 from HIMS_Register_CheckInRoom )or HIMS_RoomInfo.RoomID in (select RoomName03 from HIMS_Register_CheckInRoom ) or HIMS_RoomInfo.RoomID in (select RoomName04 from HIMS_Register_CheckInRoom ) or HIMS_RoomInfo.RoomID in (select RoomName05 from HIMS_Register_CheckInRoom ) or HIMS_RoomInfo.RoomID in (select RoomName06 from HIMS_Register_CheckInRoom ) or HIMS_RoomInfo.RoomID in (select RoomName07 from HIMS_Register_CheckInRoom ) or HIMS_RoomInfo.RoomID in (select RoomName08 from HIMS_Register_CheckInRoom );");
}
public void jLabel1_mouseClicked(MouseEvent e) {
this.setVisible(false);
}
}
class DisplayRoomInfo_jLabel1_mouseAdapter extends MouseAdapter {
private DisplayRoomInfo adaptee;
DisplayRoomInfo_jLabel1_mouseAdapter(DisplayRoomInfo adaptee) {
this.adaptee = adaptee;
}
public void mouseClicked(MouseEvent e) {
adaptee.jLabel1_mouseClicked(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -