Sei sulla pagina 1di 47

/*

* To change this license header, choose License Headers in Project Properties.


* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package jprojecthm;

import java.sql.Statement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
/**
*
* @author sys29
*/
public class Hotel_Management extends javax.swing.JFrame {

/**
* Creates new form Hotel_Management
*/
public Hotel_Management() {
initComponents();
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

JFMain = new javax.swing.JFrame();


JBCustomer = new javax.swing.JButton();
JBFacilities = new javax.swing.JButton();
JBType = new javax.swing.JButton();
JBTransaction = new javax.swing.JButton();
jLabel13 = new javax.swing.JLabel();
JFCustomer = new javax.swing.JFrame();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
JTCustID = new javax.swing.JTextField();
JTName = new javax.swing.JTextField();
JTAddress = new javax.swing.JTextField();
JTMobile = new javax.swing.JTextField();
JTArrival = new javax.swing.JTextField();
JTDeparture = new javax.swing.JTextField();
JCSearch = new javax.swing.JButton();
JCCustomer = new javax.swing.JButton();
JCUpdate = new javax.swing.JButton();
JCDelete = new javax.swing.JButton();
JCBack = new javax.swing.JButton();
JCReset = new javax.swing.JButton();
jLabel11 = new javax.swing.JLabel();
jlresult = new javax.swing.JLabel();
JTType = new javax.swing.JComboBox();
jLabel12 = new javax.swing.JLabel();
JFTypeOfRoom = new javax.swing.JFrame();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
JRType = new javax.swing.JTextField();
JRName = new javax.swing.JTextField();
JRCost = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jButton5 = new javax.swing.JButton();
jButton6 = new javax.swing.JButton();
jLabel17 = new javax.swing.JLabel();
JFFacilities = new javax.swing.JFrame();
jLabel18 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
jLabel20 = new javax.swing.JLabel();
JFId = new javax.swing.JTextField();
JFName = new javax.swing.JTextField();
JFCost = new javax.swing.JTextField();
jButton7 = new javax.swing.JButton();
jButton8 = new javax.swing.JButton();
jButton9 = new javax.swing.JButton();
jButton10 = new javax.swing.JButton();
jButton11 = new javax.swing.JButton();
jButton12 = new javax.swing.JButton();
jLabel21 = new javax.swing.JLabel();
JFNewUser = new javax.swing.JFrame();
jLabel22 = new javax.swing.JLabel();
jLabel23 = new javax.swing.JLabel();
JNUser = new javax.swing.JTextField();
JNCheck = new javax.swing.JTextField();
JNPass = new javax.swing.JPasswordField();
jButton14 = new javax.swing.JButton();
jButton16 = new javax.swing.JButton();
jLabel25 = new javax.swing.JLabel();
jButton17 = new javax.swing.JButton();
JFTransaction = new javax.swing.JFrame();
jLabel26 = new javax.swing.JLabel();
jLabel27 = new javax.swing.JLabel();
jLabel28 = new javax.swing.JLabel();
jLabel29 = new javax.swing.JLabel();
jLabel30 = new javax.swing.JLabel();
jLabel31 = new javax.swing.JLabel();
jLabel32 = new javax.swing.JLabel();
jLabel33 = new javax.swing.JLabel();
JTrCID = new javax.swing.JTextField();
JTrName = new javax.swing.JTextField();
JTrIN = new javax.swing.JTextField();
JTrOUT = new javax.swing.JTextField();
JTrRA = new javax.swing.JTextField();
JTrAmount = new javax.swing.JTextField();
JTrMOP = new javax.swing.JComboBox();
jScrollPane1 = new javax.swing.JScrollPane();
JTrFeed = new javax.swing.JTextArea();
jLabel34 = new javax.swing.JLabel();
JTrBill = new javax.swing.JButton();
jButton19 = new javax.swing.JButton();
jLabel35 = new javax.swing.JLabel();
JTrNOD = new javax.swing.JTextField();
jLabel36 = new javax.swing.JLabel();
JTrTID = new javax.swing.JTextField();
JTrSelect = new javax.swing.JButton();
jButton18 = new javax.swing.JButton();
jButton20 = new javax.swing.JButton();
jButton21 = new javax.swing.JButton();
JTrAmt = new javax.swing.JTextField();
jlroom = new javax.swing.JLabel();
jLabel37 = new javax.swing.JLabel();
JTrFac = new javax.swing.JTextField();
JTrBack = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
JTUser = new javax.swing.JTextField();
JBLogin = new javax.swing.JButton();
jButton13 = new javax.swing.JButton();
jLabel24 = new javax.swing.JLabel();
jButton15 = new javax.swing.JButton();
JTPass = new javax.swing.JPasswordField();

JFMain.setTitle("HOMEPAGE");
JFMain.setBounds(new java.awt.Rectangle(6, 6, 500, 400));

JBCustomer.setText("CUSTOMER DETAILS");
JBCustomer.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JBCustomerActionPerformed(evt);
}
});

JBFacilities.setText("FACILITIES");
JBFacilities.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JBFacilitiesActionPerformed(evt);
}
});

JBType.setText("TYPE OF ROOM");
JBType.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JBTypeActionPerformed(evt);
}
});

JBTransaction.setText("TRANSACTION");
JBTransaction.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JBTransactionActionPerformed(evt);
}
});

jLabel13.setFont(new java.awt.Font("Cooper Black", 1, 18)); // NOI18N


jLabel13.setText("SELECT A CATEGORY");

javax.swing.GroupLayout JFMainLayout = new javax.swing.GroupLayout(JFMain.getContentPane());


