MY SEARCH GUI
/*
* FILENAME: mUserGUI.java
* AUTHOR: Thabo Matjuda
* DATE: 05 March 2009, 16:12 am
* DESCRIPTION: This file is the client application
* It is the GUI used to send requests to server
* It is used as a Search Application which must be connected to server
* It also shows data resulting to your search
*/
package moviestoreclient;
/**
*
* @author Lebogang
*/
import javax.swing.JOptionPane;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.net.*;
import java.util.regex.*;
import java.util.*;
//This class is a client whisch searches from the server
public class mUserGUI extends javax.swing.JFrame {
/** Class Varials*/
Socket soc;
//Host OR Server IP address
public String servIP;
//Port used to connect to server
int port = 6666;
//These initialises my Communication streams
PrintWriter out;
BufferedReader in;
//Arrays to deal with my Movie Table
Object[] [] rowz;
String[] columnNames = {"MovieID", "Title", "Description", "Genre"};
//This is going to hold the values retrieved from the database
TreeSet<String> movSet = new TreeSet<String>();
/** Creates new form mUserGUI */
//Constructor
public mUserGUI() {
super("M.Store Search");
initComponents();
//Setting the GUI's Look & Feel
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows." +
"WindowsLookAndFeel");
SwingUtilities.updateComponentTreeUI(this);
} catch (Exception t) {}
//Setting InputDialog Active
//This will get the address of the server to connect
servIP = JOptionPane.showInputDialog(null,"Please insert the" +
" IP of the server","Server address",JOptionPane.PLAIN_MESSAGE);
//Tests to see if the servIP is a valid IP
if (!Pattern.matches("^\\d*\\.?\\d*\\.?\\d*\\.?\\d*$",servIP)) {
JOptionPane.showMessageDialog(null, "Seeking Server..." );
System.exit(1);
}
//This will try connection to server
//Creates streams to be used for connection to server
try {
soc = new Socket(servIP, port);
out = new PrintWriter(new BufferedOutputStream(
soc.getOutputStream()), true);
in = new BufferedReader(new InputStreamReader(
soc.getInputStream()));
} catch(UnknownHostException uherr) {
JOptionPane.showMessageDialog(null,
uherr.toString(),
"Unknown Host Error",
JOptionPane.WARNING_MESSAGE);
} catch(IOException ioe) {
JOptionPane.showMessageDialog(null,
ioe.toString(),
"IO Error",
JOptionPane.WARNING_MESSAGE);
} catch(Exception eer) {
JOptionPane.showMessageDialog(null,
eer.toString(),
"Error",
JOptionPane.ERROR_MESSAGE);
}
//Setting the table properties
rowz = new Object[0][4];
tblMovie = new JTable(rowz, columnNames);
scrPane.getViewport().add(tblMovie);
//Disabled Edit Data button
btnEdit.setEnabled(false);
}
/** 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.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
puser = new javax.swing.JPanel();
lblTitle = new javax.swing.JLabel();
puser2 = new javax.swing.JPanel();
lblSearchMov = new javax.swing.JLabel();
tfSearchMov = new javax.swing.JTextField();
lblOR = new javax.swing.JLabel();
btnSearch = new javax.swing.JButton();
lblSearchGen = new javax.swing.JLabel();
tfGenre = new javax.swing.JTextField();
scrPane = new javax.swing.JScrollPane();
tblMovie = new javax.swing.JTable();
jPanel1 = new javax.swing.JPanel();
lblUserN = new javax.swing.JLabel();
lblUserword = new javax.swing.JLabel();
tfUserN = new javax.swing.JTextField();
btnLog = new javax.swing.JButton();
pfUser = new javax.swing.JPasswordField();
btnEdit = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
userMenuBar = new javax.swing.JMenuBar();
userMenu = new javax.swing.JMenu();
itemSearch = new javax.swing.JMenuItem();
itemEdit = new javax.swing.JMenuItem();
separator1 = new javax.swing.JSeparator();
itemExit = new javax.swing.JMenuItem();
userHelp = new javax.swing.JMenu();
itemHostHelp = new javax.swing.JMenuItem();
itemHelp = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
puser.setBackground(new java.awt.Color(0, 0, 0));
puser.setForeground(new java.awt.Color(255, 255, 255));
lblTitle.setBackground(new java.awt.Color(0, 0, 0));
lblTitle.setFont(new java.awt.Font("Tahoma", 1, 14));
lblTitle.setForeground(new java.awt.Color(255, 255, 255));
lblTitle.setText("MOVIE STORE SEARCH");
puser2.setBackground(new java.awt.Color(51, 51, 51));
puser2.setForeground(new java.awt.Color(255, 255, 255));
lblSearchMov.setBackground(new java.awt.Color(51, 51, 51));
lblSearchMov.setFont(new java.awt.Font("Tahoma", 1, 11));
lblSearchMov.setForeground(new java.awt.Color(255, 255, 255));
lblSearchMov.setText("Movie Title:");
lblOR.setBackground(new java.awt.Color(51, 51, 51));
lblOR.setFont(new java.awt.Font("Tahoma", 1, 12));
lblOR.setForeground(new java.awt.Color(255, 255, 255));
lblOR.setText("OR");
btnSearch.setBackground(new java.awt.Color(51, 51, 51));
btnSearch.setText("SEARCH");
btnSearch.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnSearchActionPerformed(evt);
}
});
lblSearchGen.setBackground(new java.awt.Color(51, 51, 51));
lblSearchGen.setFont(new java.awt.Font("Tahoma", 1, 11));
lblSearchGen.setForeground(new java.awt.Color(255, 255, 255));
lblSearchGen.setText("By Genre:");
org.jdesktop.layout.GroupLayout puser2Layout = new org.jdesktop.layout.GroupLayout(puser2);
puser2.setLayout(puser2Layout);
puser2Layout.setHorizontalGroup(
puser2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, puser2Layout.createSequentialGroup()
.add(puser2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(puser2Layout.createSequentialGroup()
.add(23, 23, 23)
.add(lblSearchMov))
.add(puser2Layout.createSequentialGroup()
.add(26, 26, 26)
.add(puser2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(lblSearchGen)
.add(lblOR))))
.add(26, 26, 26)
.add(puser2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(tfGenre, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
.add(tfSearchMov, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
.add(btnSearch))
.add(56, 56, 56))
);
puser2Layout.setVerticalGroup(
puser2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(puser2Layout.createSequentialGroup()
.add(24, 24, 24)
.add(puser2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(lblSearchMov)
.add(tfSearchMov, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(puser2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(puser2Layout.createSequentialGroup()
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(lblOR))
.add(puser2Layout.createSequentialGroup()
.add(25, 25, 25)
.add(puser2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(lblSearchGen)
.add(tfGenre, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
.add(31, 31, 31)
.add(btnSearch)
.addContainerGap(43, Short.MAX_VALUE))
);
tblMovie.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
scrPane.setViewportView(tblMovie);
jPanel1.setBackground(new java.awt.Color(51, 51, 51));
jPanel1.setForeground(new java.awt.Color(255, 255, 255));
lblUserN.setBackground(new java.awt.Color(51, 51, 51));
lblUserN.setFont(new java.awt.Font("Tahoma", 1, 11));
lblUserN.setForeground(new java.awt.Color(255, 255, 255));
lblUserN.setText("UserName:");
lblUserword.setBackground(new java.awt.Color(51, 51, 51));
lblUserword.setFont(new java.awt.Font("Tahoma", 1, 11));
lblUserword.setForeground(new java.awt.Color(255, 255, 255));
lblUserword.setText("Password:");
btnLog.setBackground(new java.awt.Color(51, 51, 51));
btnLog.setText("LOGIN");
btnLog.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnLogActionPerformed(evt);
}
});
pfUser.setEchoChar('+');
btnEdit.setBackground(new java.awt.Color(51, 51, 51));
btnEdit.setText("EDIT DATA");
btnEdit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnEditActionPerformed(evt);
}
});
org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup()
.add(21, 21, 21)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(lblUserN)
.add(lblUserword))
.add(23, 23, 23)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(btnEdit)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
.add(btnLog)
.add(tfUserN, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE)
.add(pfUser)))
.addContainerGap(59, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup()
.add(30, 30, 30)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(lblUserN)
.add(tfUserN, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(26, 26, 26)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(lblUserword)
.add(pfUser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(15, 15, 15)
.add(btnLog)
.add(14, 14, 14)
.add(btnEdit)
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jLabel1.setBackground(new java.awt.Color(0, 0, 0));
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14));
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setText("USER LOGIN");
org.jdesktop.layout.GroupLayout puserLayout = new org.jdesktop.layout.GroupLayout(puser);
puser.setLayout(puserLayout);
puserLayout.setHorizontalGroup(
puserLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, puserLayout.createSequentialGroup()
.add(51, 51, 51)
.add(puserLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(org.jdesktop.layout.GroupLayout.LEADING, scrPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
.add(puserLayout.createSequentialGroup()
.add(puserLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(lblTitle)
.add(puser2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(29, 29, 29)
.add(puserLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(puserLayout.createSequentialGroup()
.add(jLabel1)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 201, Short.MAX_VALUE))
.add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.add(60, 60, 60))
);
puserLayout.setVerticalGroup(
puserLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(puserLayout.createSequentialGroup()
.add(34, 34, 34)
.add(puserLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(lblTitle)
.add(jLabel1))
.add(19, 19, 19)
.add(puserLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
.add(puser2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.add(22, 22, 22)
.add(scrPane, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 115, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap(46, Short.MAX_VALUE))
);
userMenuBar.setBackground(new java.awt.Color(0, 0, 0));
userMenuBar.setForeground(new java.awt.Color(255, 255, 255));
userMenu.setBackground(new java.awt.Color(0, 0, 0));
userMenu.setForeground(new java.awt.Color(255, 255, 255));
userMenu.setText("Menu");
userMenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
userMenuActionPerformed(evt);
}
});
itemSearch.setText("Search");
userMenu.add(itemSearch);
itemEdit.setText("Edit Data");
userMenu.add(itemEdit);
userMenu.add(separator1);
itemExit.setText("Exit");
itemExit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
itemExitActionPerformed(evt);
}
});
userMenu.add(itemExit);
userMenuBar.add(userMenu);
userHelp.setBackground(new java.awt.Color(0, 0, 0));
userHelp.setForeground(new java.awt.Color(255, 255, 255));
userHelp.setText("Help");
itemHostHelp.setText("Host Help");
itemHostHelp.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
itemHostHelpActionPerformed(evt);
}
});
userHelp.add(itemHostHelp);
itemHelp.setText("Search Help");
userHelp.add(itemHelp);
userMenuBar.add(userHelp);
setJMenuBar(userMenuBar);
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(puser, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, puser, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
}// </editor-fold>//GEN-END:initComponents
//Opens the data editing Window
private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditActionPerformed
Object src = evt.getSource();
if (src.equals(btnEdit)) {
DataGUI edit = new DataGUI();
}
}//GEN-LAST:event_btnEditActionPerformed
private void btnLogActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLogActionPerformed
// Object src = evt.getSource();
// if (src.equals(btnLog)) {
// String fromServer;
// try {
//
// //Shorten my Jfields
// String uzer = tfUserN.getText();
// String uword = new String(pfUser.getPassword());
//
// //Writes to the query to the server
// out.println(
// "SELECT * FROM Uzerz " +
// "WHERE uzer_name = '" + uzer + "'" +
// "AND pazzword = '" + uword + "'i*");
//
// //Reading feedback from server
// fromServer = in.readLine();
// System.out.println(fromServer);
//
// //Checks to see if the userName and password is correct
// if (fromServer.equals("badlogin")) {
// JOptionPane.showMessageDialog(null,"The username or " +
// "password is incorrect",
// "Login failed",
// JOptionPane.WARNING_MESSAGE);
// } else if (fromServer.equals("goodlogin")){
// JOptionPane.showMessageDialog(null,
// "Login Successfull",
// "Valid Data",
// JOptionPane.WARNING_MESSAGE);
// btnEdit.setEnabled(true);
// }
// } catch(IOException ioe) {
// JOptionPane.showMessageDialog(null,
// ioe.toString(),
// "IO Error",
// JOptionPane.ERROR_MESSAGE);
// } catch(Exception eer) {
// JOptionPane.showMessageDialog(null,
// eer.toString(),
// "Error Message",
// JOptionPane.ERROR_MESSAGE);
// }
// }
}//GEN-LAST:event_btnLogActionPerformed
private void userMenuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_userMenuActionPerformed
}//GEN-LAST:event_userMenuActionPerformed
//Reconnects to Server If not connected //For Exiting client programme
private void itemExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemExitActionPerformed
// Object src = evt.getSource();
// if (src.equals(itemExit)) {
// int choice = JOptionPane.showConfirmDialog(null,
// "Are you sure that you want to exit? ",
// "Exit Conirmation",
// JOptionPane.YES_NO_OPTION,
// JOptionPane.QUESTION_MESSAGE);
//
// //If User chooses yes
// //Client closes all its conections & exits
// if (choice == JOptionPane.YES_OPTION) {
// try {
// soc.close();
// in.close();
// out.close();
// System.exit(1);
// } catch(IOException ioe) {
// JOptionPane.showMessageDialog(null,
// ioe.toString(),
// "IO Error",
// JOptionPane.ERROR_MESSAGE);
// } catch(Exception err) {
// JOptionPane.showMessageDialog(null,
// err.toString(),
// "Error",
// JOptionPane.ERROR_MESSAGE);
// }
// }
// }
}//GEN-LAST:event_itemExitActionPerformed
//Button action is used to search
private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSearchActionPerformed
Object src = evt.getSource();
if (src.equals(btnSearch)) {
//Setting tblMovie
rowz = new Object[0][4];
tblMovie = new JTable(rowz,columnNames);
scrPane.getViewport().add(tblMovie);
String fromServ;
String query;
//Shortening My textFiels' names
String title = tfSearchMov.getText();
String genre = tfGenre.getText();
//The Movie Fields Must match the following
Pattern pat = Pattern.compile("^[A-Z1-9]+[\\s\\w\\d]*");
Matcher m = pat.matcher(title);
boolean a = m.matches();
//When both fields are empty
//Then Display Message
if(title.equals("") && genre.equals("")) {
JOptionPane.showMessageDialog(null,
"Please Enter Movie OR Genre to search " +
"to search movie Record",
"Invalid Data",
JOptionPane.WARNING_MESSAGE);
}
//When Genre Field Is Empty
//Then This will Send Movie data
if (genre.equals("")) {
//Checks to see if movie title is typed correctly
//Will display message if not typed in capital letters
if(!a) {
JOptionPane.showMessageDialog(null,
"Make sure that Movir title is typed in capital letters",
"Invalid Data",
JOptionPane.WARNING_MESSAGE);
} else {
//Else the following code will start sending Movie Data
try {
out.println(title + "$");
String fromServer = in.readLine();
System.out.println(fromServer);
} catch(IOException ioe) {
JOptionPane.showMessageDialog(null,
ioe.toString(),
"IO Error",
JOptionPane.WARNING_MESSAGE);
} catch(Exception eer) {
JOptionPane.showMessageDialog(null,
eer.toString(),
"Error",
JOptionPane.ERROR_MESSAGE);
}
}
}
}
}//GEN-LAST:event_btnSearchActionPerformed
//This method is going to populate the table
/**
* Populates the tables
* @param ret Holds the records returned from server
*/
public void fillTable(TreeSet<String> movSet) {
int rN = 0;
int cN = 0;
Scanner scan;
//This is going to add all the rows in the collection to the table
for (String row : movSet) {
scan = new Scanner(row);
scan.useDelimiter(",");
//While there is a next token
while (scan.hasNext()) {
rowz[rN][cN] = scan.next();
cN++;
}
cN = 0;
rN++;
}
tblMovie = new JTable(rowz,columnNames);
scrPane.getViewport().add(tblMovie);
}
//Used to invoke search
private void itemHostHelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_itemHostHelpActionPerformed
Object source = evt.getSource();
if (source.equals(itemHostHelp)) {
JOptionPane.showMessageDialog(null,
"If You are running this application on one pc then \n " +
"use This: 127.0.0.1 IP address \n " +
"Make sure you type in exactly the above IP address. \n " +
"Otherwise use another PC's IP address If you are running \n " +
"the client on a separate PC.");
}
}//GEN-LAST:event_itemHostHelpActionPerformed
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new mUserGUI().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
public javax.swing.JButton btnEdit;
public javax.swing.JButton btnLog;
public javax.swing.JButton btnSearch;
public javax.swing.JMenuItem itemEdit;
public javax.swing.JMenuItem itemExit;
public javax.swing.JMenuItem itemHelp;
public javax.swing.JMenuItem itemHostHelp;
public javax.swing.JMenuItem itemSearch;
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
public javax.swing.JLabel lblOR;
public javax.swing.JLabel lblSearchGen;
public javax.swing.JLabel lblSearchMov;
public javax.swing.JLabel lblTitle;
public javax.swing.JLabel lblUserN;
public javax.swing.JLabel lblUserword;
private javax.swing.JPasswordField pfUser;
public javax.swing.JPanel puser;
public javax.swing.JPanel puser2;
public javax.swing.JScrollPane scrPane;
public javax.swing.JSeparator separator1;
public javax.swing.JTable tblMovie;
public javax.swing.JTextField tfGenre;
public javax.swing.JTextField tfSearchMov;
public javax.swing.JTextField tfUserN;
public javax.swing.JMenu userHelp;
public javax.swing.JMenu userMenu;
public javax.swing.JMenuBar userMenuBar;
// End of variables declaration//GEN-END:variables
}