JFMain.getContentPane().setLayout(JFMainLayout);
JFMainLayout.setHorizontalGroup(
JFMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFMainLayout.createSequentialGroup()
.addGap(123, 123, 123)
.addGroup(JFMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(JBFacilities, javax.swing.GroupLayout.DEFAULT_SIZE, 202,
Short.MAX_VALUE)
.addComponent(JBType, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
.addComponent(JBTransaction, javax.swing.GroupLayout.DEFAULT_SIZE, 202,
Short.MAX_VALUE)
.addComponent(JBCustomer, javax.swing.GroupLayout.DEFAULT_SIZE, 202,
Short.MAX_VALUE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JFMainLayout.createSequentialGroup()
.addContainerGap(110, Short.MAX_VALUE)
.addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 234,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(108, 108, 108))
);
JFMainLayout.setVerticalGroup(
JFMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFMainLayout.createSequentialGroup()
.addGap(27, 27, 27)
.addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38,
Short.MAX_VALUE)
.addComponent(JBCustomer, javax.swing.GroupLayout.PREFERRED_SIZE, 47,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(JBFacilities, javax.swing.GroupLayout.PREFERRED_SIZE, 47,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(JBType, javax.swing.GroupLayout.PREFERRED_SIZE, 47,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(JBTransaction, javax.swing.GroupLayout.PREFERRED_SIZE, 47,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(36, 36, 36))
);

JFCustomer.setBounds(new java.awt.Rectangle(5, 5, 600, 600));

jLabel4.setFont(new java.awt.Font("Cooper Black", 1, 24)); // NOI18N


jLabel4.setText("CUSTOMER DETAILS");

jLabel5.setText("CUSTOMER ID");

jLabel6.setText("CUSTOMER NAME");

jLabel7.setText("MOBILE NO");

jLabel8.setText("ADDRESS");

jLabel9.setText("DEPARTURE");
jLabel10.setText("ARRIVAL");

JTMobile.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JTMobileActionPerformed(evt);
}
});

JTArrival.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JTArrivalActionPerformed(evt);
}
});

JTDeparture.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JTDepartureActionPerformed(evt);
}
});

JCSearch.setText("SEARCH");
JCSearch.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JCSearchActionPerformed(evt);
}
});

JCCustomer.setText("ADD CUSTOMER");
JCCustomer.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JCCustomerActionPerformed(evt);
}
});

JCUpdate.setText("UPDATE");
JCUpdate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JCUpdateActionPerformed(evt);
}
});

JCDelete.setText("DELETE");
JCDelete.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JCDeleteActionPerformed(evt);
}
});
JCBack.setText("BACK TO MENU");
JCBack.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JCBackActionPerformed(evt);
}
});

JCReset.setText("RESET");
JCReset.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JCResetActionPerformed(evt);
}
});

jLabel11.setText("ROOM TYPE");

JTType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Suite", "Deluxe", "AC",


"Non AC" }));

javax.swing.GroupLayout JFCustomerLayout = new


javax.swing.GroupLayout(JFCustomer.getContentPane());
JFCustomer.getContentPane().setLayout(JFCustomerLayout);
JFCustomerLayout.setHorizontalGroup(
JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFCustomerLayout.createSequentialGroup()
.addGap(33, 33, 33)

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFCustomerLayout.createSequentialGroup()
.addGap(12, 12, 12)

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(JCSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 86,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JCDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 86,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(JCCustomer, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JCBack, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(86, 86, 86)

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(JCUpdate)
.addComponent(JCReset, javax.swing.GroupLayout.PREFERRED_SIZE, 71,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(56, 56, 56))
.addGroup(JFCustomerLayout.createSequentialGroup()

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, 183,
Short.MAX_VALUE)
.addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 183,
Short.MAX_VALUE)
.addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 183,
Short.MAX_VALUE)
.addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 183,
Short.MAX_VALUE)
.addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 183,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 123,
Short.MAX_VALUE)

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(JTName, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTCustID, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTAddress, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTMobile, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTArrival, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTDeparture, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTType, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(67, 67, 67))))
.addGroup(JFCustomerLayout.createSequentialGroup()

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFCustomerLayout.createSequentialGroup()
.addGap(137, 137, 137)
.addComponent(jlresult, javax.swing.GroupLayout.PREFERRED_SIZE, 288,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(JFCustomerLayout.createSequentialGroup()
.addGap(128, 128, 128)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 305,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
JFCustomerLayout.setVerticalGroup(
JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFCustomerLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 40,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
JFCustomerLayout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17,
Short.MAX_VALUE)
.addComponent(JTCustID, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(JTName, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(JTAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(25, 25, 25)
.addComponent(JTMobile, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(11, 11, 11))
.addGroup(JFCustomerLayout.createSequentialGroup()
.addGap(12, 12, 12)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 45,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 2,
Short.MAX_VALUE)
.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(JFCustomerLayout.createSequentialGroup()
.addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 45,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 45,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(JFCustomerLayout.createSequentialGroup()
.addComponent(JTArrival, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(JTDeparture, javax.swing.GroupLayout.PREFERRED_SIZE, 43,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(JTType, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(JCCustomer)
.addComponent(JCUpdate))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
JFCustomerLayout.createSequentialGroup()
.addComponent(JCSearch)
.addGap(11, 11, 11)))

.addGroup(JFCustomerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(JCDelete)
.addComponent(JCBack)
.addComponent(JCReset))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12,
Short.MAX_VALUE)
.addComponent(jlresult, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(12, 12, 12))
);

jLabel12.setText("jLabel12");

JFTypeOfRoom.setBounds(new java.awt.Rectangle(5, 5, 500, 500));


jLabel14.setText("TYPE");

jLabel15.setText("TYPE ID");

jLabel16.setText("COST PER DAY");

JRName.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JRNameActionPerformed(evt);
}
});

JRCost.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JRCostActionPerformed(evt);
}
});

jButton1.setText("ADD");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});

jButton2.setText("SEARCH");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

jButton3.setText("UPDATE");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});

jButton4.setText("DELETE");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});

jButton5.setText("BACK TO MENU");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});

jButton6.setText("RESET");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
}
});

jLabel17.setFont(new java.awt.Font("Cooper Black", 1, 24)); // NOI18N


jLabel17.setText("TYPE OF ROOM");

javax.swing.GroupLayout JFTypeOfRoomLayout = new


javax.swing.GroupLayout(JFTypeOfRoom.getContentPane());
JFTypeOfRoom.getContentPane().setLayout(JFTypeOfRoomLayout);
JFTypeOfRoomLayout.setHorizontalGroup(
JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFTypeOfRoomLayout.createSequentialGroup()
.addGap(64, 64, 64)

.addGroup(JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 123,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 123,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 123,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

.addGroup(JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(JRName, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JRType, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JRCost, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(58, 58, 58))
.addGroup(JFTypeOfRoomLayout.createSequentialGroup()
.addGap(81, 81, 81)

.addGroup(JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE)
.addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40,
Short.MAX_VALUE)

.addGroup(JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton5, javax.swing.GroupLayout.Alignment.TRAILING))
.addGap(18, 18, 18)

.addGroup(JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 89,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 89,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(75, 75, 75))
.addGroup(JFTypeOfRoomLayout.createSequentialGroup()
.addGap(130, 130, 130)
.addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 223,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
JFTypeOfRoomLayout.setVerticalGroup(
JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
JFTypeOfRoomLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 37,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)

.addGroup(JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)
.addComponent(JRType))
.addGap(18, 18, 18)

.addGroup(JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addGroup(JFTypeOfRoomLayout.createSequentialGroup()
.addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(20, 20, 20))
.addGroup(JFTypeOfRoomLayout.createSequentialGroup()
.addComponent(JRName)
.addGap(18, 18, 18)))
.addGroup(JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JRCost, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(44, 44, 44)

.addGroup(JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton2)
.addComponent(jButton1)
.addComponent(jButton3))
.addGap(27, 27, 27)

.addGroup(JFTypeOfRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton4)
.addComponent(jButton5)
.addComponent(jButton6))
.addGap(103, 103, 103))
);

JFFacilities.setBounds(new java.awt.Rectangle(5, 5, 500, 500));

jLabel18.setText("FACILITY ID");

jLabel19.setText("COST PER DAY");

jLabel20.setText("FACILITY");

jButton7.setText("SEARCH");
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});

jButton8.setText("ADD");
jButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}
});

jButton9.setText("UPDATE");
jButton9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton9ActionPerformed(evt);
}
});

jButton10.setText("DELETE");
jButton10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton10ActionPerformed(evt);
}
});

jButton11.setText("BACK TO MENU");
jButton11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton11ActionPerformed(evt);
}
});

jButton12.setText("RESET");
jButton12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton12ActionPerformed(evt);
}
});

jLabel21.setFont(new java.awt.Font("Cooper Black", 1, 24)); // NOI18N


jLabel21.setText("FACILITIES");

javax.swing.GroupLayout JFFacilitiesLayout = new


javax.swing.GroupLayout(JFFacilities.getContentPane());
JFFacilities.getContentPane().setLayout(JFFacilitiesLayout);
JFFacilitiesLayout.setHorizontalGroup(
JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFFacilitiesLayout.createSequentialGroup()
.addGap(64, 64, 64)

.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFFacilitiesLayout.createSequentialGroup()

.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 145,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 145,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 145,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(JFId, javax.swing.GroupLayout.PREFERRED_SIZE, 154,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JFCost, javax.swing.GroupLayout.PREFERRED_SIZE, 154,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JFName, javax.swing.GroupLayout.PREFERRED_SIZE, 154,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(JFFacilitiesLayout.createSequentialGroup()

.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jButton10, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton7))
.addGap(92, 92, 92)

.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jButton8, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton11, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 71,
Short.MAX_VALUE)

.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton12, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addGap(67, 67, 67))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
JFFacilitiesLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 194,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(162, 162, 162))
);
JFFacilitiesLayout.setVerticalGroup(
JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFFacilitiesLayout.createSequentialGroup()
.addGap(29, 29, 29)
.addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 46,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)

.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(JFId, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE))
.addGap(18, 18, 18)
.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(JFFacilitiesLayout.createSequentialGroup()
.addGap(4, 4, 4)
.addComponent(JFName)))
.addGap(18, 18, 18)

.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JFCost, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27)

.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton7)
.addComponent(jButton8)
.addComponent(jButton9))
.addGap(18, 18, 18)

.addGroup(JFFacilitiesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton10)
.addComponent(jButton11)
.addComponent(jButton12))
.addContainerGap(148, Short.MAX_VALUE))
);

JFNewUser.setTitle("NEW USER");
JFNewUser.setBounds(new java.awt.Rectangle(5, 5, 600, 600));

jLabel22.setText("USERNAME");

jLabel23.setText("PASSWORD");

JNPass.addCaretListener(new javax.swing.event.CaretListener() {
public void caretUpdate(javax.swing.event.CaretEvent evt) {
JNPassCaretUpdate(evt);
}
});
JNPass.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JNPassActionPerformed(evt);
}
});

jButton14.setText("CREATE USER");
jButton14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton14ActionPerformed(evt);
}
});

jButton16.setText("RESET");
jButton16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton16ActionPerformed(evt);
}
});

jLabel25.setFont(new java.awt.Font("Cooper Black", 1, 24)); // NOI18N


jLabel25.setText("CREATE NEW USER");

jButton17.setText("BACK TO MENU");
jButton17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton17ActionPerformed(evt);
}
});

javax.swing.GroupLayout JFNewUserLayout = new


javax.swing.GroupLayout(JFNewUser.getContentPane());
JFNewUser.getContentPane().setLayout(JFNewUserLayout);
JFNewUserLayout.setHorizontalGroup(
JFNewUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFNewUserLayout.createSequentialGroup()

.addGroup(JFNewUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFNewUserLayout.createSequentialGroup()
.addGap(54, 54, 54)

.addGroup(JFNewUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(JFNewUserLayout.createSequentialGroup()
.addComponent(jButton14)
.addGap(44, 44, 44)
.addComponent(jButton17)
.addGap(64, 64, 64)
.addComponent(jButton16))
.addGroup(JFNewUserLayout.createSequentialGroup()

.addGroup(JFNewUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 155,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 155,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

.addGroup(JFNewUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(JNUser)
.addComponent(JNCheck)
.addComponent(JNPass, javax.swing.GroupLayout.DEFAULT_SIZE, 166,
Short.MAX_VALUE)))))
.addGroup(JFNewUserLayout.createSequentialGroup()
.addGap(97, 97, 97)
.addComponent(jLabel25)))
.addContainerGap(37, Short.MAX_VALUE))
);
JFNewUserLayout.setVerticalGroup(
JFNewUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFNewUserLayout.createSequentialGroup()
.addGap(46, 46, 46)
.addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)

.addGroup(JFNewUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(JNUser, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)

.addGroup(JFNewUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(JNPass, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(18, 18, 18)
.addComponent(JNCheck, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(39, 39, 39)

.addGroup(JFNewUserLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton14)
.addComponent(jButton16)
.addComponent(jButton17))
.addContainerGap(76, Short.MAX_VALUE))
);

JFTransaction.setTitle("TRANSACTION");
JFTransaction.setBounds(new java.awt.Rectangle(5, 5, 600, 600));
jLabel26.setText("CUSTOMER ID");

jLabel27.setText("CUSTOMER NAME");

jLabel28.setText("CHECK IN");

jLabel29.setText("CHECK OUT");

jLabel30.setText("RESTAURENT AMOUNT");

jLabel31.setText("TOTAL AMOUNT");

jLabel32.setText("MODE OF PAYMENT");

jLabel33.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N


jLabel33.setText("FEEDBACK");

JTrIN.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JTrINActionPerformed(evt);
}
});

JTrRA.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JTrRAActionPerformed(evt);
}
});
JTrRA.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(java.awt.event.FocusEvent evt) {
JTrRAFocusGained(evt);
}
});

JTrAmount.addCaretListener(new javax.swing.event.CaretListener() {
public void caretUpdate(javax.swing.event.CaretEvent evt) {
JTrAmountCaretUpdate(evt);
}
});
JTrAmount.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JTrAmountActionPerformed(evt);
}
});
JTrAmount.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(java.awt.event.FocusEvent evt) {
JTrAmountFocusGained(evt);
}
});

JTrMOP.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "CASH", "DEBIT CARD",


"CREDIT CARD" }));

JTrFeed.setColumns(20);
JTrFeed.setRows(5);
jScrollPane1.setViewportView(JTrFeed);

jLabel34.setFont(new java.awt.Font("Cooper Black", 1, 24)); // NOI18N


jLabel34.setText("TRANSACTION");

JTrBill.setText("CALCULATE BILL AMOUNT");


JTrBill.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JTrBillActionPerformed(evt);
}
});

jButton19.setText("RESET");
jButton19.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton19ActionPerformed(evt);
}
});

jLabel35.setText("NO OF DAYS");

jLabel36.setText("TRANSACTION ID");

JTrSelect.setText("SELECT");
JTrSelect.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JTrSelectActionPerformed(evt);
}
});

jButton18.setText("INSERT");
jButton18.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton18ActionPerformed(evt);
}
});

jButton20.setText("UPDATE");
jButton20.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton20ActionPerformed(evt);
}
});

jButton21.setText("DELETE");
jButton21.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton21ActionPerformed(evt);
}
});

JTrAmt.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JTrAmtActionPerformed(evt);
}
});
JTrAmt.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(java.awt.event.FocusEvent evt) {
JTrAmtFocusGained(evt);
}
});

jlroom.setText("Room Type: ");

jLabel37.setText("FACILITY USED");

JTrBack.setText("BACK TO MENU");
JTrBack.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JTrBackActionPerformed(evt);
}
});

javax.swing.GroupLayout JFTransactionLayout = new


javax.swing.GroupLayout(JFTransaction.getContentPane());
JFTransaction.getContentPane().setLayout(JFTransactionLayout);
JFTransactionLayout.setHorizontalGroup(
JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFTransactionLayout.createSequentialGroup()
.addGap(48, 48, 48)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFTransactionLayout.createSequentialGroup()
.addGap(210, 210, 210)
.addComponent(jLabel34)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(JFTransactionLayout.createSequentialGroup()

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFTransactionLayout.createSequentialGroup()

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel31, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel35, javax.swing.GroupLayout.PREFERRED_SIZE, 134,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 96,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 92,
javax.swing.GroupLayout.PREFERRED_SIZE))

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFTransactionLayout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFTransactionLayout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
217, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
JFTransactionLayout.createSequentialGroup()
.addGap(3, 3, 3)
.addComponent(jButton21)
.addGap(18, 18, 18)
.addComponent(jButton19, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
JFTransactionLayout.createSequentialGroup()
.addComponent(jButton18)
.addGap(18, 18, 18)
.addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE,
85, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(JFTransactionLayout.createSequentialGroup()
.addComponent(JTrSelect)
.addGap(18, 18, 18)
.addComponent(JTrBill, javax.swing.GroupLayout.PREFERRED_SIZE, 185,
javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(JFTransactionLayout.createSequentialGroup()

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(JTrIN, javax.swing.GroupLayout.PREFERRED_SIZE, 132,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTrAmount, javax.swing.GroupLayout.PREFERRED_SIZE,
132, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTrNOD, javax.swing.GroupLayout.PREFERRED_SIZE, 132,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 134,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 134,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(193, 193, 193))))
.addGroup(JFTransactionLayout.createSequentialGroup()

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFTransactionLayout.createSequentialGroup()
.addGap(0, 10, Short.MAX_VALUE)
.addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 134,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(43, 43, 43))
.addGroup(JFTransactionLayout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(JTrFac, javax.swing.GroupLayout.PREFERRED_SIZE, 132,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(JTrName, javax.swing.GroupLayout.PREFERRED_SIZE, 171,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(JFTransactionLayout.createSequentialGroup()
.addGap(32, 32, 32)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 134,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jlroom, javax.swing.GroupLayout.PREFERRED_SIZE, 134,
javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(156, 156, 156))))
.addGroup(JFTransactionLayout.createSequentialGroup()
.addComponent(jLabel36, javax.swing.GroupLayout.PREFERRED_SIZE, 155,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(JTrTID, javax.swing.GroupLayout.PREFERRED_SIZE, 135,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 111,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(38, 38, 38)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(JTrRA, javax.swing.GroupLayout.PREFERRED_SIZE, 130,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(JTrCID, javax.swing.GroupLayout.DEFAULT_SIZE, 130,
Short.MAX_VALUE)
.addComponent(JTrOUT))
.addComponent(JTrAmt, javax.swing.GroupLayout.PREFERRED_SIZE, 130,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTrMOP, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(31, 31, 31))))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
JFTransactionLayout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(JTrBack)
.addGap(300, 300, 300))
);
JFTransactionLayout.setVerticalGroup(
JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFTransactionLayout.createSequentialGroup()
.addGap(23, 23, 23)
.addComponent(jLabel34, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(28, 28, 28)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel36, javax.swing.GroupLayout.PREFERRED_SIZE, 28,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTrCID, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTrTID, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(JTrName, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(33, 33, 33)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTrIN, javax.swing.GroupLayout.PREFERRED_SIZE, 29,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTrOUT, javax.swing.GroupLayout.PREFERRED_SIZE, 31,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 24,
javax.swing.GroupLayout.PREFERRED_SIZE))

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFTransactionLayout.createSequentialGroup()
.addGap(6, 6, 6)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(JTrAmt, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jlroom, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(JTrRA, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(JFTransactionLayout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTrFac, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(15, 15, 15)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel35, javax.swing.GroupLayout.PREFERRED_SIZE, 21,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTrNOD)))
.addGap(24, 24, 24)))

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(JFTransactionLayout.createSequentialGroup()
.addGap(2, 2, 2)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTrAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 22,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(JFTransactionLayout.createSequentialGroup()
.addGap(1, 1, 1)
.addComponent(JTrMOP, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(32, 32, 32)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 32,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(JFTransactionLayout.createSequentialGroup()

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(JTrSelect)
.addComponent(JTrBill))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton18)
.addComponent(jButton20))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

.addGroup(JFTransactionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton19)
.addComponent(jButton21)))
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(JTrBack)
.addGap(21, 21, 21))
);

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("LOGIN");
setBounds(new java.awt.Rectangle(5, 5, 600, 600));
jLabel1.setFont(new java.awt.Font("Cooper Black", 1, 24)); // NOI18N
jLabel1.setText("RECEPTION");

jLabel2.setText("USERNAME");

jLabel3.setText("PASSWORD");

JBLogin.setText("LOGIN");
JBLogin.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
JBLoginActionPerformed(evt);
}
});

jButton13.setText("RESET");
jButton13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton13ActionPerformed(evt);
}
});

jLabel24.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N


jLabel24.setText("TO CREATE NEW USER ---------->");

jButton15.setText("NEW USER");
jButton15.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton15ActionPerformed(evt);
}
});

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());


getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(34, 34, 34)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 109,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 109,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(JTUser, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)
.addComponent(JTPass))
.addGap(70, 70, 70))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 186,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton15, javax.swing.GroupLayout.PREFERRED_SIZE, 94,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(22, 22, 22))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(95, 95, 95)
.addComponent(JBLogin)
.addGap(92, 92, 92)
.addComponent(jButton13))
.addGroup(layout.createSequentialGroup()
.addGap(151, 151, 151)
.addComponent(jLabel1)))
.addContainerGap(162, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(47, 47, 47)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(40, 40, 40)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(JTUser, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(JTPass, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(48, 48, 48)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(JBLogin)
.addComponent(jButton13))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 65,
Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jButton15, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE)
.addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);

pack();
}// </editor-fold>

private void JBLoginActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String User= JTUser.getText();
String Pass= JTPass.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt=con.createStatement();
String query="select * from reception where Username='"+User+"' and Password='"+Pass+"';";
ResultSet rs= stmt.executeQuery(query);
if(rs.next())
{
JFMain.setVisible(true);
JBCustomer.setEnabled(true);
JBFacilities.setEnabled(true);
JBType.setVisible(true);
JBTransaction.setVisible(true);
}
else
{
javax.swing.JOptionPane.showMessageDialog(this, "The given Username and Password doesn't
match");
}
}
catch(Exception err)
{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
}
}

private void JBFacilitiesActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFFacilities.setVisible(true);
}

private void JTMobileActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}
private void JTArrivalActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}

private void JTDepartureActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void JCSearchActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String Mobile=JTMobile.getText();
{
try
{
Class.forName("java.sql.DriverManager");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt=con.createStatement();
String query="select * from customer_details where Mobile_No='"+Mobile+"';";

ResultSet rs=stmt.executeQuery(query);

if(rs.next())
{
JTCustID.setText(rs.getString("Cust_ID"));
JTName.setText(rs.getString("Customer_Name"));
JTAddress.setText(rs.getString("Address"));
JTArrival.setText(rs.getString("Arrival"));
JTDeparture.setText(rs.getString("Departure"));
JTType.setSelectedItem(rs.getString("Room_Type"));
}
else
{
jlresult.setText("RECORD NOT FOUND");
}
}
catch(Exception e)
{
javax.swing.JOptionPane.showMessageDialog(this, e.getMessage());
}
}
}

private void JCCustomerActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID=JTCustID.getText();
String Name=JTName.getText();
String Address=JTAddress.getText();
String Mobile=JTMobile.getText();
String Arr=JTArrival.getText();
String Dep=JTDeparture.getText();
Object Type=JTType.getSelectedItem();
try
{
Class.forName("java.sql.DriverManager");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt=con.createStatement();
String query="insert into customer_details values ('"+Name+"', '"+ID+"', '"+Address+"',
'"+Mobile+"','"+Arr+"', '"+Dep+"','"+Type+"');";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Record Inserted Successfully");
}

catch (Exception err)


{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
}
}

private void JCUpdateActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID= JTCustID.getText();
String Name= JTName.getText();
String Address= JTAddress.getText();
String Mobile= JTMobile.getText();
String Arr= JTArrival.getText();
String Dep= JTDeparture.getText();
Object Type= JTType.getSelectedItem();
try
{
Class.forName("java.sql.DriverManager");
Connection con=
DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt= con.createStatement();
//sql Statement
String query="update customer_details set
Cust_ID='"+ID+"',Customer_Name='"+Name+"',Address='"+Address+"',"
+ "Arrival='"+Arr+"',Departure='"+Dep+"',Room_Type='"+Type+"' where
Mobile_No='"+Mobile+"';";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Details Updated Successfully");
}
catch(Exception err)
{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
//jlerr.setText(err.getMessage());
}
}

private void JCDeleteActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String Mobile= JTMobile.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection con=
DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt= con.createStatement();
//sql Statement
String query="delete from customer_details where Mobile_No='"+Mobile+"'";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Record Deleted Successfully");
}
catch(Exception err)
{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
//jlerr.setText(err.getMessage());
}
}

private void JCResetActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JTCustID.setText("");
JTName.setText("");
JTAddress.setText("");
JTMobile.setText("");
JTArrival.setText("");
JTDeparture.setText("");
JTType.setSelectedItem(0);
}

private void JCBackActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFCustomer.dispose();
}

private void JBCustomerActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFCustomer.setVisible(true);
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String ID=JRType.getText();
String Name=JRName.getText();
String Cost=JRCost.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt=con.createStatement();
String query="insert into type_of_room values ('"+ID+"', '"+Name+"', '"+Cost+"');";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Record Inserted Successfully");
}

catch (Exception err)


{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());

}
}

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:String ID= JRType.getText();
String ID= JRType.getText();
String Name= JRName.getText();
String Cost= JRCost.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection con=
DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt= con.createStatement();
//sql Statement
String query="update type_of_room set Type='"+Name+"',Cost_Per_Day='"+Cost+"' where
TypeID='"+ID+"';";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Details Updated Successfully");
}
catch(Exception err)
{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
//jlerr.setText(err.getMessage());
}
}

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID= JRType.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection con=
DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt= con.createStatement();
//sql Statement
String query="delete from type_of_room where TypeID='"+ID+"';";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Record Deleted Successfully");
}
catch(Exception err)
{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
//jlerr.setText(err.getMessage());
}
}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID=JRType.getText();
{
try
{
Class.forName("java.sql.DriverManager");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt=con.createStatement();
String query="select * from type_of_room where TypeID='"+ID+"';";

ResultSet rs=stmt.executeQuery(query);

if(rs.next())
{
JRName.setText(rs.getString("Type"));
JRCost.setText(rs.getString("Cost_Per_Day"));
}
else
{
jlresult.setText("RECORD NOT FOUND");
}
}
catch(Exception e)
{
javax.swing.JOptionPane.showMessageDialog(this, e.getMessage());
}
}
}

private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFTypeOfRoom.dispose();
}

private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JRType.setText("");
JRName.setText("");
JRCost.setText("");
}

private void JBTransactionActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFTransaction.setVisible(true);
}

private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID=JFId.getText();
{
try
{
Class.forName("java.sql.DriverManager");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt=con.createStatement();
String query="select * from facilities where FacilityID='"+ID+"';";

ResultSet rs=stmt.executeQuery(query);

if(rs.next())
{
JFName.setText(rs.getString("Facility"));
JFCost.setText(rs.getString("Cost_Per_Day"));
}
else
{
jlresult.setText("RECORD NOT FOUND");
}
}
catch(Exception e)
{
javax.swing.JOptionPane.showMessageDialog(this, e.getMessage());
}
}
}

private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID=JFId.getText();
String Name=JFName.getText();
String Cost=JFCost.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt=con.createStatement();
String query="insert into facilities values ('"+ID+"', '"+Name+"', '"+Cost+"');";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Record Inserted Successfully");
}

catch (Exception err)


{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
}
}

private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID= JFId.getText();
String Name= JFName.getText();
String Cost= JFCost.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection con=
DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt= con.createStatement();
//sql Statement
String query="update facilities set Facility='"+Name+"',Cost_Per_Day='"+Cost+"' where
FacilityID='"+ID+"';";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Details Updated Successfully");
}
catch(Exception err)
{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
//jlerr.setText(err.getMessage());
}
}

private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID= JFId.getText();
String Name= JFName.getText();
String Cost= JFCost.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection con=
DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt= con.createStatement();
//sql Statement
String query="delete from facilities where FacilityID='"+ID+"';";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Record Deleted Successfully");
}
catch(Exception err)
{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
//jlerr.setText(err.getMessage());
}
}

private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFFacilities.dispose();
}

private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFId.setText("");
JFName.setText("");
JFCost.setText("");
}

private void JBTypeActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFTypeOfRoom.setVisible(true);
}

private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JTUser.setText("");
JTPass.setText("");
}

private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String user=JNUser.getText();
String pass=JNPass.getText();
if(user.isEmpty())
JOptionPane.showMessageDialog(JNCheck, "Username field is blank");
else if(pass.isEmpty())
JOptionPane.showMessageDialog(JNCheck, "Password field is blank");
else
{ try
{
Class.forName("java.sql.DriverManager");
Connection con=
DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt= con.createStatement();
String query="insert into reception values('"+user+"','"+pass+"');";
stmt.executeUpdate(query);
JNUser.setText("");
JNPass.setText("");
JOptionPane.showMessageDialog(null, "Account created successfully");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, e.getMessage());
}
}
}

private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFNewUser.setVisible(true);
}

private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JNUser.setText("");
JNPass.setText("");
JNCheck.setText("");
}

private void JNPassCaretUpdate(javax.swing.event.CaretEvent evt) {


// TODO add your handling code here:
JNCheck.setText(JNPass.getText());
}

private void JNPassActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFNewUser.dispose();
}

private void JTrINActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void JRNameActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void JTrBillActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
int nod = Integer.parseInt(JTrNOD.getText());
double ramt = Double.parseDouble(JTrAmt.getText());
double restamt = Double.parseDouble(JTrRA.getText());

double Total= nod*ramt + restamt;


JTrAmount.setText(Double.toString(Total));
}

private void JTrRAFocusGained(java.awt.event.FocusEvent evt) {


// TODO add your handling code here:

private void JRCostActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void JTrAmountFocusGained(java.awt.event.FocusEvent evt) {


// TODO add your handling code here:

private void JTrAmountCaretUpdate(javax.swing.event.CaretEvent evt) {


// TODO add your handling code here

}
private void JTrSelectActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String ID=JTrTID.getText();
String CID=JTCustID.getText();
String Name=JTName.getText();
String Arr=JTArrival.getText();
String Dep=JTDeparture.getText();
{
try
{
Class.forName("java.sql.DriverManager");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt=con.createStatement();
String query="select t.* , c.* ,rt.*,f.* from type_of_room rt, customer_details c, transaction t,
facilities f where rt.type = c.room_type and c.cust_Id = t.custid and f.facility=t.facilities and
transactionID='"+ID+"';";

ResultSet rs=stmt.executeQuery(query);

if(rs.next())
{
JTrCID.setText(rs.getString("Cust_ID"));
JTrName.setText(rs.getString("Customer_Name"));
JTrIN.setText(rs.getString("Arrival"));
JTrOUT.setText(rs.getString("Departure"));
jlroom.setText(rs.getString("room_type"));
JTrAmt.setText(rs.getString("cost_per_day"));
JTrFac.setText(rs.getString("facilities"));
}
else
{
jlresult.setText("RECORD NOT FOUND");
}
}
catch(Exception e)
{
javax.swing.JOptionPane.showMessageDialog(this, e.getMessage());
}
}
}

private void jButton18ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID=JTrTID.getText();
String CID=JTrCID.getText();
String Name=JTrName.getText();
String Arr=JTrIN.getText();
String Dep=JTrOUT.getText();
String NOD=JTrNOD.getText();
String RType=jlroom.getText();
String RAmt=JTrAmt.getText();
String ResAmt=JTrRA.getText();
Object MOP=JTrMOP.getSelectedItem();
String TAmt=JTrAmount.getText();
String Feed=JTrFeed.getText();
String Fac=JTrFac.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt=con.createStatement();
String query="insert into transaction values ('"+CID+"', '"+Name+"', '"+Arr+"', '"+Dep+"','"+ID+"',"
+
"'"+NOD+"','"+RType+"','"+RAmt+"','"+ResAmt+"','"+MOP+"','"+TAmt+"','"+Feed+"',+'"+Fac+"');";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Record Inserted Successfully");
}

catch (Exception err)


{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
}
}

private void jButton20ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID=JTrTID.getText();
String CID=JTrCID.getText();
String Name=JTrName.getText();
String Arr=JTrIN.getText();
String Dep=JTrOUT.getText();
String NOD=JTrNOD.getText();
String RType=jlroom.getText();
String RAmt=JTrAmt.getText();
String ResAmt=JTrRA.getText();
Object MOP=JTrMOP.getSelectedItem();
String TAmt=JTrAmount.getText();
String Feed=JTrFeed.getText();
String Fac=JTrFac.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection con=
DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt= con.createStatement();
//sql Statement
String query="update Transaction set CustID='"+CID+"',Name='"+Name+"',"
+ "Arr='"+Arr+"',Dep='"+Dep+"',NOD='"+NOD+"',RType='"+RType+"',RAmt='"+RAmt+"',"
+ "ResAmt='"+ResAmt+"',MOP='"+MOP+"',TAmt='"+TAmt+"',Feedback='"+Feed+"',"
+ "facilities='"+Fac+"' where TransactionID='"+ID+"';";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Details Updated Successfully");
}
catch(Exception err)
{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
//jlerr.setText(err.getMessage());
}
}

private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
String ID= JTrTID.getText();
try
{
Class.forName("java.sql.DriverManager");
Connection con=
DriverManager.getConnection("jdbc:mysql://localhost:3306/project12c","root","123");
Statement stmt= con.createStatement();
//sql Statement
String query="delete from transaction where TransactionID='"+ID+"'";
stmt.executeUpdate(query);
javax.swing.JOptionPane.showMessageDialog(this,"Record Deleted Successfully");
}
catch(Exception err)
{
javax.swing.JOptionPane.showMessageDialog(this, err.getMessage());
//jlerr.setText(err.getMessage());
}
}

private void JTrAmountActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:

private void JTrAmtFocusGained(java.awt.event.FocusEvent evt) {


// TODO add your handling code here:
}
private void JTrAmtActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}

private void JTrRAActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JTrTID.setText("");
JTrCID.setText("");
JTrName.setText("");
JTrIN.setText("");
JTrOUT.setText("");
JTrNOD.setText("");
jlroom.setText("");
JTrAmt.setText("");
JTrRA.setText("");
JTrMOP.setSelectedItem("");
JTrAmount.setText("");
JTrFeed.setText("");
JTrFac.setText("");
}

private void JTrBackActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
JFTransaction.dispose();
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(Hotel_Management.class.getName()).log(java.util.logging.Level.SEVER
E, null, ex);
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(Hotel_Management.class.getName()).log(java.util.logging.Level.SEVER
E, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(Hotel_Management.class.getName()).log(java.util.logging.Level.SEVER
E, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(Hotel_Management.class.getName()).log(java.util.logging.Level.SEVER
E, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Hotel_Management().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton JBCustomer;
private javax.swing.JButton JBFacilities;
private javax.swing.JButton JBLogin;
private javax.swing.JButton JBTransaction;
private javax.swing.JButton JBType;
private javax.swing.JButton JCBack;
private javax.swing.JButton JCCustomer;
private javax.swing.JButton JCDelete;
private javax.swing.JButton JCReset;
private javax.swing.JButton JCSearch;
private javax.swing.JButton JCUpdate;
private javax.swing.JTextField JFCost;
private javax.swing.JFrame JFCustomer;
private javax.swing.JFrame JFFacilities;
private javax.swing.JTextField JFId;
private javax.swing.JFrame JFMain;
private javax.swing.JTextField JFName;
private javax.swing.JFrame JFNewUser;
private javax.swing.JFrame JFTransaction;
private javax.swing.JFrame JFTypeOfRoom;
private javax.swing.JTextField JNCheck;
private javax.swing.JPasswordField JNPass;
private javax.swing.JTextField JNUser;
private javax.swing.JTextField JRCost;
private javax.swing.JTextField JRName;
private javax.swing.JTextField JRType;
private javax.swing.JTextField JTAddress;
private javax.swing.JTextField JTArrival;
private javax.swing.JTextField JTCustID;
private javax.swing.JTextField JTDeparture;
private javax.swing.JTextField JTMobile;
private javax.swing.JTextField JTName;
private javax.swing.JPasswordField JTPass;
private javax.swing.JComboBox JTType;
private javax.swing.JTextField JTUser;
private javax.swing.JTextField JTrAmount;
private javax.swing.JTextField JTrAmt;
private javax.swing.JButton JTrBack;
private javax.swing.JButton JTrBill;
private javax.swing.JTextField JTrCID;
private javax.swing.JTextField JTrFac;
private javax.swing.JTextArea JTrFeed;
private javax.swing.JTextField JTrIN;
private javax.swing.JComboBox JTrMOP;
private javax.swing.JTextField JTrNOD;
private javax.swing.JTextField JTrName;
private javax.swing.JTextField JTrOUT;
private javax.swing.JTextField JTrRA;
private javax.swing.JButton JTrSelect;
private javax.swing.JTextField JTrTID;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton10;
private javax.swing.JButton jButton11;
private javax.swing.JButton jButton12;
private javax.swing.JButton jButton13;
private javax.swing.JButton jButton14;
private javax.swing.JButton jButton15;
private javax.swing.JButton jButton16;
private javax.swing.JButton jButton17;
private javax.swing.JButton jButton18;
private javax.swing.JButton jButton19;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton20;
private javax.swing.JButton jButton21;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JButton jButton6;
private javax.swing.JButton jButton7;
private javax.swing.JButton jButton8;
private javax.swing.JButton jButton9;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel15;
private javax.swing.JLabel jLabel16;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel18;
private javax.swing.JLabel jLabel19;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel22;
private javax.swing.JLabel jLabel23;
private javax.swing.JLabel jLabel24;
private javax.swing.JLabel jLabel25;
private javax.swing.JLabel jLabel26;
private javax.swing.JLabel jLabel27;
private javax.swing.JLabel jLabel28;
private javax.swing.JLabel jLabel29;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel30;
private javax.swing.JLabel jLabel31;
private javax.swing.JLabel jLabel32;
private javax.swing.JLabel jLabel33;
private javax.swing.JLabel jLabel34;
private javax.swing.JLabel jLabel35;
private javax.swing.JLabel jLabel36;
private javax.swing.JLabel jLabel37;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JLabel jlresult;
private javax.swing.JLabel jlroom;
// End of variables declaration
}

Potrebbero piacerti anche