// File generated by JGuiGen: UserLogData
// NOTE: REMEMBER - The last version of the Class and Resource Bundle are named *.bak // ***********************
// You have asked to describe data for a CheckBox from the XMLIni file
// In order to do this four things have to happen (ONCE!):
// 1, JGuiGen will place a set of XML codes in the XMLIni file
// (e.g. ??)
// 2, You must enter the values you want to build the CheckBox with (where the ?? is in the line above)
// The ?? must be replaced with value-in-the-database for IsSelected to be true.
// for example if you want to represent a person as ACTIVE and the database.
// contains "Y" for an active person your XmlIni file would have.
// one line to repesent this 'Y'.
// Another line repesents the NOT-SELECTED value like this 'N'.
// NOTE: Checkboxes are used as the DEFAULT for Boolean columns. They will automatically give you a checkbox for true/false .
// NOTE: This code must be in the Model.class and the XmlIni file before JGuiGen can properly .
// generate the code for this CheckBox
// 3. You should check that the java code to read these XML codes was added to Model.java
// 4. You should check to see that a getter method was added to Model.java
// Note: the call to get the codes will be generated automatically.
//
// 1. The following lines (minus the //) will be added to your XMLIni file
// Fill in with code that is in the database with the checkbox = isSelected(true)
// StandardYN is not done - it is already there.

// 3a. These String[] definition will be at place7 in Model.java
// StandardYN is not done - it is already there.

// 3b The code to fill the String[] will be at place8 in Model.java
// StandardYN is not done - it is already there.

// StandardYN is not done - it is already there.
// ***********************
// You have asked to describe a RadioButton Group from the XMLIni file
// In order to do this four things have to happen (ONCE!):
// 1, JGuiGen will place a set of XML codes in the XMLIni file
// (e.g. ????)
// (e.g. ??)
// 2, You must enter the values you want to build the RadioButton with (where the ?? is in the line above)
// On the creditcardCode (replace 'creditcard' with your own word) line, the ???? must be replaced with value-in-the-database.
// On the creditcard line (again replace 'creditcard'), the ?? must be replaced with name for the button.
// for example if you want to represent gender with a radio button and the database.
// contains "M" for maile, "F" for female and "U" for Unknown, your XmlIni file would
// have six lines to represent this Male.
// Male.
// F.
// Female.
// U/genderCode2>.
// Uk.
// You will get three buttons Male, Female and UK.
// NOTE: This code must be in the Model.class and the XmlIni file before JGuiGen can properly .
// generate the code for this RadioButton
// 3. You should check that the java code to read these XML codes was added to Model.java
// 4. You should check to see that a getter method was added to Model.java
// Note: the call to get the codes will be generated automatically.
//
// 1. The following lines (minus the //) will be added to your XMLIni file
// Fill in with code lines and name lines e.g. F and Female
//
//

//
//

//
//


// 3a. These String[] definition will be at place7 in Model.java
// private String[] genderCodes = new String[3];
// private String[] genderCodeCodes = new String[3];
//

// 3b The code to fill the String[] will be at place8 in Model.java
// genderCodes[0] = ini.getProfile("Company", "gender0");
// genderCodeCodes[0] = ini.getProfile("Company", "gendercode0");
// // genderCodes[1] = ini.getProfile("Company", "gender1");
// genderCodeCodes[1] = ini.getProfile("Company", "gendercode1");
// // genderCodes[2] = ini.getProfile("Company", "gender2");
// genderCodeCodes[2] = ini.getProfile("Company", "gendercode2");
//
// 4. The getter code will be at place9 in model.java
/**
*
* Description - get method to get genderCodes array (used in JGuiGen combobox/JList filling)
*
*/
// public String[][] getGenderCodes() {
// int cnt=0;
//
// for (int i =0;i < genderCodes.length; i++){
// if (genderCodes[i].trim().length() > 0 || i == 0){cnt++;}}
// String[][] tmp = new String[cnt][2];
// cnt = -1;
// for (int i =0;i < genderCodes.length; i++){
// if (genderCodes[i].trim().length() > 0 || i == 0){cnt++;
// tmp[cnt][0] = genderCodes[i];
// tmp[cnt][1] = genderCodeCodes[i];}}
// // return tmp;
// }
// //// // ***********************
// You have asked to fill a JComboBox from the XMLIni file
// In order to do this four things have to happen (ONCE!):
// 1, JGuiGen will place a set of XML codes in the XMLIni file
// (e.g. ??)
// 2. You must enter the values you want in the combobox (where the ?? is in the line above)
// 3. You should check that the java code to read these XML codes was added to Model.java
// 4. You should check to see that a getter method was added to Model.java
// Note: the call to get the codes will be generated automatically.
//
// 1. The following lines (minus the //) will be added to your XMLIni file
// Fill in with the items that should drop down from the combobox
//
//
//
//
//
//
//
//
//
//
//
//
//
//

// 3a. These String[] definition will be at place7 in Model.java
// private String[] departmentCodes = new String[7];
// //

// 3b The code to fill the String[] will be at place8 in Model.java
// departmentCodes[0] = ini.getProfile("Company", "department0");
// // // departmentCodes[1] = ini.getProfile("Company", "department1");
// // // departmentCodes[2] = ini.getProfile("Company", "department2");
// // // departmentCodes[3] = ini.getProfile("Company", "department3");
// // // departmentCodes[4] = ini.getProfile("Company", "department4");
// // // departmentCodes[5] = ini.getProfile("Company", "department5");
// // // departmentCodes[6] = ini.getProfile("Company", "department6");
// //
// 4. The getter code will be at place9 in model.java
/**
*
* Description - get method to get departmentCodes array (used in JGuiGen combobox/JList filling)
*
*/
// public String[] getDepartmentCodes() {
// int cnt=0;
//
// for (int i =0;i < departmentCodes.length; i++){
// if (departmentCodes[i].trim().length() > 0 || i == 0){cnt++;}}
// String[] tmp = new String[cnt];
// cnt = -1;
// for (int i =0;i < departmentCodes.length; i++){
// if (departmentCodes[i].trim().length() > 0 || i == 0){cnt++;
// tmp[cnt] = departmentCodes[i];}}
// // // return tmp;
// }
// //// // ***********************
// You have asked to describe data for a CheckBox from the XMLIni file
// In order to do this four things have to happen (ONCE!):
// 1, JGuiGen will place a set of XML codes in the XMLIni file
// (e.g. ??)
// 2, You must enter the values you want to build the CheckBox with (where the ?? is in the line above)
// The ?? must be replaced with value-in-the-database for IsSelected to be true.
// for example if you want to represent a person as ACTIVE and the database.
// contains "Y" for an active person your XmlIni file would have.
// one line to repesent this 'Y'.
// Another line repesents the NOT-SELECTED value like this 'N'.
// NOTE: Checkboxes are used as the DEFAULT for Boolean columns. They will automatically give you a checkbox for true/false .
// NOTE: This code must be in the Model.class and the XmlIni file before JGuiGen can properly .
// generate the code for this CheckBox
// 3. You should check that the java code to read these XML codes was added to Model.java
// 4. You should check to see that a getter method was added to Model.java
// Note: the call to get the codes will be generated automatically.
//
// 1. The following lines (minus the //) will be added to your XMLIni file
// Fill in with code that is in the database with the checkbox = isSelected(true)
// StandardTF is not done - it is already there.

// 3a. These String[] definition will be at place7 in Model.java
// private String[] standardtfCodes = new String[2];
// //

// 3b The code to fill the String[] will be at place8 in Model.java
// StandardTF is not done - it is already there.

// StandardTF is not done - it is already there.
// **** Generated GUI code

package com.halepringle.src; //com.halepringle.src
import java.awt.*;
import java.awt.font.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.awt.event.*;
import java.awt.print.*;
import javax.swing.JTable;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.*;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.util.*;
import java.awt.datatransfer.*;
import java.util.prefs.*;
import java.text.Format.*;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JPanel;
import java.awt.Label;
import java.io.*;
import java.net.*;
import javax.help.*;
import javax.swing.text.MaskFormatter.*;
import javax.swing.JFormattedTextField.*;
import java.lang.*;
import javax.swing.tree.*;
import java.util.prefs.Preferences;
import java.util.logging.*;
import org.jfree.report.Boot;
import org.jfree.report.JFreeReport;
import org.jfree.report.modules.gui.base.PreviewFrame;
import org.jfree.report.modules.gui.base.components.ActionButton;
import org.jfree.report.modules.gui.base.components.ActionDowngrade;
import org.jfree.report.modules.gui.base.components.ActionMenuItem;
import org.jfree.report.modules.gui.base.components.FloatingButtonEnabler;
import org.jfree.report.modules.parser.base.ReportGenerator;
import org.jfree.report.util.Log;
import org.jfree.ui.RefineryUtilities;
import org.jfree.ui.about.AboutFrame;
//

JxFrame Example - Includes for borders



import javax.swing.BorderFactory;
import javax.swing.border.*;
import javax.swing.border.TitledBorder;
import java.beans.*;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.text.*;
import java.text.*;
import java.sql.*;
import javax.sql.*;
import javax.swing.plaf.*;
import javax.swing.plaf.basic.*;
import javax.accessibility.*;
import java.awt.geom.*;
import com.halepringle.standard.DateDialog;
import com.halepringle.standard.MutableInteger;
/**
*
* Description - UserLogData - Contain User Login data, Rights to view Screens, etc XXXX
* GUI Program generated by JGuiGen
* @author Hale Pringle
* @version - version 1.3
*
*
*/
public class UserLogData extends javax.swing.JPanel implements ActionListener,Printable {
static Locale currentLocale = Locale.getDefault();
static java.util.ResourceBundle UserLogDataRb = java.util.ResourceBundle.getBundle("UserLogDataRb")/*#BundleType=Property*/;
static Preferences UserLogDataPrefs;
/* Establish the shared JTextArea Screen with error messages */;
JTextArea jTextLog;
dataObj rowObj = new dataObj();
dataObj newRowObj = new dataObj();
static Preferences JGuiGenPrefs;
String inActiveFieldName = "";
//
/** SECTION 1- SETUP CONSTANTS and DECLARE VISUAL COMPONANTS */
//
//

SECTION 1- SETUP CONSTANTS and DECLARE VISUAL COMPONANTS



// Place the butten and JTextField definitiona here
// should not need to set it up com.halepringle.standard.DateDialog dateDialog = new com.halepringle.standard.DateDialog();
java.util.Calendar retCal = null;
//

#JxFrame Example - JxFrame Declaration & Setting Title #



/** Used for scrolling the entire JPanel */
static JPanel paneUtm;
static JScrollPane spUtm;
JMenuBar btnPanel;
static private Logger logger;
public TitledBorder titledBorder;
Cursor cursor;
// var used to hold temporary info in building checkboxes
String tmpCode = "";
static com.halepringle.standard.JxFrame jFutm = new com.halepringle.standard.JxFrame();
com.halepringle.standard.JxButton btnHelp = new com.halepringle.standard.JxButton();
com.halepringle.standard.JxButton btnCancel = new com.halepringle.standard.JxButton();
com.halepringle.standard.JxButton btnXtra = new com.halepringle.standard.JxButton();
com.halepringle.standard.JxButton btnPrint = new com.halepringle.standard.JxButton();
com.halepringle.standard.JxButton btnSave = new com.halepringle.standard.JxButton();
com.halepringle.standard.JxButton btnFind = new com.halepringle.standard.JxButton();
com.halepringle.standard.JxButton btnClear = new com.halepringle.standard.JxButton();
com.halepringle.standard.JxButton btnNext = new com.halepringle.standard.JxButton();
com.halepringle.standard.JxButton btnPrevious = new com.halepringle.standard.JxButton();
com.halepringle.standard.JxButton btnDelete = new com.halepringle.standard.JxButton();
com.halepringle.standard.JxButton btnDup = new com.halepringle.standard.JxButton();
/** Menu item for changing look & feel*/
JMenuItem item44;
public JPopupMenu popup;
java.awt.Font fancyFont;// =
// new java.awt.Font(UserLogDataRb.getString("Serif","UserLogData"), java.awt.Font.BOLD | java.awt.Font.ITALIC, 16);
// Associate the font with the label
com.halepringle.standard.JxLabel lbl__Title = new com.halepringle.standard.JxLabel();
com.halepringle.standard.MutableInteger user_id;
//

JxFrame Example - Declaration of border variables



Border raisedbevel = BorderFactory.createRaisedBevelBorder();
Border loweredbevel = BorderFactory.createLoweredBevelBorder();

Border compound;
LineBorder redBorder = new LineBorder(Color.red);
// After you run the FIND button this query is active. Reuse it after a Delete
/** Current SQL Where clause for the JTable */
String currentQuery = "";
/** variable used to avoid seeing "abort these changes" twice */;
boolean goingBack = false;

/** Variables used for clicking on table hearder and requery orderd by column selected */
String[] currDirection;
String currOrderByColumn = "";
String ascendDescend = "A";
String queryTitle="";
HelpSet hs;
HelpBroker hb;
//

#JxFrame Example - JxFrame Decalaration for inside class #



public com.halepringle.standard.JxFrame frame;
public com.halepringle.standard.Model model;
/** Three fields used by the PRINT method */
public int pageHeight;
public int pageWidth;
public int numPages;
/** Temp Id number used by DUP method to go to the new record */
public int newId;
private boolean DEBUG;
/** Optional system for allowing users only selected reights in the screen (no edit, no add etc) */
private int rights = 0;
/** Used to determine if the buttons in the menus should have TEXT in them */
String textInMenu = "Y";
/** Used to determine if the buttons in the menus should have ICONS in them */
String iconsInMenu = "Y";
// Obviously NO NO is pretty useless

/** Set up tooltips for the headers in the JTable*/
com.halepringle.standard.ColumnHeaderToolTips tableTips;
/** Used to determine if the menu should be at the top of bottom of the screen */
String menuAtTop = "Y";
// **** These are used if you are going to generate a table
int tableColumnCount = 5;
TableColumnModel tcm;
ListSelectionModel lsm;
JTable table;
ResultSet tableRs;
/*This is used to save the row number of the last inserted row. If it is not zero the JTable starts that this row*/
private int newTableRow = 0;
//the jviewport is used to automatically scroll a jtable to a newly added row
private JViewport tablePort;
private JScrollPane tableScrollPane;
com.halepringle.standard.TableSorter sorter;
MyTableModel myModel;
// **** These are used if you are going to generate a table

private Object[][] data;
DateFormat formatter = DateFormat.getDateInstance(DateFormat.SHORT); //new SimpleDateFormat("dd/MM/yy");
SimpleDateFormat formatterStd = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat formatterTsStd = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
DateFormat formatterLong = DateFormat.getDateTimeInstance(DateFormat.LONG,
DateFormat.LONG);
DateFormat formatterShort = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.LONG);
DateFormat formatterMedium = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.LONG);
SimpleDateFormat formatterDateShort = new SimpleDateFormat();// this one will be mm/dd/yyyy
DateFormat formatterTimeShort = DateFormat.getTimeInstance(DateFormat.SHORT);
DateFormat formatterTimeMedium = DateFormat.getTimeInstance(DateFormat.MEDIUM);
SimpleDateFormat formatterStdTime = new SimpleDateFormat("HH:mm");
SimpleDateFormat formatterStdTimeWSecs = new SimpleDateFormat("HH:mm:ss");
/**Temporary Date field for parsing and converting */
java.util.Date tmpDate;




/** Variables used when clicking on different rows in JTable */
int selectedRow = 0;
int oldDisplayRow = 0;

java.util.Calendar calendar = java.util.Calendar.getInstance();
DateFormat dft = DateFormat.getDateInstance(DateFormat.MEDIUM);
DateFormat tft = DateFormat.getTimeInstance(DateFormat.SHORT);
java.util.Date date = calendar.getTime();
Calendar tmpNullCal = new GregorianCalendar(0,0,1);
java.util.Date tmpNullDate = new java.util.Date(tmpNullCal.getTime().getTime());
String sDate = dft.format(date);
String sTime = tft.format(date);
// XXXX make sure nstances of user_id are really propoer as the primary key
// If your primary key is more than one field you will have more changes to amke
// MutableInteger user_id;
String vars_UserLogData = "";
String values_UserLogData = "";
String update_UserLogData = "";
boolean addRights = true;
boolean editRights = true;
boolean deleteRights = true;
String changeMsg = "";
String tmpString = "";
String updateOrInsert = "Update";
/** Two variable to hold whether "true" = true or 1 )Prac;e amd MySQL) */
static String trueValue = "true";
static String falseValue = "false";
DecimalFormat fmtInt = new DecimalFormat();
DecimalFormat fmtInt1 = new DecimalFormat("#,###,###");
DecimalFormat fmtDec1; // = new DecimalFormat(UserLogDataRb.getString("decimal1_###,###.#","));
DecimalFormat fmtDec2;// = new DecimalFormat(UserLogDataRb.getString("decimal2_###,###.##","));
DecimalFormat fmtDollar; // = new DecimalFormat(UserLogDataRb.getString("Money_$###,###.##","));
String tmpStr;
private UserLogDataTableModel utm;
/* these lines are used if you have a table */
/* these constants are used to determine the order columns are displayed in the table. */
/* If you juggle the column numbers in the first set */
/* do the same with the column headers and the widths */
/*** You will need to modify the length and 'widths' assigned to each column */
public final int UTM_USER_ID = 0;
public final int UTM_FIRSTNAME = 1;
public final int UTM_MIDDLENAME = 2;
public final int UTM_LASTNAME = 3;
public final int UTM_LOGIN_NAME = 4;
public final int UTM_ADDRESS1 = 5;
public final int UTM_ADDRESS2 = 6;
public final int UTM_CITY = 7;
public final int UTM_STATE = 8;
public final int UTM_ZIP = 9;
public final int UTM_EMAIL = 10;
public final int UTM_OFFICEPHONE = 11;
public final int UTM_HOMEPHONE = 12;
public final int UTM_HIREAGE = 13;
public final int UTM_USERPHOTOURL = 14;
public final int UTM_RESUMEURL = 15;
public final int UTM_TITLE = 16;
public final int UTM_DEPARTMENT = 17;
public final int UTM_AUTHORITYGROUP1 = 18;
public final int UTM_AUTHORITYGROUP2 = 19;
public final int UTM_START_DATE = 20;
public final int UTM_WP_PATH = 21;
public final int UTM_BROW_PATH = 22;
public final int UTM_CATEGORY = 23;
public final int UTM_SSN = 24;
public final int UTM_LOGINTIME = 25;
public final int UTM_LOGFLD = 26;
public final int UTM_IPADDS = 27;
public final int UTM_LOGON_COUNT = 28;
public final int UTM_USERLOCK = 29;
public final int UTM_TABLE_UPDT = 30;
public final int UTM_MACH_NAME = 31;
public final int UTM_XML_DTTIME = 32;
public final int UTM_XML_DATE = 33;
public final int UTM_LASTCHANGEDDATE = 34;
public final int UTM_LASTCHANGEDBY = 35;
public final int UTM_SCREEN0 = 36;
public final int UTM_SCREEN1 = 37;
public final int UTM_SCREEN2 = 38;
public final int UTM_SCREEN3 = 39;
public final int UTM_SCREEN4 = 40;
public final int UTM_SCREEN5 = 41;
public final int UTM_SCREEN6 = 42;
public final int UTM_SCREEN7 = 43;
public final int UTM_SCREEN8 = 44;
public final int UTM_SCREEN9 = 45;
public final int UTM_VIEWHISTORY_DTTIME = 46;
public final int UTM_PASSWORD = 47;
public final int UTM_LASTLOGON = 48;
public final int UTM_FIRSTLOGON = 49;
public final int UTM_NOTES = 50;
public final int UTM_SKILLADMIN = 51;
public final int UTM_SKILLRESEARCH = 52;
public final int UTM_SKILLTYPING = 53;
public final int UTM_SKILLCOMPUTER = 54;
public final int UTM_QUERY_CLASSNAME = 55;
public final int UTM_QUERY_TEMPLATE = 56;
public final int UTM_QUERY_COLCOUNT = 57;
public final int UTM_QUERY_TYPE = 58;
public final int UTM_QUERY_NAME = 59;
public final int UTM_QUERY_USERNAME = 60;
final String[] columnHeaders =
{
"user_id" //user_id
,"firstname" //firstname
,"middlename" //middlename
,"lastname" //lastname
,"login_name" //login_name
,"address1" //address1
,"address2" //address2
,"city" //city
,"state" //state
,"zip" //zip
,"email" //email
,"officephone" //officephone
,"homephone" //homephone
,"hireage" //hireage
,"userphotourl" //userphotourl
,"resumeurl" //resumeurl
,"title" //title
,"department" //department
,"authoritygroup1" //authoritygroup1
,"authoritygroup2" //authoritygroup2
,"start_date" //start_date
,"wp_path" //wp_path
,"brow_path" //brow_path
,"category" //category
,"ssn" //ssn
,"logintime" //logintime
,"logfld" //logfld
,"ipadds" //ipadds
,"logon_count" //logon_count
,"userlock" //userlock
,"table_updt" //table_updt
,"mach_name" //mach_name
,"xml_dttime" //xml_dttime
,"xml_date" //xml_date
,"lastchangeddate" //lastchangeddate
,"lastchangedby" //lastchangedby
,"screen0" //screen0
,"screen1" //screen1
,"screen2" //screen2
,"screen3" //screen3
,"screen4" //screen4
,"screen5" //screen5
,"screen6" //screen6
,"screen7" //screen7
,"screen8" //screen8
,"screen9" //screen9
,"viewhistory_dttime" //viewhistory_dttime
,"password" //password
,"lastlogon" //lastlogon
,"firstlogon" //firstlogon
,"notes" //notes
,"skill admin" //skill admin
,"skillresearch" //skillresearch
,"skilltyping" //skilltyping
,"skillcomputer" //skillcomputer
,"query_classname" //query_classname
,"query_template" //query_template
,"query_colcount" //query_colcount
,"query_type" //query_type
,"query_name" //query_name
,"query_username" //query_username
};
Object[][] queryData =
{
{"user_id","N","","","",new String[0], "user_id" } //user_id
, {"firstname","C","","","",new String[0], "firstName" } //firstname
, {"middlename","C","","","",new String[0], "middleName" } //middlename
, {"lastname","C","","","",new String[0], "lastname" } //lastname
, {"login_name","C","","","",new String[0], "login_name" } //login_name
, {"address1","C","","","",new String[0], "address1" } //address1
, {"address2","C","","","",new String[0], "address2" } //address2
, {"city","C","","","",new String[0], "city" } //city
, {"state","C","","","",new String[0], "state" } //state
, {"zip","C","","","",new String[0], "zip" } //zip
, {"email","C","","","",new String[0], "email" } //email
, {"officephone","C","","","",new String[0], "officephone" } //officephone
, {"homephone","C","","","",new String[0], "homePhone" } //homephone
, {"hireage","N","","","",new String[0], "hireAge" } //hireage
, {"userphotourl","C","","","",new String[0], "userphotoUrl" } //userphotourl
, {"resumeurl","C","","","",new String[0], "resumeUrl" } //resumeurl
, {"title","C","","","",new String[0], "title" } //title
, {"department","C","","","",new String[0], "department" } //department
, {"authoritygroup1","C","","","",new String[0], "authorityGroup1" } //authoritygroup1
, {"authoritygroup2","C","","","",new String[0], "authorityGroup2" } //authoritygroup2
, {"start_date","D","","","",new String[0], "start_Date" } //start_date
, {"wp_path","C","","","",new String[0], "wp_path" } //wp_path
, {"brow_path","C","","","",new String[0], "brow_path" } //brow_path
, {"ipaddress","C","","","",new String[0], "ipaddress" } //ipaddress
, {"category","N","","","",new String[0], "category" } //category
, {"ssn","C","","","",new String[0], "ssn" } //ssn
, {"logintime","T","","","",new String[0], "loginTime" } //logintime
, {"logfld","C","","","",new String[0], "logfld" } //logfld
, {"ipadds","C","","","",new String[0], "ipAdds" } //ipadds
, {"logon_count","N","","","",new String[0], "logon_count" } //logon_count
, {"userlock","C","","","",new String[0], "userLock" } //userlock
, {"table_updt","N","","","",new String[0], "table_Updt" } //table_updt
, {"mach_name","C","","","",new String[0], "mach_name" } //mach_name
, {"xml_dttime","DT","","","",new String[0], "xml_DtTime" } //xml_dttime
, {"xml_date","D","","","",new String[0], "xml_Date" } //xml_date
, {"lastchangeddate","DT","","","",new String[0], "lastchangeddate" } //lastchangeddate
, {"lastchangedby","C","","","",new String[0], "lastchangedby" } //lastchangedby
, {"screen0","N","","","",new String[0], "screen0" } //screen0
, {"screen1","N","","","",new String[0], "screen1" } //screen1
, {"screen2","N","","","",new String[0], "screen2" } //screen2
, {"screen3","N","","","",new String[0], "screen3" } //screen3
, {"screen4","N","","","",new String[0], "screen4" } //screen4
, {"screen5","N","","","",new String[0], "screen5" } //screen5
, {"screen6","N","","","",new String[0], "screen6" } //screen6
, {"screen7","N","","","",new String[0], "screen7" } //screen7
, {"screen8","N","","","",new String[0], "screen8" } //screen8
, {"screen9","N","","","",new String[0], "screen9" } //screen9
, {"screen10","N","","","",new String[0], "screen10" } //screen10
, {"viewhistory_dttime","DT","","","",new String[0], "viewhistory_dttime" } //viewhistory_dttime
, {"password","C","","","",new String[0], "password" } //password
, {"lastlogon","DT","","","",new String[0], "lastLogon" } //lastlogon
, {"firstlogon","DT","","","",new String[0], "firstlogon" } //firstlogon
, {"notes","C","","","",new String[0], "notes" } //notes
, {"Skill Admin","C","","","",new String[0], "skillAdmin" } //Skill Admin
, {"skillresearch","C","","","",new String[0], "skillResearch" } //skillresearch
, {"skilltyping","C","","","",new String[0], "skillTyping" } //skilltyping
, {"skillcomputer","C","","","",new String[0], "skillComputer" } //skillcomputer
, {"query_classname","C","","","",new String[0], "query_Classname" } //query_classname
, {"query_template","C","","","",new String[0], "query_template" } //query_template
, {"query_colcount","N","","","",new String[0], "query_ColCount" } //query_colcount
, {"query_type","C","","","",new String[0], "query_Type" } //query_type
, {"query_name","C","","","",new String[0], "query_Name" } //query_name
, {"query_username","C","","","",new String[0], "query_Username" } //query_username
};
String[] queryFieldNames =
{
"user_id" //user_id
,"firstName" //firstName
,"middleName" //middleName
,"lastname" //lastname
,"login_name" //login_name
,"address1" //address1
,"address2" //address2
,"city" //city
,"state" //state
,"zip" //zip
,"email" //email
,"officephone" //officephone
,"homePhone" //homePhone
,"hireAge" //hireAge
,"userphotoUrl" //userphotoUrl
,"resumeUrl" //resumeUrl
,"title" //title
,"department" //department
,"authorityGroup1" //authorityGroup1
,"authorityGroup2" //authorityGroup2
,"start_Date" //start_Date
,"wp_path" //wp_path
,"brow_path" //brow_path
,"ipaddress" //ipaddress
,"category" //category
,"ssn" //ssn
,"loginTime" //loginTime
,"logfld" //logfld
,"ipAdds" //ipAdds
,"logon_count" //logon_count
,"userLock" //userLock
,"table_Updt" //table_Updt
,"mach_name" //mach_name
,"xml_DtTime" //xml_DtTime
,"xml_Date" //xml_Date
,"lastchangeddate" //lastchangeddate
,"lastchangedby" //lastchangedby
,"screen0" //screen0
,"screen1" //screen1
,"screen2" //screen2
,"screen3" //screen3
,"screen4" //screen4
,"screen5" //screen5
,"screen6" //screen6
,"screen7" //screen7
,"screen8" //screen8
,"screen9" //screen9
,"screen10" //screen10
,"viewhistory_dttime" //viewhistory_dttime
,"password" //password
,"lastLogon" //lastLogon
,"firstlogon" //firstlogon
,"notes" //notes
,"skillAdmin" //skillAdmin
,"skillResearch" //skillResearch
,"skillTyping" //skillTyping
,"skillComputer" //skillComputer
,"query_Classname" //query_Classname
,"query_template" //query_template
,"query_ColCount" //query_ColCount
,"query_Type" //query_Type
,"query_Name" //query_Name
,"query_Username" //query_Username
};

//NOTE: these of the sql column names for the columns in your jtable
//NOTE: If you rearrange you jtable columns, you must change order of the columnheaders
//note: and the order of the column names in this string[]

final String[] columnNames =
{
"user_id" //user_id
,"firstname" //firstname
,"middlename" //middlename
,"lastname" //lastname
,"login_name" //login_name
,"address1" //address1
,"address2" //address2
,"city" //city
,"state" //state
,"zip" //zip
,"email" //email
,"officephone" //officephone
,"homephone" //homephone
,"hireage" //hireage
,"userphotourl" //userphotourl
,"resumeurl" //resumeurl
,"title" //title
,"department" //department
,"authoritygroup1" //authoritygroup1
,"authoritygroup2" //authoritygroup2
,"start_date" //start_date
,"wp_path" //wp_path
,"brow_path" //brow_path
,"category" //category
,"ssn" //ssn
,"logintime" //logintime
,"logfld" //logfld
,"ipadds" //ipadds
,"logon_count" //logon_count
,"userlock" //userlock
,"table_updt" //table_updt
,"mach_name" //mach_name
,"xml_dttime" //xml_dttime
,"xml_date" //xml_date
,"lastchangeddate" //lastchangeddate
,"lastchangedby" //lastchangedby
,"screen0" //screen0
,"screen1" //screen1
,"screen2" //screen2
,"screen3" //screen3
,"screen4" //screen4
,"screen5" //screen5
,"screen6" //screen6
,"screen7" //screen7
,"screen8" //screen8
,"screen9" //screen9
,"viewhistory_dttime" //viewhistory_dttime
,"password" //password
,"lastlogon" //lastlogon
,"firstlogon" //firstlogon
,"notes" //notes
,"skilladmin" //Skill Admin
,"skillresearch" //skillresearch
,"skilltyping" //skilltyping
,"skillcomputer" //skillcomputer
,"query_classname" //query_classname
,"query_template" //query_template
,"query_colcount" //query_colcount
,"query_type" //query_type
,"query_name" //query_name
,"query_username" //query_username
};

private int[] widths =
{
75 //user_id
, 75 //firstName
, 75 //middleName
, 75 //lastname
, 75 //login_name
, 75 //address1
, 75 //address2
, 75 //city
, 75 //state
, 75 //zip
, 75 //email
, 75 //officephone
, 75 //homePhone
, 75 //hireAge
, 75 //userphotoUrl
, 75 //resumeUrl
, 75 //title
, 75 //department
, 75 //authorityGroup1
, 75 //authorityGroup2
, 75 //start_Date
, 75 //wp_path
, 75 //brow_path
, 75 //category
, 75 //ssn
, 75 //loginTime
, 75 //logfld
, 75 //ipAdds
, 75 //logon_count
, 75 //userLock
, 75 //table_Updt
, 75 //mach_name
, 75 //xml_DtTime
, 75 //xml_Date
, 75 //lastchangeddate
, 75 //lastchangedby
, 75 //screen0
, 75 //screen1
, 75 //screen2
, 75 //screen3
, 75 //screen4
, 75 //screen5
, 75 //screen6
, 75 //screen7
, 75 //screen8
, 75 //screen9
, 75 //viewhistory_dttime
, 75 //password
, 75 //lastLogon
, 75 //firstlogon
, 75 //notes
, 75 //skillAdmin
, 75 //skillResearch
, 75 //skillTyping
, 75 //skillComputer
, 75 //query_Classname
, 75 //query_template
, 75 //query_ColCount
, 75 //query_Type
, 75 //query_Name
, 75 //query_Username
};


/** Used for UserLogData.user_id: User's ID number (primary key for this table)*/
com.halepringle.standard.WholeNumberField intUser_id = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.firstName: Given name for User*/
//

Bounded Text Field Example - declare the field



com.halepringle.standard.BoundedTextField txtFirstName = new com.halepringle.standard.BoundedTextField(30);

/** Used for UserLogData.middleName: Middle name of this User*/
com.halepringle.standard.BoundedTextField txtMiddleName = new com.halepringle.standard.BoundedTextField(30);

/** Used for UserLogData.lastname: Family Name for user*/
com.halepringle.standard.BoundedTextField txtLastname = new com.halepringle.standard.BoundedTextField(30);

/** Used for UserLogData.login_name: Name this user uses to log into the system with*/
com.halepringle.standard.BoundedTextField txtLogin_name = new com.halepringle.standard.BoundedTextField(30);

/** Used for UserLogData.partTime: Is this user part time?*/
JCheckBox chkPartTime = new JCheckBox();

/** Used for UserLogData.address1: Mailing Address 1*/
com.halepringle.standard.BoundedTextField txtAddress1 = new com.halepringle.standard.BoundedTextField(30);

/** Used for UserLogData.address2: Mailing Address 2*/
com.halepringle.standard.BoundedTextField txtAddress2 = new com.halepringle.standard.BoundedTextField(30);

/** Used for UserLogData.city: Mailing city for this user*/
com.halepringle.standard.BoundedTextField txtCity = new com.halepringle.standard.BoundedTextField(25);

/** Used for UserLogData.state: Mailing State for User*/
com.halepringle.standard.JSearchableComboBox cboState = new com.halepringle.standard.JSearchableComboBox();

/** Used for UserLogData.zip: Postal code for this user*/
com.halepringle.standard.BoundedTextField txtZip = new com.halepringle.standard.BoundedTextField(10);

/** Used for UserLogData.email: Email address of user*/
com.halepringle.standard.BoundedTextField txtEmail = new com.halepringle.standard.BoundedTextField(80);

/** Used for UserLogData.officephone: Office Phone - demo of Phone mask*/
JFormattedTextField txtOfficephone = new JFormattedTextField();

/** Used for UserLogData.homePhone: Home Phone - another demo of phone mask*/
JFormattedTextField txtHomePhone = new JFormattedTextField();

/** Used for UserLogData.hireAge: Age of this user at hire date*/
com.halepringle.standard.NumericTextField numHireAge
= new com.halepringle.standard.NumericTextField(15,fmtDec2);

/** Used for UserLogData.userphotoUrl: URL containing this user's photo*/
com.halepringle.standard.BoundedTextField txtUserphotoUrl = new com.halepringle.standard.BoundedTextField(120);
com.halepringle.standard.JxButton btnUserphotoUrl = new com.halepringle.standard.JxButton();

/** Used for UserLogData.resumeUrl: URL to this user's Resume*/
com.halepringle.standard.BoundedTextField txtResumeUrl = new com.halepringle.standard.BoundedTextField(2147483647);
com.halepringle.standard.JxButton btnResumeUrl = new com.halepringle.standard.JxButton();

/** Used for UserLogData.title: Title for this user*/
com.halepringle.standard.BoundedTextField txtTitle = new com.halepringle.standard.BoundedTextField(30);

/** Used for UserLogData.gender: Gender of the User*/
ButtonGroup bgGender = new ButtonGroup();
JRadioButton rbMale = new JRadioButton();
JRadioButton rbFemale = new JRadioButton();
JRadioButton rbUnknown = new JRadioButton();

/** Used for UserLogData.department: Department that this user belong to (demo of combobox)*/
JComboBox cboDepartment = new JComboBox();

/** Used for UserLogData.authorityGroup1: Group 1 this user belongs to (Autority to view/edit screens)*/
com.halepringle.standard.BoundedTextField txtAuthorityGroup1 = new com.halepringle.standard.BoundedTextField(2147483647);

/** Used for UserLogData.authorityGroup2: Group 2 this user belongs to (Autority to view/edit screens)*/
com.halepringle.standard.BoundedTextField txtAuthorityGroup2 = new com.halepringle.standard.BoundedTextField(2147483647);

/** Used for UserLogData.start_Date: Date the user started working for company*/
JTextField dtStart_DateText = new JTextField();
com.halepringle.standard.JxButton btnStart_Date = new com.halepringle.standard.JxButton();

/** Used for UserLogData.wp_path: Path to word process this user prefers*/
com.halepringle.standard.BoundedTextField txtWp_path = new com.halepringle.standard.BoundedTextField(150);

/** Used for UserLogData.brow_path: Path to browser that this user prefers*/
com.halepringle.standard.BoundedTextField txtBrow_path = new com.halepringle.standard.BoundedTextField(150);

/** Used for UserLogData.ipaddress: IP address this user logged in from*/
com.halepringle.standard.BoundedTextField txtIpaddress = new com.halepringle.standard.BoundedTextField(15);

/** Used for UserLogData.category: Category this user belongs to*/
com.halepringle.standard.NumericTextField numCategory
= new com.halepringle.standard.NumericTextField(15,fmtInt);

/** Used for UserLogData.ssn: Social Security Number for this User*/
JFormattedTextField txtSsn = new JFormattedTextField();

/** Used for UserLogData.loginTime: Time user logged in (Demo of Time Mask)*/
JFormattedTextField txtLoginTimeTime = new JFormattedTextField();

/** Used for UserLogData.logfld: Field where changes are logged*/
com.halepringle.standard.JxTextArea areaLogfld = new com.halepringle.standard.JxTextArea(4,80);
JScrollPane pareaLogfld = new JScrollPane(areaLogfld);

/** Used for UserLogData.ipAdds: Different IP Addresses that his used used to log in from*/
com.halepringle.standard.JxTextArea areaIpAdds = new com.halepringle.standard.JxTextArea(4,80);
JScrollPane pareaIpAdds = new JScrollPane(areaIpAdds);

/** Used for UserLogData.logon_count: Number of times the user logged in*/
com.halepringle.standard.WholeNumberField intLogon_count = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.userLock: Used for system updates. System sets value and others are locked out*/
com.halepringle.standard.BoundedTextField txtUserLock = new com.halepringle.standard.BoundedTextField(40);

/** Used for UserLogData.table_Updt: System field - used to tell system to update a table structure*/
com.halepringle.standard.WholeNumberField intTable_Updt = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.mach_name: Name of the PC the user logged in from*/
com.halepringle.standard.BoundedTextField txtMach_name = new com.halepringle.standard.BoundedTextField(30);

/** Used for UserLogData.xml_DtTime: Date Time of the JGuiGenINI.xml file used by this user*/
JTextField dtXml_DtTimeText = new JTextField();
com.halepringle.standard.JxButton btnXml_DtTime = new com.halepringle.standard.JxButton();
JFormattedTextField txtXml_DtTimeTime = new JFormattedTextField() ;

/** Used for UserLogData.xml_Date: Date of JGuiGenINI.xml*/
JTextField dtXml_DateText = new JTextField();
com.halepringle.standard.JxButton btnXml_Date = new com.halepringle.standard.JxButton();

/** Used for UserLogData.lastchangeddate: Date the row was last changed*/
JTextField dtLastchangeddateText = new JTextField();
com.halepringle.standard.JxButton btnLastchangeddate = new com.halepringle.standard.JxButton();
JFormattedTextField txtLastchangeddateTime = new JFormattedTextField() ;

/** Used for UserLogData.lastchangedby: Name of user who last updated this row*/
com.halepringle.standard.BoundedTextField txtLastchangedby = new com.halepringle.standard.BoundedTextField(30);

/** Used for UserLogData.screen0: User authorization (Edit, view, delete,add) for screen 0*/
com.halepringle.standard.WholeNumberField intScreen0 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.screen1: User authorization (Edit, view, delete,add) for screen 1*/
com.halepringle.standard.WholeNumberField intScreen1 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.screen2: User authorization (Edit, view, delete,add) for screen 2*/
com.halepringle.standard.WholeNumberField intScreen2 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.screen3: User authorization (Edit, view, delete,add) for screen 3*/
com.halepringle.standard.WholeNumberField intScreen3 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.screen4: User authorization (Edit, view, delete,add) for screen 4*/
com.halepringle.standard.WholeNumberField intScreen4 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.screen5: User authorization (Edit, view, delete,add) for screen 5*/
com.halepringle.standard.WholeNumberField intScreen5 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.screen6: User authorization (Edit, view, delete,add) for screen 6*/
com.halepringle.standard.WholeNumberField intScreen6 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.screen7: User authorization (Edit, view, delete,add) for screen 7*/
com.halepringle.standard.WholeNumberField intScreen7 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.screen8: User authorization (Edit, view, delete,add) for screen 8*/
com.halepringle.standard.WholeNumberField intScreen8 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.screen9: User authorization (Edit, view, delete,add) for screen 9*/
com.halepringle.standard.WholeNumberField intScreen9 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.screen10: User authorization (Edit, view, delete,add) for screen 10*/
com.halepringle.standard.WholeNumberField intScreen10 = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.viewhistory_dttime: Date/Time of the last History.html file viewed by this user*/
JTextField dtViewhistory_dttimeText = new JTextField();
com.halepringle.standard.JxButton btnViewhistory_dttime = new com.halepringle.standard.JxButton();
JFormattedTextField txtViewhistory_dttimeTime = new JFormattedTextField() ;

/** Used for UserLogData.password: Password for this user*/
com.halepringle.standard.BoundedTextField txtPassword = new com.halepringle.standard.BoundedTextField(12);

/** Used for UserLogData.inactive: Is this row inative (true MEAN INactive)*/
JCheckBox chkInactive = new JCheckBox("Inactive");

/** Used for UserLogData.lastLogon: Date/Time of the last time this user logged on*/
JTextField dtLastLogonText = new JTextField();
com.halepringle.standard.JxButton btnLastLogon = new com.halepringle.standard.JxButton();
JFormattedTextField txtLastLogonTime = new JFormattedTextField() ;

/** Used for UserLogData.firstlogon: Date time of the first time this user logged on*/
JTextField dtFirstlogonText = new JTextField();
com.halepringle.standard.JxButton btnFirstlogon = new com.halepringle.standard.JxButton();
JFormattedTextField txtFirstlogonTime = new JFormattedTextField() ;

/** Used for UserLogData.notes: Notes about this field*/
com.halepringle.standard.JxTextArea areaNotes = new com.halepringle.standard.JxTextArea(4,80);
JScrollPane pareaNotes = new JScrollPane(areaNotes);

/** Used for UserLogData.skillAdmin: Does this user have Adminstration experience or training?*/
com.halepringle.standard.BoundedTextField txtSkillAdmin = new com.halepringle.standard.BoundedTextField(20);

/** Used for UserLogData.skillResearch: Does this user have research skills?*/
com.halepringle.standard.BoundedTextField txtSkillResearch = new com.halepringle.standard.BoundedTextField(2147483647);

/** Used for UserLogData.skillTyping: Does this person have typing skills?*/
com.halepringle.standard.BoundedTextField txtSkillTyping = new com.halepringle.standard.BoundedTextField(2147483647);

/** Used for UserLogData.skillComputer: Does this person have computer skills?*/
com.halepringle.standard.BoundedTextField txtSkillComputer = new com.halepringle.standard.BoundedTextField(2147483647);

/** Used for UserLogData.query_Classname: Name of class there saved query should be available*/
com.halepringle.standard.BoundedTextField txtQuery_Classname = new com.halepringle.standard.BoundedTextField(40);

/** Used for UserLogData.query_template: Template file used to create saved Queries*/
com.halepringle.standard.BoundedTextField txtQuery_template = new com.halepringle.standard.BoundedTextField(40);

/** Used for UserLogData.query_ColCount: Number of columns display as part of a saved report query*/
com.halepringle.standard.WholeNumberField intQuery_ColCount = new com.halepringle.standard.WholeNumberField(0,15);

/** Used for UserLogData.query_Text: Actual code for a saved Query*/
com.halepringle.standard.JxTextArea areaQuery_Text = new com.halepringle.standard.JxTextArea(4,80);
JScrollPane pareaQuery_Text = new JScrollPane(areaQuery_Text);

/** Used for UserLogData.query_Type: Type of saved query (Query or Report)*/
com.halepringle.standard.BoundedTextField txtQuery_Type = new com.halepringle.standard.BoundedTextField(1);

/** Used for UserLogData.query_Name: Name used to describe a saved Query*/
com.halepringle.standard.BoundedTextField txtQuery_Name = new com.halepringle.standard.BoundedTextField(60);

/** Used for UserLogData.query_Username: Name of user that created a saved Query*/
com.halepringle.standard.BoundedTextField txtQuery_Username = new com.halepringle.standard.BoundedTextField(30);


/**
*
* Description UserLogData constructor
*
* @param - jxframe - frame of the calling method
* @param - model - model class passed to almost all classes
* @param - mutableinteger - client number
* @return - nothing
* @exception - none
*
*/
// in this case whatever you replace user_id With should be unique
// i usually use user_id (all lower case here and two lines down- all others are
// user_id (camel cased)
//

JxFrame Example - Pass JxFrame into class




//
/** SECTION 2 - START APPLICATION - ADD ATTRIBUTES TO INSTANTIAED VARIABLE & VISUAL COMPONANTS*/
//
//

/** SECTION 2 - START APPLICATION - ADD ATTRIBUTES TO INSTANTIAED VARIABLE & VISUAL COMPONANTS*/



public UserLogData (com.halepringle.standard.JxFrame jframe, com.halepringle.standard.Model mod,final com.halepringle.standard.MutableInteger user_id_){
//

JxFrame Example - Set Passed in JxFrame to a local field in class



frame = jframe;
model = mod;
logger = model.getLogger();
jTextLog = model.getJTextArea();
currentLocale = model.getCurrentLocale();
frame.setTitle(model.getRbString(UserLogDataRb,"Screen_Title","UserLogData"));
model.doShortTo4( (SimpleDateFormat)formatterDateShort );

fancyFont = new java.awt.Font(model.getRbString(UserLogDataRb,"Serif","UserLogData"), java.awt.Font.BOLD | java.awt.Font.ITALIC, 16);
lbl__Title.setFont(fancyFont);
lbl__Title.setText(model.getRbString(UserLogDataRb,"Screen_Title","UserLogData"));
fmtDec1 = new DecimalFormat(model.getRbString(UserLogDataRb,"decimal1_###,###.#","UserLogData"));
fmtDec2 = new DecimalFormat(model.getRbString(UserLogDataRb,"decimal2_###,###.##","UserLogData"));
fmtDollar = new DecimalFormat(model.getRbString(UserLogDataRb,"Money_$###,###.##","UserLogData"));
frame.setTitle(model.getRbString(UserLogDataRb,"Screen_Title","UserLogData"));
trueValue = model.getTrueValue();
falseValue = model.getFalseValue();
btnHelp.setText(model.getRbString(UserLogDataRb,"Help_Button","UserLogData"));
btnCancel.setText(model.getRbString(UserLogDataRb,"Cancel_Button","UserLogData"));
btnXtra.setText(model.getRbString(UserLogDataRb,"EXtra_Button","UserLogData"));
btnPrint.setText(model.getRbString(UserLogDataRb, "Print_Button","UserLogData"));
btnSave.setText(model.getRbString(UserLogDataRb, "Save_Button","UserLogData"));
btnFind.setText(model.getRbString(UserLogDataRb, "Find_Button","UserLogData"));
btnClear.setText(model.getRbString(UserLogDataRb, "Clear_Button","UserLogData"));
btnDelete.setText(model.getRbString(UserLogDataRb, "Delete_Button","UserLogData"));
btnDup.setText(model.getRbString(UserLogDataRb, "Dup_Button","UserLogData"));
btnNext.setText(model.getRbString(UserLogDataRb, "Next_Button","UserLogData"));
btnPrevious.setText(model.getRbString(UserLogDataRb, "Previous_Button","UserLogData"));
tableTips = new com.halepringle.standard.ColumnHeaderToolTips();
// If this screen was marked "start with a query"
// the id number that was passed in will be overridden with a -1
this.user_id = user_id_;
rowObj.setUser_id( user_id_.getValue() );
//

JxFrame Example - Replace coffee cup icon on frame



// put a new gif in the /images folder and change gif name xxxx
//NOTE: The same gif name in the images/es folder will be used for spanish locales, etc.
com.halepringle.standard.SetIcon.setFrameIcon(frame,"JGuiGen.gif", currentLocale);

//

JxFrame Example - setting the JxFrame broder



// xxxx there are lots of border options - here are two
//UserLogData.this.setBorder(new SoftBevelBorder(BevelBorder.RAISED));
compound = BorderFactory.createCompoundBorder(
raisedbevel, loweredbevel);
UserLogData.this.setBorder(compound);


hb = model.getHelpSetBroker();
if (hb!=null){
ActionListener helper = new CSH.DisplayHelpFromSource(hb);
btnHelp.addActionListener(helper) ;
}
// configure function key f1, help button, help menu item
//xxxx change the topic number}
// CSH.setHelpIDString(UserLogData.this.getRootPane(), "item1");
// CSH.setHelpIDString(helpItem, "item1");
CSH.setHelpIDString(btnHelp, "item1");

// Put the tooltips etc here.



/**
*
* Description - listener for print button
*
*/
btnPrint.addActionListener(this);

btnCancel.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
int changes = setDataUserLogData();
if (changes > 0 ){

Object[] options = {model.getRbString(UserLogDataRb,"Yes","UserLogData"),model.getRbString(UserLogDataRb,"No","UserLogData")};
//

JxFrame Example - Let user close the frame



int n = JOptionPane.showOptionDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"Cancel without saving changes in {0}?","UserLogData"),
new String[]{"" + "UserLogData"})+"\n" +
model.getRbString(UserLogDataRb,"Fields changed =","UserLogData")+ " " +changeMsg,
model.getRbString(UserLogDataRb,"Cancel Message","UserLogData"),
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[1]);
if (n == JOptionPane.YES_OPTION) {
// do nothing - drop through to the setvisible(false) and dispose lines
} else {

return;
}
} // end of change > 0 IF
String tString = model.getRbString(UserLogDataRb,"Backing Store Error - Saving Table layout","UserLogData");
try {
saveSettings(table);
} catch (BackingStoreException e1) {
System.err.println(e1.getMessage());
Toolkit.getDefaultToolkit().beep();
model.showErrorOccurred();
logger.severe(tString+" "+e1);
if(jTextLog==null){jTextLog = model.getJTextArea();}
jTextLog.append(tString+" "+e1);
} finally {
// Make sure that resultset and statement in the table model are closed clearnly
utm.cleanUp();
frame.setVisible(false);
frame.dispose();
}
}} ); // End of btnCancel
btnXtra.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
int changes = setDataUserLogData();
if (changes > 0 ){

Object[] options = {model.getRbString(UserLogDataRb,"Yes","UserLogData"),model.getRbString(UserLogDataRb,"No","UserLogData")};
int n = JOptionPane.showOptionDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"Press Extra without saving changes in {0}?","UserLogData"),
new String[]{"" + "UserLogData"})+"\n" +
model.getRbString(UserLogDataRb,"Fields changed =","UserLogData")+ " " +changeMsg,
model.getRbString(UserLogDataRb,"Extra Message","UserLogData"),
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[1]);
if (n == JOptionPane.YES_OPTION) {
// do nothing - drop through to the setvisible(false) and dispose lines
} else {

return;
}
} // end of change > 0 IF
// MOTE NOTE NOTE - Right here put the Call to another class
int id = rowObj.getUser_id();
com.halepringle.src.UserLogDataExtra xtra = new com.halepringle.src.UserLogDataExtra(id, model);
}} ); // End of btnXtra
btnFind.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){

int changes = setDataUserLogData();
int errs = checkUserLogDataData();
if (errs > 0){
return;
}
if (changes > 0 ){

Object[] options = {model.getRbString(UserLogDataRb,"Yes","UserLogData"), model.getRbString(UserLogDataRb,"No","UserLogData")};
int n = JOptionPane.showOptionDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"Find without saving changes in {0}?","UserLogData"),
new String[]{"" + "UserLogData"})+"\n" +
model.getRbString(UserLogDataRb,"Fields changed =","UserLogData")+" " +changeMsg,
model.getRbString(UserLogDataRb,"Find Message","UserLogData"),
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[1]);
if (n == JOptionPane.YES_OPTION) {
// do nothing
} else {
return;
}
}
inActiveFieldName = utm.getInActiveFieldName();
com.halepringle.standard.SQLWhereClause sql =
new com.halepringle.standard.SQLWhereClause(queryData,
model, model.getRbString(UserLogDataRb,"help_item","UserLogData"),
model.getRbString(UserLogDataRb,"Build a SQL Where Clause","UserLogData"),"UserLogData", table,UserLogData.class, inActiveFieldName);
// XXXX Note: You need to change the ITEM8 to the correct item for your Help Screen about queries
sql.setModal(true);
sql.setVisible(true);
String query = sql.getQuery();
currentQuery = query;
if (query.equalsIgnoreCase("**Report**")){
// do nothing
}else{
currentQuery = query;
queryTitle = sql.getQueryTitle();
}
queryData = sql.getDataArray();
model.getRbString(UserLogDataRb,"// This version lets the SQLWhereClause builder add the inactivefield = false","UserLogData");
model.getRbString(UserLogDataRb,"// if it is needed for the query","UserLogData");
getDataUserLogDataByID(user_id.getValue(),currentQuery,"NO");
String tmpTitle = "";
if (currentQuery.trim().length() > 0){

tmpTitle = model.getRbString(UserLogDataRb," FILTERED","UserLogData");
btnFind.setToolTipText(model.getRbString(UserLogDataRb,"Current filter:","UserLogData")+" "+queryTitle);
} else {
tmpTitle = model.getRbString(UserLogDataRb," ALL Rows","UserLogData");
btnFind.setToolTipText(model.getRbString(UserLogDataRb,"Press to find special rows in the Table (filter the rows)","UserLogData"));
}
Border loweredbevel = BorderFactory.createLoweredBevelBorder();

Border titled = BorderFactory.createTitledBorder(
loweredbevel, model.getRbString(UserLogDataRb,"JTable_title_UserLogData","UserLogData")+" "+tmpTitle,
TitledBorder.CENTER,
TitledBorder.TOP);

tableScrollPane.setBorder(titled);


String reportTemplate = null;
// see is there is a report
reportTemplate = sql.getReport();
if (reportTemplate != null && reportTemplate.trim().length() > 0){
String tString = model.getRbString(UserLogDataRb,"Error getting row count","userlogdata");
try{
tableRs.last();
int rowCount = tableRs.getRow();
System.out.println("Report RowCount = "+rowCount);
} catch (Exception x){System.out.println("error gettting row count "+x);
Toolkit.getDefaultToolkit().beep();
model.showErrorOccurred();
logger.severe(tString+" "+x);
if(jTextLog==null){jTextLog = model.getJTextArea();}
jTextLog.append(tString+" "+x);
}
// preview(reportTemplate, sorter, queryTitle);
// preview(reportTemplate, myModel, queryTitle);
}
}} ); //end of btnFind


utm = new com.halepringle.src.UserLogDataTableModel(model.getDbc(),model);
fmtDec2.setGroupingUsed(true); //use ",";
fmtDec2.setGroupingSize(3); //use "3 digits between";
fmtDec2.setParseIntegerOnly(false);
fmtDollar.setGroupingUsed(true); //use ",";
fmtDollar.setGroupingSize(3); //use "3 digits between";
fmtDollar.setParseIntegerOnly(false);
int screenNumber = -1;
// Screen number in Data_dict table = -1(-1 means do not use this section);
// if (screenNumber > -1) {
// addRights = false;
// editRights = false;
// deleteRights = false;
// rights = model.getSecurityRights(screenNumber) ;
// if (rights == 1 || rights == 3 || rights == 5 || rights == 7){ addRights = true;}
// if (rights == 2 || rights == 3 || rights == 6 || rights == 7){ editRights = true;}
// if (rights == 4 || rights == 5 || rights == 6 || rights == 7){ deleteRights = true;}
// if (rights == 8){System.out.println("Should not be in this screen at all");
// return;}
// }

//
#/** SECTION XXI - HANDLE CLOSING THE WINDOW (Calling program then sets to NULL) */ #
//
//

#/** SECTION XXI - HANDLE CLOSING THE WINDOW (Calling program then sets to NULL) */ #



/**
*
* Description - listener for Window Close - catch closing without saving
*
*/

//

#JxFrame Example - Window Listener #



frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
int changes = setDataUserLogData();
if (changes > 0 ){

Object[] options = {model.getRbString(UserLogDataRb,"Yes","UserLogData"), model.getRbString(UserLogDataRb,"No","UserLogData")};
int n = JOptionPane.showOptionDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"Exit without saving changes in {0}?","UserLogData"),
new String[]{"" + "UserLogData"})+"\n" +
model.getRbString(UserLogDataRb,"Fields changed =","userlogdata")+" " +changeMsg,
model.getRbString(UserLogDataRb,"Exit Message","UserLogData"),
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[1]);
if (n == JOptionPane.YES_OPTION) {
// do nothing - drop through to the setvisible(false) and dispose lines
} else {

return;
}
} // end of change > 0 IF
String tString = model.getRbString(UserLogDataRb,"Backing Store Error - Saving Table layout","UserLogData");
try {
saveSettings(table);
} catch (BackingStoreException e1) {
System.err.println(e1.getMessage());
Toolkit.getDefaultToolkit().beep();
model.showErrorOccurred();
logger.severe(tString+" "+e1);
if(jTextLog==null){jTextLog = model.getJTextArea();}
jTextLog.append(tString+" "+e1);
} finally {
frame.setVisible(false);
frame.dispose();
}

}
}); //end of add windowlistener

//
/** SECTION 3 - MORE SETUP OF COLUMN VARS - INCLUDING BUTTONS and LISTENERS */
//
//

/** SECTION 3 - MORE SETUP OF COLUMN VARS - INCLUDING BUTTONS and LISTENERS */




intUser_id.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_User_id","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_User_id","UserLogData");
intUser_id.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intUser_id.getAccessibleContext().setAccessibleName("User_id");
intUser_id.setName("user_id");

//

Bounded Text Field Example - set ToolTips and Assistive Technology



txtFirstName.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_FirstName","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_FirstName","UserLogData");
txtFirstName.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtFirstName.getAccessibleContext().setAccessibleName("FirstName");
txtFirstName.setName("firstname");

txtMiddleName.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_MiddleName","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_MiddleName","UserLogData");
txtMiddleName.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtMiddleName.getAccessibleContext().setAccessibleName("MiddleName");
txtMiddleName.setName("middlename");

txtLastname.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Lastname","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Lastname","UserLogData");
txtLastname.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtLastname.getAccessibleContext().setAccessibleName("Lastname");
txtLastname.setName("lastname");

txtLogin_name.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Login_name","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Login_name","UserLogData");
txtLogin_name.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtLogin_name.getAccessibleContext().setAccessibleName("Login_name");
txtLogin_name.setName("login_name");

chkPartTime.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_PartTime","userlogdata"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_PartTime","UserLogData");
chkPartTime.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
chkPartTime.getAccessibleContext().setAccessibleName("PartTime");
chkPartTime.setName("parttime");

txtAddress1.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Address1","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Address1","UserLogData");
txtAddress1.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtAddress1.getAccessibleContext().setAccessibleName("Address1");
txtAddress1.setName("address1");

txtAddress2.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Address2","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Address2","UserLogData");
txtAddress2.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtAddress2.getAccessibleContext().setAccessibleName("Address2");
txtAddress2.setName("address2");

txtCity.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_City","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_City","UserLogData");
txtCity.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtCity.getAccessibleContext().setAccessibleName("City");
txtCity.setName("city");

String[] stateCodes = model.getStateCodes();
cboState = new com.halepringle.standard.JSearchableComboBox(stateCodes);
cboState.setUpperCase(true);
cboState.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_State","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_State","UserLogData");
cboState.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
cboState.getComponent(0).getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
cboState.getComponent(1).getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
cboState.getAccessibleContext().setAccessibleName("State");
cboState.getComponent(0).getAccessibleContext().setAccessibleName("State");
cboState.getComponent(1).getAccessibleContext().setAccessibleName("State");
cboState.setName("state");

txtZip.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Zip","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Zip","UserLogData");
txtZip.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtZip.getAccessibleContext().setAccessibleName("Zip");
txtZip.setName("zip");

txtEmail.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Email","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Email","UserLogData");
txtEmail.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtEmail.getAccessibleContext().setAccessibleName("Email");
txtEmail.setName("email");

//

Telephone mask - set JFormattedTextField Mask



String t_mask = model.getRbString(UserLogDataRb,"telephone_mask","UserLogData");
String t_default = model.getRbString(UserLogDataRb,"telephone_default","UserLogData");
try {txtOfficephone = new JFormattedTextField( new MaskFormatter(t_mask) ); }
catch (Exception ee)
{System.out.println(java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Error setting Maskformatter: {0}","UserLogData"),new String[]{"+t_mask + "}) );}
txtOfficephone.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Officephone","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Officephone","UserLogData");
txtOfficephone.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtOfficephone.getAccessibleContext().setAccessibleName("Officephone");
txtOfficephone.setValue(model.getRbString(UserLogDataRb,"telephone_default","UserLogData" ));
/**
*
* Description - listener for Officephone field - sets Caret Position
*
*/
txtOfficephone.addFocusListener( new FocusAdapter()
{ public void focusGained(FocusEvent e) {
String caretPos = model.getRbString(UserLogDataRb,"telephone_caret","UserLogData");
int caretPosInt = Integer.parseInt(caretPos.trim());
txtOfficephone.setCaretPosition(caretPosInt);


}
}
);
/**
*
* Description - mouse listener for Officephone field - sets Caret Position
*
*/

txtOfficephone.addMouseListener(new MouseAdapter() {
public void mouseReleased(MouseEvent e) {
{
String caretPos = model.getRbString(UserLogDataRb,"telephone_caret","UserLogData");
int caretPosInt = Integer.parseInt(caretPos.trim());
txtOfficephone.setCaretPosition(caretPosInt);

}
}
public void mouseClicked(MouseEvent e) {
{
String caretPos = model.getRbString(UserLogDataRb,"telephone_caret","UserLogData");
int caretPosInt = Integer.parseInt(caretPos.trim());
txtOfficephone.setCaretPosition(caretPosInt);

}
}

public void mouseEntered(MouseEvent e) {

// do not do

}

}
);
txtOfficephone.setName("officephone");

try {txtHomePhone = new JFormattedTextField( new MaskFormatter(t_mask) ); }
catch (Exception ee)
{System.out.println(java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Error setting Maskformatter: {0}","UserLogData"),new String[]{"+t_mask + "}) );}
txtHomePhone.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_HomePhone","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_HomePhone","UserLogData");
txtHomePhone.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtHomePhone.getAccessibleContext().setAccessibleName("HomePhone");
txtHomePhone.setValue(model.getRbString(UserLogDataRb,"telephone_default","UserLogData" ));
/**
*
* Description - listener for HomePhone field - sets Caret Position
*
*/
txtHomePhone.addFocusListener( new FocusAdapter()
{ public void focusGained(FocusEvent e) {
String caretPos = model.getRbString(UserLogDataRb,"telephone_caret","UserLogData");
int caretPosInt = Integer.parseInt(caretPos.trim());
txtHomePhone.setCaretPosition(caretPosInt);


}
}
);
/**
*
* Description - mouse listener for HomePhone field - sets Caret Position
*
*/

txtHomePhone.addMouseListener(new MouseAdapter() {
public void mouseReleased(MouseEvent e) {
{
String caretPos = model.getRbString(UserLogDataRb,"telephone_caret","UserLogData");
int caretPosInt = Integer.parseInt(caretPos.trim());
txtHomePhone.setCaretPosition(caretPosInt);

}
}
public void mouseClicked(MouseEvent e) {
{
String caretPos = model.getRbString(UserLogDataRb,"telephone_caret","UserLogData");
int caretPosInt = Integer.parseInt(caretPos.trim());
txtHomePhone.setCaretPosition(caretPosInt);

}
}

public void mouseEntered(MouseEvent e) {

// do not do

}

}
);
txtHomePhone.setName("homephone");

numHireAge.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_HireAge","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_HireAge","UserLogData");
numHireAge.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
numHireAge.getAccessibleContext().setAccessibleName("HireAge");
numHireAge.setName("hireage");

btnUserphotoUrl.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_btnUserphotoUrl","UserLogData"));
btnUserphotoUrl.setText(model.getRbString(UserLogDataRb,"View","UserLogData"));
/**
*
* Description - listener for URL Buttons - calls Browser
*
*/
btnUserphotoUrl.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
tmpString = txtUserphotoUrl.getText().trim();
tmpString = tmpString.trim();
if (tmpString.substring(0,6).equalsIgnoreCase("[home]")){
String tmpString1 = model.getWorkingPath()+tmpString.substring(6);
if (new File(tmpString1).exists()){
tmpString = tmpString1;
} else {
tmpString = model.getWorkingPath()+"/Templates/"+tmpString.substring(6);
}
tmpString = "file://"+ tmpString;
}
String browserPath= model.getMyBrowserPath();
if (browserPath.trim().length() == 0) {
JOptionPane.showMessageDialog(
null,
model.getRbString(UserLogDataRb,"Cannot browse. Browser Path is empty -","UserLogData")
+"\n"
+ model.getRbString(UserLogDataRb,"Set it in the Main Menu","UserLogData")
+"\n"
+model.getRbString(UserLogDataRb,"(or you are a developer in test mode)","UserLogData"),
model.getRbString(UserLogDataRb
,"No Browser","UserLogData"),
JOptionPane.ERROR_MESSAGE);
} else {
try {
Process p=
Runtime.getRuntime().exec(
browserPath + " " + tmpString+"");
} catch (Exception ex){ System.out.println(ex);}
}
}});
txtUserphotoUrl.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_UserphotoUrl","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_UserphotoUrl","UserLogData");
txtUserphotoUrl.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtUserphotoUrl.getAccessibleContext().setAccessibleName("UserphotoUrl");
txtUserphotoUrl.setName("userphotourl");

btnResumeUrl.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_btnResumeUrl","UserLogData"));
btnResumeUrl.setText(model.getRbString(UserLogDataRb,"View","UserLogData"));
/**
*
* Description - listener for Word Proc Buttons - calls Browser
*
*/
btnResumeUrl.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
tmpString = txtResumeUrl.getText().trim();
tmpString = tmpString.trim();
String wpPath= model.getMyWpPath();
if (wpPath.trim().length() == 0) {
JOptionPane.showMessageDialog(
null,
model.getRbString(UserLogDataRb,"Cannot Word Process. Path to Word Processor is empty -","UserLogData")+"\n"+
model.getRbString(UserLogDataRb,"Set it in the Main Menu","UserLogData")+"\n"+
model.getRbString(UserLogDataRb,"(or you are a developer in test mode)","UserLogData"),
model.getRbString(UserLogDataRb
,"No Word Processor","UserLogData"),
JOptionPane.ERROR_MESSAGE);
} else {
try {
Process p=
Runtime.getRuntime().exec(
wpPath + " " + tmpString+"");
} catch (Exception ex){ System.out.println(ex);}
}
}});
txtResumeUrl.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_ResumeUrl","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_ResumeUrl","UserLogData");
txtResumeUrl.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtResumeUrl.getAccessibleContext().setAccessibleName("ResumeUrl");
txtResumeUrl.setName("resumeurl");

txtTitle.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Title","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Title","UserLogData");
txtTitle.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtTitle.getAccessibleContext().setAccessibleName("Title");
txtTitle.setName("title");

tmpString = "";
rbMale = new JRadioButton(model.getRbString(UserLogDataRb,"radio_button_Male","userlogdata"), false);
rbFemale = new JRadioButton(model.getRbString(UserLogDataRb,"radio_button_Female","userlogdata"), false);
rbUnknown = new JRadioButton(model.getRbString(UserLogDataRb,"radio_button_Unknown","userlogdata"), false);


String[] departmentDepartmentCodes = model.getDepartmentCodes();
cboDepartment = new JComboBox(departmentDepartmentCodes);
queryData[17][5] = departmentDepartmentCodes;
cboDepartment.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Department","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Department","UserLogData");
cboDepartment.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
cboDepartment.getComponent(0).getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
cboDepartment.getComponent(1).getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
cboDepartment.getAccessibleContext().setAccessibleName("Department");
cboDepartment.getComponent(0).getAccessibleContext().setAccessibleName("Department");
cboDepartment.getComponent(1).getAccessibleContext().setAccessibleName("Department");
cboDepartment.setName("department");

txtAuthorityGroup1.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_AuthorityGroup1","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_AuthorityGroup1","UserLogData");
txtAuthorityGroup1.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtAuthorityGroup1.getAccessibleContext().setAccessibleName("AuthorityGroup1");
txtAuthorityGroup1.setName("authoritygroup1");

txtAuthorityGroup2.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_AuthorityGroup2","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_AuthorityGroup2","UserLogData");
txtAuthorityGroup2.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtAuthorityGroup2.getAccessibleContext().setAccessibleName("AuthorityGroup2");
txtAuthorityGroup2.setName("authoritygroup2");

btnStart_Date.setText(model.getRbString(UserLogDataRb,"New","UserLogData"));
btnStart_Date.setToolTipText(model.getRbString(UserLogDataRb,"datebtn_tooltip_Start_Date","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"datebtn_tooltip_Start_Date","UserLogData");
btnStart_Date.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
btnStart_Date.setName("start_date");
btnStart_Date.getAccessibleContext().setAccessibleName("Start_Date");
tmpStr = model.getRbString(UserLogDataRb,"datebtn_hotkey_Start_Date","UserLogData");
if (tmpStr.trim().length() > 0) {
btnStart_Date.setMnemonic((char)tmpStr.charAt(0));
}
/**
*
* Description - listener for Date Buttons - calls pop-up calendar
*
*/
btnStart_Date.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
tmpString = dtStart_DateText.getText().trim();
tmpString = tmpString.trim();
if (tmpString.trim().length() == 0 || tmpString.equals(model.getRbString(UserLogDataRb,"Press New","UserLogData"))){tmpString = null;};
try {tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception ex) {tmpDate = null;}
com.halepringle.standard.DateDialog dateDialog = new com.halepringle.standard.DateDialog(frame,tmpDate);
dateDialog.pack();
dateDialog.show();

retCal = dateDialog.getCalendar();
dateDialog = null;
if (retCal == null){
dtStart_DateText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData") );
}else{

java.util.Date aDate = retCal.getTime();
String tempString = formatterDateShort.format(aDate);
dtStart_DateText.setText(tempString);
}}
});
dtStart_DateText.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Start_Date","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Start_Date","UserLogData");
dtStart_DateText.getAccessibleContext().setAccessibleDescription(tmpString);
dtStart_DateText.getAccessibleContext().setAccessibleName("Start_Date");
dtStart_DateText.setEnabled(false);
dtStart_DateText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData"));
rowObj.setDtStart_DateText( model.getRbString(UserLogDataRb,"Press New","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btn_hotkey_Start_Date","UserLogData");
if (tmpString.trim().length() > 0) {
btnStart_Date.setMnemonic((char)tmpString.charAt(0));
}
dtStart_DateText.setName("start_date");

txtWp_path.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Wp_path","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Wp_path","UserLogData");
txtWp_path.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtWp_path.getAccessibleContext().setAccessibleName("Wp_path");
txtWp_path.setName("wp_path");

txtBrow_path.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Brow_path","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Brow_path","UserLogData");
txtBrow_path.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtBrow_path.getAccessibleContext().setAccessibleName("Brow_path");
txtBrow_path.setName("brow_path");

txtIpaddress.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Ipaddress","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Ipaddress","UserLogData");
txtIpaddress.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtIpaddress.getAccessibleContext().setAccessibleName("Ipaddress");
txtIpaddress.setName("ipaddress");

numCategory.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Category","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Category","UserLogData");
numCategory.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
numCategory.getAccessibleContext().setAccessibleName("Category");
numCategory.setName("category");

String ssn_Mask = model.getRbString(UserLogDataRb,"ssn_mask","UserLogData");
try{ txtSsn = new JFormattedTextField(new MaskFormatter( ssn_Mask ));
} catch (Exception ex) {model.showWarningOcurred(model.getRbString(UserLogDataRb,"Error setting up SSN","UserLogData"));};
txtSsn.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Ssn","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Ssn","UserLogData");
txtSsn.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtSsn.getAccessibleContext().setAccessibleName("Ssn");
txtSsn.setName("ssn");

txtLoginTimeTime = new JFormattedTextField();
com.halepringle.standard.RegexFormatter LoginTimeTimeFormatter = new com.halepringle.standard.RegexFormatter(model.getRbString(UserLogDataRb,"time_regex","UserLogData"));

LoginTimeTimeFormatter.setAllowsInvalid(false);
LoginTimeTimeFormatter.setOverwriteMode(true);
LoginTimeTimeFormatter.setCommitsOnValidEdit(true);
txtLoginTimeTime.setFormatterFactory(new DefaultFormatterFactory(LoginTimeTimeFormatter));
txtLoginTimeTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));
txtLoginTimeTime.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_LoginTime","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_LoginTime","UserLogData");
txtLoginTimeTime.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtLoginTimeTime.getAccessibleContext().setAccessibleName("LoginTime");
txtLoginTimeTime.setName("logintime");

areaLogfld.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Logfld","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Logfld","UserLogData");
areaLogfld.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
areaLogfld.getAccessibleContext().setAccessibleName("Logfld");
areaLogfld.setLineWrap(true);
areaLogfld.setWrapStyleWord(true);
areaLogfld.setName("logfld");

areaIpAdds.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_IpAdds","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_IpAdds","UserLogData");
areaIpAdds.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
areaIpAdds.getAccessibleContext().setAccessibleName("IpAdds");
areaIpAdds.setLineWrap(true);
areaIpAdds.setWrapStyleWord(true);
areaIpAdds.setName("ipadds");

intLogon_count.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Logon_count","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Logon_count","UserLogData");
intLogon_count.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intLogon_count.getAccessibleContext().setAccessibleName("Logon_count");
intLogon_count.setName("logon_count");

txtUserLock.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_UserLock","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_UserLock","UserLogData");
txtUserLock.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtUserLock.getAccessibleContext().setAccessibleName("UserLock");
txtUserLock.setName("userlock");

intTable_Updt.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Table_Updt","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Table_Updt","UserLogData");
intTable_Updt.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intTable_Updt.getAccessibleContext().setAccessibleName("Table_Updt");
intTable_Updt.setName("table_updt");

txtMach_name.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Mach_name","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Mach_name","UserLogData");
txtMach_name.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtMach_name.getAccessibleContext().setAccessibleName("Mach_name");
txtMach_name.setName("mach_name");

btnXml_DtTime.setText(model.getRbString(UserLogDataRb,"New","UserLogData"));
btnXml_DtTime.setToolTipText(model.getRbString(UserLogDataRb,"datebtn_tooltip_Xml_DtTime","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"datebtn_tooltip_Xml_DtTime","UserLogData");
btnXml_DtTime.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
btnXml_DtTime.setName("xml_dttime");
btnXml_DtTime.getAccessibleContext().setAccessibleName("Xml_DtTime");
tmpStr = model.getRbString(UserLogDataRb,"datebtn_hotkey_Xml_DtTime","UserLogData");
if (tmpStr.trim().length() > 0) {
btnXml_DtTime.setMnemonic((char)tmpStr.charAt(0));
}
/**
*
* Description - listener for Date Buttons - calls pop-up calendar
*
*/
btnXml_DtTime.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
tmpString = dtXml_DtTimeText.getText().trim();
tmpString = tmpString.trim();
if (tmpString.trim().length() == 0 || tmpString.equals(model.getRbString(UserLogDataRb,"Press New","UserLogData"))){tmpString = null;};
try {tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception ex) {tmpDate = null;}
com.halepringle.standard.DateDialog dateDialog = new com.halepringle.standard.DateDialog(frame,tmpDate);
dateDialog.pack();
dateDialog.show();

retCal = dateDialog.getCalendar();
dateDialog = null;
if (retCal == null){
txtXml_DtTimeTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));
dtXml_DtTimeText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData") );
}else{

java.util.Date aDate = retCal.getTime();
String tempString = formatterDateShort.format(aDate);
dtXml_DtTimeText.setText(tempString);
if ((txtXml_DtTimeTime.getText().equals(model.getRbString(UserLogDataRb,"default_time","UserLogData"))) ||
(txtXml_DtTimeTime.getText().trim().length() == 0)) {
sTime = tft.format(aDate);
if (!(sTime.substring(2,3).equals(":"))){ sTime = "0"+sTime; }
if (sTime.length() == 7 || sTime.length() == 5 || sTime.length() == 10){
sTime = "0" + sTime;
}
txtXml_DtTimeTime.setValue(sTime);
}
}}
});
dtXml_DtTimeText.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Xml_DtTime","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Xml_DtTime","UserLogData");
dtXml_DtTimeText.getAccessibleContext().setAccessibleDescription(tmpString);
dtXml_DtTimeText.getAccessibleContext().setAccessibleName("Xml_DtTime");
dtXml_DtTimeText.setEnabled(false);
dtXml_DtTimeText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData"));
rowObj.setDtXml_DtTimeText( model.getRbString(UserLogDataRb,"Press New","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btn_hotkey_Xml_DtTime","UserLogData");
if (tmpString.trim().length() > 0) {
btnXml_DtTime.setMnemonic((char)tmpString.charAt(0));
}
dtXml_DtTimeText.setName("xml_dttime");
txtXml_DtTimeTime = new JFormattedTextField();
com.halepringle.standard.RegexFormatter Xml_DtTimeTimeFormatter = new com.halepringle.standard.RegexFormatter(model.getRbString(UserLogDataRb,"time_regex","UserLogData"));

Xml_DtTimeTimeFormatter.setAllowsInvalid(false);
Xml_DtTimeTimeFormatter.setOverwriteMode(true);
Xml_DtTimeTimeFormatter.setCommitsOnValidEdit(true);
txtXml_DtTimeTime.setFormatterFactory(new DefaultFormatterFactory(Xml_DtTimeTimeFormatter));
txtXml_DtTimeTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Xml_DtTime","UserLogData");
txtXml_DtTimeTime.getAccessibleContext().setAccessibleDescription("Time: " +tmpString);
txtXml_DtTimeTime.getAccessibleContext().setAccessibleName("Time: Xml_DtTime");
txtXml_DtTimeTime.setName("xml_dttimeTime");
txtXml_DtTimeTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));

btnXml_Date.setText(model.getRbString(UserLogDataRb,"New","UserLogData"));
btnXml_Date.setToolTipText(model.getRbString(UserLogDataRb,"datebtn_tooltip_Xml_Date","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"datebtn_tooltip_Xml_Date","UserLogData");
btnXml_Date.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
btnXml_Date.setName("xml_date");
btnXml_Date.getAccessibleContext().setAccessibleName("Xml_Date");
tmpStr = model.getRbString(UserLogDataRb,"datebtn_hotkey_Xml_Date","UserLogData");
if (tmpStr.trim().length() > 0) {
btnXml_Date.setMnemonic((char)tmpStr.charAt(0));
}
/**
*
* Description - listener for Date Buttons - calls pop-up calendar
*
*/
btnXml_Date.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
tmpString = dtXml_DateText.getText().trim();
tmpString = tmpString.trim();
if (tmpString.trim().length() == 0 || tmpString.equals(model.getRbString(UserLogDataRb,"Press New","UserLogData"))){tmpString = null;};
try {tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception ex) {tmpDate = null;}
com.halepringle.standard.DateDialog dateDialog = new com.halepringle.standard.DateDialog(frame,tmpDate);
dateDialog.pack();
dateDialog.show();

retCal = dateDialog.getCalendar();
dateDialog = null;
if (retCal == null){
dtXml_DateText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData") );
}else{

java.util.Date aDate = retCal.getTime();
String tempString = formatterDateShort.format(aDate);
dtXml_DateText.setText(tempString);
}}
});
dtXml_DateText.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Xml_Date","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Xml_Date","UserLogData");
dtXml_DateText.getAccessibleContext().setAccessibleDescription(tmpString);
dtXml_DateText.getAccessibleContext().setAccessibleName("Xml_Date");
dtXml_DateText.setEnabled(false);
dtXml_DateText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData"));
rowObj.setDtXml_DateText( model.getRbString(UserLogDataRb,"Press New","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btn_hotkey_Xml_Date","UserLogData");
if (tmpString.trim().length() > 0) {
btnXml_Date.setMnemonic((char)tmpString.charAt(0));
}
dtXml_DateText.setName("xml_date");

btnLastchangeddate.setText(model.getRbString(UserLogDataRb,"New","UserLogData"));
btnLastchangeddate.setToolTipText(model.getRbString(UserLogDataRb,"datebtn_tooltip_Lastchangeddate","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"datebtn_tooltip_Lastchangeddate","UserLogData");
btnLastchangeddate.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
btnLastchangeddate.setName("lastchangeddate");
btnLastchangeddate.getAccessibleContext().setAccessibleName("Lastchangeddate");
tmpStr = model.getRbString(UserLogDataRb,"datebtn_hotkey_Lastchangeddate","UserLogData");
if (tmpStr.trim().length() > 0) {
btnLastchangeddate.setMnemonic((char)tmpStr.charAt(0));
}
/**
*
* Description - listener for Date Buttons - calls pop-up calendar
*
*/
btnLastchangeddate.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
tmpString = dtLastchangeddateText.getText().trim();
tmpString = tmpString.trim();
if (tmpString.trim().length() == 0 || tmpString.equals(model.getRbString(UserLogDataRb,"Press New","UserLogData"))){tmpString = null;};
try {tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception ex) {tmpDate = null;}
com.halepringle.standard.DateDialog dateDialog = new com.halepringle.standard.DateDialog(frame,tmpDate);
dateDialog.pack();
dateDialog.show();

retCal = dateDialog.getCalendar();
dateDialog = null;
if (retCal == null){
txtLastchangeddateTime.setValue(model.getRbString(UserLogDataRb,"default_time_wsec","UserLogData"));
dtLastchangeddateText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData") );
}else{

java.util.Date aDate = retCal.getTime();
String tempString = formatterDateShort.format(aDate);
dtLastchangeddateText.setText(tempString);
if ((txtLastchangeddateTime.getText().equals(model.getRbString(UserLogDataRb,"default_time_wsec","UserLogData"))) ||
(txtLastchangeddateTime.getText().trim().length() == 0)) {
sTime = tft.format(aDate);
if (!(sTime.substring(2,3).equals(":"))){ sTime = "0"+sTime; }
if (sTime.length() == 7 || sTime.length() == 5 || sTime.length() == 10){
sTime = "0" + sTime;
}
txtLastchangeddateTime.setValue(sTime);
}
}}
});
dtLastchangeddateText.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Lastchangeddate","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Lastchangeddate","UserLogData");
dtLastchangeddateText.getAccessibleContext().setAccessibleDescription(tmpString);
dtLastchangeddateText.getAccessibleContext().setAccessibleName("Lastchangeddate");
dtLastchangeddateText.setEnabled(false);
dtLastchangeddateText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData"));
rowObj.setDtLastchangeddateText( model.getRbString(UserLogDataRb,"Press New","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btn_hotkey_Lastchangeddate","UserLogData");
if (tmpString.trim().length() > 0) {
btnLastchangeddate.setMnemonic((char)tmpString.charAt(0));
}
dtLastchangeddateText.setName("lastchangeddate");
txtLastchangeddateTime = new JFormattedTextField();
com.halepringle.standard.RegexFormatter LastchangeddateTimeFormatter = new com.halepringle.standard.RegexFormatter(model.getRbString(UserLogDataRb,"time_regex_wsec","UserLogData"));

LastchangeddateTimeFormatter.setAllowsInvalid(false);
LastchangeddateTimeFormatter.setOverwriteMode(true);
LastchangeddateTimeFormatter.setCommitsOnValidEdit(true);
txtLastchangeddateTime.setFormatterFactory(new DefaultFormatterFactory(LastchangeddateTimeFormatter));
txtLastchangeddateTime.setValue(model.getRbString(UserLogDataRb,"default_time_wsec","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Lastchangeddate","UserLogData");
txtLastchangeddateTime.getAccessibleContext().setAccessibleDescription("Time: " +tmpString);
txtLastchangeddateTime.getAccessibleContext().setAccessibleName("Time: Lastchangeddate");
txtLastchangeddateTime.setName("lastchangeddateTime");
txtLastchangeddateTime.setValue(model.getRbString(UserLogDataRb,"default_time_wsec","UserLogData"));

txtLastchangedby.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Lastchangedby","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Lastchangedby","UserLogData");
txtLastchangedby.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtLastchangedby.getAccessibleContext().setAccessibleName("Lastchangedby");
txtLastchangedby.setName("lastchangedby");

intScreen0.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen0","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen0","UserLogData");
intScreen0.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen0.getAccessibleContext().setAccessibleName("Screen0");
intScreen0.setName("screen0");

intScreen1.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen1","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen1","UserLogData");
intScreen1.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen1.getAccessibleContext().setAccessibleName("Screen1");
intScreen1.setName("screen1");

intScreen2.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen2","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen2","UserLogData");
intScreen2.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen2.getAccessibleContext().setAccessibleName("Screen2");
intScreen2.setName("screen2");

intScreen3.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen3","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen3","UserLogData");
intScreen3.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen3.getAccessibleContext().setAccessibleName("Screen3");
intScreen3.setName("screen3");

intScreen4.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen4","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen4","UserLogData");
intScreen4.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen4.getAccessibleContext().setAccessibleName("Screen4");
intScreen4.setName("screen4");

intScreen5.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen5","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen5","UserLogData");
intScreen5.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen5.getAccessibleContext().setAccessibleName("Screen5");
intScreen5.setName("screen5");

intScreen6.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen6","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen6","UserLogData");
intScreen6.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen6.getAccessibleContext().setAccessibleName("Screen6");
intScreen6.setName("screen6");

intScreen7.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen7","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen7","UserLogData");
intScreen7.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen7.getAccessibleContext().setAccessibleName("Screen7");
intScreen7.setName("screen7");

intScreen8.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen8","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen8","UserLogData");
intScreen8.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen8.getAccessibleContext().setAccessibleName("Screen8");
intScreen8.setName("screen8");

intScreen9.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen9","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen9","UserLogData");
intScreen9.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen9.getAccessibleContext().setAccessibleName("Screen9");
intScreen9.setName("screen9");

intScreen10.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Screen10","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Screen10","UserLogData");
intScreen10.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intScreen10.getAccessibleContext().setAccessibleName("Screen10");
intScreen10.setName("screen10");

btnViewhistory_dttime.setText(model.getRbString(UserLogDataRb,"New","UserLogData"));
btnViewhistory_dttime.setToolTipText(model.getRbString(UserLogDataRb,"datebtn_tooltip_Viewhistory_dttime","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"datebtn_tooltip_Viewhistory_dttime","UserLogData");
btnViewhistory_dttime.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
btnViewhistory_dttime.setName("viewhistory_dttime");
btnViewhistory_dttime.getAccessibleContext().setAccessibleName("Viewhistory_dttime");
tmpStr = model.getRbString(UserLogDataRb,"datebtn_hotkey_Viewhistory_dttime","UserLogData");
if (tmpStr.trim().length() > 0) {
btnViewhistory_dttime.setMnemonic((char)tmpStr.charAt(0));
}
/**
*
* Description - listener for Date Buttons - calls pop-up calendar
*
*/
btnViewhistory_dttime.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
tmpString = dtViewhistory_dttimeText.getText().trim();
tmpString = tmpString.trim();
if (tmpString.trim().length() == 0 || tmpString.equals(model.getRbString(UserLogDataRb,"Press New","UserLogData"))){tmpString = null;};
try {tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception ex) {tmpDate = null;}
com.halepringle.standard.DateDialog dateDialog = new com.halepringle.standard.DateDialog(frame,tmpDate);
dateDialog.pack();
dateDialog.show();

retCal = dateDialog.getCalendar();
dateDialog = null;
if (retCal == null){
txtViewhistory_dttimeTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));
dtViewhistory_dttimeText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData") );
}else{

java.util.Date aDate = retCal.getTime();
String tempString = formatterDateShort.format(aDate);
dtViewhistory_dttimeText.setText(tempString);
if ((txtViewhistory_dttimeTime.getText().equals(model.getRbString(UserLogDataRb,"default_time","UserLogData"))) ||
(txtViewhistory_dttimeTime.getText().trim().length() == 0)) {
sTime = tft.format(aDate);
if (!(sTime.substring(2,3).equals(":"))){ sTime = "0"+sTime; }
if (sTime.length() == 7 || sTime.length() == 5 || sTime.length() == 10){
sTime = "0" + sTime;
}
txtViewhistory_dttimeTime.setValue(sTime);
}
}}
});
dtViewhistory_dttimeText.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Viewhistory_dttime","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Viewhistory_dttime","UserLogData");
dtViewhistory_dttimeText.getAccessibleContext().setAccessibleDescription(tmpString);
dtViewhistory_dttimeText.getAccessibleContext().setAccessibleName("Viewhistory_dttime");
dtViewhistory_dttimeText.setEnabled(false);
dtViewhistory_dttimeText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData"));
rowObj.setDtViewhistory_dttimeText( model.getRbString(UserLogDataRb,"Press New","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btn_hotkey_Viewhistory_dttime","UserLogData");
if (tmpString.trim().length() > 0) {
btnViewhistory_dttime.setMnemonic((char)tmpString.charAt(0));
}
dtViewhistory_dttimeText.setName("viewhistory_dttime");
txtViewhistory_dttimeTime = new JFormattedTextField();
com.halepringle.standard.RegexFormatter Viewhistory_dttimeTimeFormatter = new com.halepringle.standard.RegexFormatter(model.getRbString(UserLogDataRb,"time_regex","UserLogData"));

Viewhistory_dttimeTimeFormatter.setAllowsInvalid(false);
Viewhistory_dttimeTimeFormatter.setOverwriteMode(true);
Viewhistory_dttimeTimeFormatter.setCommitsOnValidEdit(true);
txtViewhistory_dttimeTime.setFormatterFactory(new DefaultFormatterFactory(Viewhistory_dttimeTimeFormatter));
txtViewhistory_dttimeTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Viewhistory_dttime","UserLogData");
txtViewhistory_dttimeTime.getAccessibleContext().setAccessibleDescription("Time: " +tmpString);
txtViewhistory_dttimeTime.getAccessibleContext().setAccessibleName("Time: Viewhistory_dttime");
txtViewhistory_dttimeTime.setName("viewhistory_dttimeTime");
txtViewhistory_dttimeTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));

txtPassword.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Password","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Password","UserLogData");
txtPassword.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtPassword.getAccessibleContext().setAccessibleName("Password");
txtPassword.setName("password");

chkInactive.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Inactive","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Inactive","UserLogData");
chkInactive.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
chkInactive.getAccessibleContext().setAccessibleName("Inactive");
chkInactive.setName("inactive");

btnLastLogon.setText(model.getRbString(UserLogDataRb,"New","UserLogData"));
btnLastLogon.setToolTipText(model.getRbString(UserLogDataRb,"datebtn_tooltip_LastLogon","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"datebtn_tooltip_LastLogon","UserLogData");
btnLastLogon.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
btnLastLogon.setName("lastlogon");
btnLastLogon.getAccessibleContext().setAccessibleName("LastLogon");
tmpStr = model.getRbString(UserLogDataRb,"datebtn_hotkey_LastLogon","UserLogData");
if (tmpStr.trim().length() > 0) {
btnLastLogon.setMnemonic((char)tmpStr.charAt(0));
}
/**
*
* Description - listener for Date Buttons - calls pop-up calendar
*
*/
btnLastLogon.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
tmpString = dtLastLogonText.getText().trim();
tmpString = tmpString.trim();
if (tmpString.trim().length() == 0 || tmpString.equals(model.getRbString(UserLogDataRb,"Press New","UserLogData"))){tmpString = null;};
try {tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception ex) {tmpDate = null;}
com.halepringle.standard.DateDialog dateDialog = new com.halepringle.standard.DateDialog(frame,tmpDate);
dateDialog.pack();
dateDialog.show();

retCal = dateDialog.getCalendar();
dateDialog = null;
if (retCal == null){
txtLastLogonTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));
dtLastLogonText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData") );
}else{

java.util.Date aDate = retCal.getTime();
String tempString = formatterDateShort.format(aDate);
dtLastLogonText.setText(tempString);
if ((txtLastLogonTime.getText().equals(model.getRbString(UserLogDataRb,"default_time","UserLogData"))) ||
(txtLastLogonTime.getText().trim().length() == 0)) {
sTime = tft.format(aDate);
if (!(sTime.substring(2,3).equals(":"))){ sTime = "0"+sTime; }
if (sTime.length() == 7 || sTime.length() == 5 || sTime.length() == 10){
sTime = "0" + sTime;
}
txtLastLogonTime.setValue(sTime);
}
}}
});
dtLastLogonText.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_LastLogon","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_LastLogon","UserLogData");
dtLastLogonText.getAccessibleContext().setAccessibleDescription(tmpString);
dtLastLogonText.getAccessibleContext().setAccessibleName("LastLogon");
dtLastLogonText.setEnabled(false);
dtLastLogonText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData"));
rowObj.setDtLastLogonText( model.getRbString(UserLogDataRb,"Press New","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btn_hotkey_LastLogon","UserLogData");
if (tmpString.trim().length() > 0) {
btnLastLogon.setMnemonic((char)tmpString.charAt(0));
}
dtLastLogonText.setName("lastlogon");
txtLastLogonTime = new JFormattedTextField();
com.halepringle.standard.RegexFormatter LastLogonTimeFormatter = new com.halepringle.standard.RegexFormatter(model.getRbString(UserLogDataRb,"time_regex","UserLogData"));

LastLogonTimeFormatter.setAllowsInvalid(false);
LastLogonTimeFormatter.setOverwriteMode(true);
LastLogonTimeFormatter.setCommitsOnValidEdit(true);
txtLastLogonTime.setFormatterFactory(new DefaultFormatterFactory(LastLogonTimeFormatter));
txtLastLogonTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_LastLogon","UserLogData");
txtLastLogonTime.getAccessibleContext().setAccessibleDescription("Time: " +tmpString);
txtLastLogonTime.getAccessibleContext().setAccessibleName("Time: LastLogon");
txtLastLogonTime.setName("lastlogonTime");
txtLastLogonTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));

btnFirstlogon.setText(model.getRbString(UserLogDataRb,"New","UserLogData"));
btnFirstlogon.setToolTipText(model.getRbString(UserLogDataRb,"datebtn_tooltip_Firstlogon","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"datebtn_tooltip_Firstlogon","UserLogData");
btnFirstlogon.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
btnFirstlogon.setName("firstlogon");
btnFirstlogon.getAccessibleContext().setAccessibleName("Firstlogon");
tmpStr = model.getRbString(UserLogDataRb,"datebtn_hotkey_Firstlogon","UserLogData");
if (tmpStr.trim().length() > 0) {
btnFirstlogon.setMnemonic((char)tmpStr.charAt(0));
}
/**
*
* Description - listener for Date Buttons - calls pop-up calendar
*
*/
btnFirstlogon.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
tmpString = dtFirstlogonText.getText().trim();
tmpString = tmpString.trim();
if (tmpString.trim().length() == 0 || tmpString.equals(model.getRbString(UserLogDataRb,"Press New","UserLogData"))){tmpString = null;};
try {tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception ex) {tmpDate = null;}
com.halepringle.standard.DateDialog dateDialog = new com.halepringle.standard.DateDialog(frame,tmpDate);
dateDialog.pack();
dateDialog.show();

retCal = dateDialog.getCalendar();
dateDialog = null;
if (retCal == null){
txtFirstlogonTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));
dtFirstlogonText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData") );
}else{

java.util.Date aDate = retCal.getTime();
String tempString = formatterDateShort.format(aDate);
dtFirstlogonText.setText(tempString);
if ((txtFirstlogonTime.getText().equals(model.getRbString(UserLogDataRb,"default_time","UserLogData"))) ||
(txtFirstlogonTime.getText().trim().length() == 0)) {
sTime = tft.format(aDate);
if (!(sTime.substring(2,3).equals(":"))){ sTime = "0"+sTime; }
if (sTime.length() == 7 || sTime.length() == 5 || sTime.length() == 10){
sTime = "0" + sTime;
}
txtFirstlogonTime.setValue(sTime);
}
}}
});
dtFirstlogonText.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Firstlogon","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Firstlogon","UserLogData");
dtFirstlogonText.getAccessibleContext().setAccessibleDescription(tmpString);
dtFirstlogonText.getAccessibleContext().setAccessibleName("Firstlogon");
dtFirstlogonText.setEnabled(false);
dtFirstlogonText.setText(model.getRbString(UserLogDataRb,"Press New","UserLogData"));
rowObj.setDtFirstlogonText( model.getRbString(UserLogDataRb,"Press New","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btn_hotkey_Firstlogon","UserLogData");
if (tmpString.trim().length() > 0) {
btnFirstlogon.setMnemonic((char)tmpString.charAt(0));
}
dtFirstlogonText.setName("firstlogon");
txtFirstlogonTime = new JFormattedTextField();
com.halepringle.standard.RegexFormatter FirstlogonTimeFormatter = new com.halepringle.standard.RegexFormatter(model.getRbString(UserLogDataRb,"time_regex","UserLogData"));

FirstlogonTimeFormatter.setAllowsInvalid(false);
FirstlogonTimeFormatter.setOverwriteMode(true);
FirstlogonTimeFormatter.setCommitsOnValidEdit(true);
txtFirstlogonTime.setFormatterFactory(new DefaultFormatterFactory(FirstlogonTimeFormatter));
txtFirstlogonTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Firstlogon","UserLogData");
txtFirstlogonTime.getAccessibleContext().setAccessibleDescription("Time: " +tmpString);
txtFirstlogonTime.getAccessibleContext().setAccessibleName("Time: Firstlogon");
txtFirstlogonTime.setName("firstlogonTime");
txtFirstlogonTime.setValue(model.getRbString(UserLogDataRb,"default_time","UserLogData"));

areaNotes.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Notes","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Notes","UserLogData");
areaNotes.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
areaNotes.getAccessibleContext().setAccessibleName("Notes");
areaNotes.setLineWrap(true);
areaNotes.setWrapStyleWord(true);
areaNotes.setName("notes");


txtSkillAdmin.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_SkillAdmin","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_SkillAdmin","UserLogData");
txtSkillAdmin.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtSkillAdmin.getAccessibleContext().setAccessibleName("SkillAdmin");
txtSkillAdmin.setName("skilladmin");

txtSkillResearch.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_SkillResearch","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_SkillResearch","UserLogData");
txtSkillResearch.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtSkillResearch.getAccessibleContext().setAccessibleName("SkillResearch");
txtSkillResearch.setName("skillresearch");

txtSkillTyping.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_SkillTyping","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_SkillTyping","UserLogData");
txtSkillTyping.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtSkillTyping.getAccessibleContext().setAccessibleName("SkillTyping");
txtSkillTyping.setName("skilltyping");

txtSkillComputer.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_SkillComputer","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_SkillComputer","UserLogData");
txtSkillComputer.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtSkillComputer.getAccessibleContext().setAccessibleName("SkillComputer");
txtSkillComputer.setName("skillcomputer");

txtQuery_Classname.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Query_Classname","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Query_Classname","UserLogData");
txtQuery_Classname.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtQuery_Classname.getAccessibleContext().setAccessibleName("Query_Classname");
txtQuery_Classname.setName("query_classname");

txtQuery_template.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Query_template","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Query_template","UserLogData");
txtQuery_template.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtQuery_template.getAccessibleContext().setAccessibleName("Query_template");
txtQuery_template.setName("query_template");

intQuery_ColCount.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Query_ColCount","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Query_ColCount","UserLogData");
intQuery_ColCount.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
intQuery_ColCount.getAccessibleContext().setAccessibleName("Query_ColCount");
intQuery_ColCount.setName("query_colcount");

areaQuery_Text.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Query_Text","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Query_Text","UserLogData");
areaQuery_Text.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
areaQuery_Text.getAccessibleContext().setAccessibleName("Query_Text");
areaQuery_Text.setLineWrap(true);
areaQuery_Text.setWrapStyleWord(true);
areaQuery_Text.setName("query_text");

txtQuery_Type.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Query_Type","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Query_Type","UserLogData");
txtQuery_Type.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtQuery_Type.getAccessibleContext().setAccessibleName("Query_Type");
txtQuery_Type.setName("query_type");

txtQuery_Name.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Query_Name","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Query_Name","UserLogData");
txtQuery_Name.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtQuery_Name.getAccessibleContext().setAccessibleName("Query_Name");
txtQuery_Name.setName("query_name");

txtQuery_Username.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Query_Username","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"tooltip_Query_Username","UserLogData");
txtQuery_Username.getAccessibleContext().setAccessibleDescription( java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Enter {0}","UserLogData"),new String[]{""+tmpString }) );
txtQuery_Username.getAccessibleContext().setAccessibleName("Query_Username");
txtQuery_Username.setName("query_username");
updateOrInsert = "Update";
/**
*
* Description - listener for Clear Button
*
*/
btnClear.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
if (!addRights) {
//

JxFrame Example - Example of passing frame into a JDialog



JOptionPane.showMessageDialog(frame,
model.getRbString(UserLogDataRb,"NOTICE - Your account does not have Add rights to this screen","UserLogData"), model.getRbString(UserLogDataRb,"Rights Issue","UserLogData"),
JOptionPane.INFORMATION_MESSAGE);

return;}

clearItUserLogData();

}
});// end of clear button
btnNext.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
// put the next row code here
String tString = model.getRbString(UserLogDataRb,"Error moving to next row","UserLogData");
try {
selectedRow = lsm.getMinSelectionIndex();
selectedRow = selectedRow + 1;
if (selectedRow > myModel.getRowCount()){
selectedRow = selectedRow - 1;
}
table.setRowSelectionInterval(selectedRow, selectedRow) ;
}catch (Exception ex){System.out.println("Error moving to NEXT row");

Toolkit.getDefaultToolkit().beep();
model.showErrorOccurred();
logger.severe(tString+ " " + ex);
if(jTextLog==null){jTextLog = model.getJTextArea();}
jTextLog.append(tString + " " + ex);
};

}
});// end of NEXT button
btnPrevious.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
String tString = model.getRbString(UserLogDataRb,"Error moving to previous row","UserLogData");
try {
selectedRow = lsm.getMinSelectionIndex();
selectedRow = selectedRow - 1;
if (selectedRow < 0){
selectedRow = selectedRow + 1;
}
table.setRowSelectionInterval(selectedRow, selectedRow) ;
}catch (Exception ex){System.out.println("Error moving to PREVIOUS row");
Toolkit.getDefaultToolkit().beep();
model.showErrorOccurred();
logger.severe(tString+ " " + ex);
if(jTextLog==null){jTextLog = model.getJTextArea();}
jTextLog.append(tString + " " + ex);
};
}
});// end of Previous button
/**
*
* Description - listener for Delete button
*
*/
btnDelete.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
if (!deleteRights) {
JOptionPane.showMessageDialog(frame,
model.getRbString(UserLogDataRb,"NOTICE - Your account does not have Delete rights to this screen","UserLogData"),model.getRbString(UserLogDataRb,"Rights Issue","UserLogData"),
JOptionPane.INFORMATION_MESSAGE);

return;}

Object[] options = {model.getRbString(UserLogDataRb,"Yes","UserLogData"), model.getRbString(UserLogDataRb,"No","UserLogData")};
int n = JOptionPane.showOptionDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"Remove this row in {0}?","UserLogData"),
new String[]{"" + "UserLogData"}),
model.getRbString(UserLogDataRb,"Remove Message","UserLogData"),
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[1]);
if (n == JOptionPane.YES_OPTION) {
// do nothing
} else {
return;
}
// NOTE: You must set this up to match your individual table XXXX
// this example does not really delete a row, it marks a field true
update_UserLogData = "inactive = " + trueValue ;
calendar = java.util.Calendar.getInstance();
date = calendar.getTime();
String longNewDate = formatterTsStd.format(date);
update_UserLogData = update_UserLogData + ", lastchangeddate = {ts '"+longNewDate+"'}";
update_UserLogData = update_UserLogData + ", lastchangedby = '"+model.getCurrentUser()+"'";
utm.updateTable( Integer.toString(rowObj.getUser_id()), update_UserLogData,"user_id", null, null );
utm.fire();
// get all of the data again and display things without the deleted row xxxx;
// getDataUserLogDataByID(user_id.getValue(),null);
// This version of getData allow the system to get inactive rows if applicable
// getDataUserLogDataByID(user_id.getValue(),currentQuery,"NO");
updateOrInsert = "Update";

}} );// end of delete listener
/// ******* DO NOT FORGET - A) Search for xxxx and fix ID B) update Sequence in database*/

//
/** SECTION 4 - SETUP POPUP MENU */
//
//

/** SECTION 4 - SETUP POPUP MENU */



/** description an inner clase to activate the popup menu
* @param none
* #Returns nothing
*/
class MousePopupListener extends MouseAdapter {
public void mousePressed(MouseEvent e) { checkPopup(e); }
public void mouseClicked(MouseEvent e) { checkPopup(e); }
public void mouseReleased(MouseEvent e) { checkPopup(e); }

private void checkPopup(MouseEvent e) {
if (e.isPopupTrigger()) {
popup.show(UserLogData.this, e.getX(), e.getY());
}
}
}

/** description an inner class to show when popup events occur
* @param none
* #Returns nothing
*/

class PopupPrintListener implements PopupMenuListener {
public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
}
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
}
public void popupMenuCanceled(PopupMenuEvent e) {
}
} //end of PopoPrintListener

/**
*
* description - listener for save button
*
*/
btnSave.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e){
btnSaveDoit();
}});//end of save button Listener

btnPanel = new JMenuBar();
popup = new JPopupMenu();
ActionListener menuListener = new ActionListener() {
public void actionPerformed(ActionEvent event) {
String item = event.getActionCommand();
if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Delete_Button","UserLogData"))){
btnDelete.doClick();
} else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Dup_Button","UserLogData"))){
btnDup();
} else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Next_Button","UserLogData")) ||
item.equalsIgnoreCase("[#Next_Button#]")){
btnNext.doClick();
} else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Previous_Button","UserLogData")) ||
item.equalsIgnoreCase("[#Previous_Button#]")){
btnPrevious.doClick();
}else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Clear_Button","UserLogData"))){
btnClear.doClick();
}else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Help_Button","UserLogData"))){
btnHelp.doClick();
}else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Print_Button","UserLogData"))){
btnPrint.doClick();
}else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Cancel_Button","UserLogData"))){
btnCancel.doClick();
}else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"EXtra_Button","UserLogData"))){
btnXtra.doClick();
}else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Find_Button","UserLogData"))){
btnFind.doClick();
}else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Save_Button","UserLogData"))){
btnSave.doClick();
}else if (item.equalsIgnoreCase(model.getRbString(UserLogDataRb,"Switch Look-and-Feel...","UserLogData"))){
item44.doClick();
} else {
System.out.println("Problem with popup menu. Item selected =" + item);
}

}
};
JMenuItem item;

popup.setLabel(model.getRbString(UserLogDataRb,"PopUp Menu","UserLogData"));
popup.setBorder(new BevelBorder(BevelBorder.RAISED));
popup.addPopupMenuListener(new PopupPrintListener());
addMouseListener(new MousePopupListener());
//NOTE: you can change the spacing between the button by changing the 3 in the next line
Icon ic = null;
String hlp = model.getRbString(UserLogDataRb,"Help_Button","UserLogData");
btnHelp.setName("Help_Button");
if (textInMenu.equals("Y")){
btnHelp.setText(hlp);
} else {
btnHelp.setText(null);
}
if (iconsInMenu.equals("Y")){
ic = model.getImage("help16.gif");
}
if (ic != null) {
btnHelp.setIcon(ic);
} else {
btnHelp.setText(hlp);
}
btnHelp.setMargin(new Insets(0,0,0,0));
btnHelp.setToolTipText(model.getRbString(UserLogDataRb,"Press this to see a help screen","UserLogData"));
btnHelp.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Help_Button","UserLogData"));
btnHelp.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press this to see a help screen","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnHelp_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnHelp.setMnemonic((char)tmpString.charAt(0));
}
String prt = model.getRbString(UserLogDataRb,"Print_Button","UserLogData");
btnPrint.setName("Print_Button");
if (textInMenu.equals("Y")){
btnPrint.setText(prt);
} else {
btnPrint.setText(null);
}
ic = null;
if (iconsInMenu.equals("Y")){
ic = model.getImage("Print16.gif");
}
if (ic != null) {
btnPrint.setIcon(ic);
} else {
btnPrint.setText(prt);
}
btnPrint.setMargin(new Insets(0,0,0,0));
btnPrint.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Print_Button","UserLogData"));
btnPrint.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press to Print this screen","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnPrint_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnPrint.setMnemonic((char)tmpString.charAt(0));
}
btnPrint.setToolTipText(model.getRbString(UserLogDataRb,"Press to Print this screen","UserLogData"));
String can = model.getRbString(UserLogDataRb,"Cancel_Button","UserLogData");
btnCancel.setName("Cancel_Button");
if (textInMenu.equals("Y")){
btnCancel.setText(can);
} else {
btnCancel.setText(null);
}
ic = null;
if (iconsInMenu.equals("Y")){
ic = model.getImage("Exit_ico16.gif");
if (ic != null) {
btnCancel.setIcon(ic);
}
} else {
btnCancel.setText(can);
}
btnCancel.setMargin(new Insets(0,0,0,0));
btnCancel.setToolTipText(model.getRbString(UserLogDataRb,"Press this to exit the Screen","UserLogData"));
btnCancel.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Cancel_Button","UserLogData"));
btnCancel.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press this to exit the Screen","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnCancel_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnCancel.setMnemonic((char)tmpString.charAt(0));
}
btnSave_Setup("Save");
String xtra = model.getRbString(UserLogDataRb,"EXtra_Button","UserLogData");
btnXtra.setName("EXtra_Button");
if (textInMenu.equals("Y")){
btnXtra.setText(xtra);
} else {
btnXtra.setText(null);
}
ic = null;
if (iconsInMenu.equals("Y")){
ic = model.getImage("UserLogData_Xtra_ico16.gif");
if (ic == null) {
ic = model.getImage("Xtra_ico16.gif");
}
if (ic != null) {
btnXtra.setIcon(ic);
}
} else {
btnXtra.setText(xtra);
}
btnXtra.setMargin(new Insets(0,0,0,0));
btnXtra.setToolTipText(model.getRbString(UserLogDataRb,"Press this to execute the EXtra key","UserLogData"));
btnXtra.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"EXtra_Button","UserLogData"));
btnXtra.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press this to execute the EXtra key","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnXtra_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnXtra.setMnemonic((char)tmpString.charAt(0));
}
String fnd = model.getRbString(UserLogDataRb,"Find_Button","UserLogData");
btnFind.setName("Find_Button");
if (textInMenu.equals("Y")){
btnFind.setText(fnd);
} else {
btnFind.setText(null);
}
ic = null;
if (iconsInMenu.equals("Y")){
ic = model.getImage("Find16.gif");
}
if (ic != null) {
btnFind.setIcon(ic);
} else {
btnFind.setText(fnd);
}
btnFind.setMargin(new Insets(0,0,0,0));
btnFind.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Find_Button","UserLogData"));
btnFind.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press to find special rows in the Table (filter the rows)","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnFind_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnFind.setMnemonic((char)tmpString.charAt(0));
}
btnFind.setToolTipText(model.getRbString(UserLogDataRb,"Press to find special rows in the Table (filter the rows)","UserLogData"));
String clr = model.getRbString(UserLogDataRb,"Clear_Button","UserLogData");
btnClear.setName("Clear_Button");
if (textInMenu.equals("Y")){
btnClear.setText(clr);
} else {
btnClear.setText(null);
}
ic = null;
if (iconsInMenu.equals("Y")){
ic = model.getImage("Add16.gif");
}
if (ic != null) {
btnClear.setIcon(ic);
} else {
btnClear.setText(clr);
}
btnClear.setMargin(new Insets(0,0,0,0));
btnClear.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Clear_Button","UserLogData"));
btnClear.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press to Clear the current values from all fields (prepare for an ADD)","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnClear_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnClear.setMnemonic((char)tmpString.charAt(0));
}
btnClear.setToolTipText(model.getRbString(UserLogDataRb,"Press to Clear the current values from all fields (preparte for an ADD)","UserLogData"));
String dup = model.getRbString(UserLogDataRb,"Dup_Button","UserLogData");
btnDup.setName("Dup_Button");
btnDup.setText(dup);
btnDup.setMargin(new Insets(0,0,0,0));
btnDup.setToolTipText(model.getRbString(UserLogDataRb,"Press to Duplicate the current record","UserLogData"));
btnDup.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Dup_Button","UserLogData"));
btnDup.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press to Duplicate the current record","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnDup_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnDup.setMnemonic((char)tmpString.charAt(0));
}
String next = model.getRbString(UserLogDataRb,"Next_Button","UserLogData");
btnNext.setName("Next_Button");
btnNext.setText(next);
btnNext.setMargin(new Insets(0,0,0,0));
btnNext.setToolTipText(model.getRbString(UserLogDataRb,"Press to move table to next row.","UserLogData"));
btnNext.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Next_Button","UserLogData"));
btnNext.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press to move table to next row.","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnNext_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnNext.setMnemonic((char)tmpString.charAt(0));
}
String prev = model.getRbString(UserLogDataRb,"Previous_Button","UserLogData");
btnPrevious.setName("Previous_Button");
btnPrevious.setText(prev);
btnPrevious.setMargin(new Insets(0,0,0,0));
btnPrevious.setToolTipText(model.getRbString(UserLogDataRb,"Press to move table to previous row.","UserLogData"));
btnPrevious.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Previous_Button","UserLogData"));
btnPrevious.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press to move table to previous row.","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnPrevious_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnPrevious.setMnemonic((char)tmpString.charAt(0));
}
String del = model.getRbString(UserLogDataRb,"Delete_Button","UserLogData");
btnDelete.setName("Delete_Button");
if (textInMenu.equals("Y")){
btnDelete.setText(del);
} else {
btnDelete.setText(null);
}
ic = null;
if (iconsInMenu.equals("Y")){
ic = model.getImage("Delete16.gif");
}
if (ic != null) {
btnDelete.setIcon(ic);
} else {
btnDelete.setText(del);
}
btnDelete.setMargin(new Insets(0,0,0,0));
btnDelete.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Delete_Button","UserLogData"));
btnDelete.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press to Delete the current record","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnDelete_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnDelete.setMnemonic((char)tmpString.charAt(0));
}
btnDelete.setToolTipText(model.getRbString(UserLogDataRb,"Press to Delete the current record","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnDelete_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnDelete.setMnemonic((char)tmpString.charAt(0));
}
btnPanel.add(btnDelete); //,r, col++, 1, nofill);
popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"Delete_Button","UserLogData")));
item.addActionListener(menuListener);

btnPanel.add(btnClear); //,r, col++, 1, nofill);
popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"Clear_Button","UserLogData")));
item.addActionListener(menuListener);

//btnPanel.add(btnDup); //,r, col++, 1, nofill);
// the Dup button is not on the main menu bar
popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"Dup_Button","UserLogData")));
item.addActionListener(menuListener);

popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"Next_Button","UserLogData")));
item.addActionListener(menuListener);

popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"Previous_Button","UserLogData")));
item.addActionListener(menuListener);

btnPanel.add(btnPrint); //,r, col++, 1, nofill);
popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"Print_Button","UserLogData")));
item.addActionListener(menuListener);

btnPanel.add(btnCancel);//,r, col++, 1, nofill);
popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"Cancel_Button","UserLogData")));
item.addActionListener(menuListener);

btnPanel.add(btnXtra);//,r, col++, 1, nofill);
popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"EXtra_Button","UserLogData")));
item.addActionListener(menuListener);

btnPanel.add(btnFind); //,r, col++, 1, nofill);
popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"Find_Button","UserLogData")));
item.addActionListener(menuListener);

btnPanel.add(btnSave); //,r, col++, 1, nofill);
popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"Save_Button","UserLogData")));
item.addActionListener(menuListener);
if (menuAtTop.equals("Y")){
btnPanel.add(Box.createHorizontalGlue());
}
btnPanel.add(btnHelp); //,r, col++, 1, nofill);
popup.add(item = new JMenuItem(model.getRbString(UserLogDataRb,"Help_Button","UserLogData")));
item.addActionListener(menuListener);

item44 = com.halepringle.standard.SwitchLF.createSwitchLFMenu("Switch Look-and-Feel...",
frame, false, true);
if (item44 != null) {
popup.addSeparator();
popup.add(item44);
item44.addActionListener(menuListener);
}
if (menuAtTop.equals("Y")) {
frame.getRootPane().setJMenuBar(btnPanel);
}
this.setLayout(new com.halepringle.standard.RowLayout1());


//
/** SECTION 5- MAIN DRIVER SECTION - DO THE WORK */
//
//

/** SECTION 5- MAIN DRIVER SECTION - DO THE WORK */



if (user_id.getValue() == -2){
// components should be clear - set for add
updateOrInsert = "Insert";
btnSave_Setup("Add");
rowObj.setUser_id( 0 );
tableScrollPane = new JScrollPane(table,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
buildLayout();
} else if (user_id.getValue() == -1) {
// start with the FIND screen
btnFind.doClick();
} else {
// get either all rows (user_Id = 0) or one row (user_id > 0)
getDataUserLogDataByID(user_id.getValue(), null, null );
// if rowObj.getUser_id() is now -2, it means that the request returned zero rows
// and the system automatically reverts to ADD mode
if (rowObj.getUser_id() == -2){
updateOrInsert = "Insert";
btnSave_Setup("Add");
rowObj.setUser_id( 0 );
tableScrollPane = new JScrollPane(table,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
buildLayout();
}
}//end of else/else if


//// buildLayout();
} //end of consturctor

/**
*
* Description - Method to duplicate a row
*
*/
public void btnDup() {
rowObj.setUser_id(0);
btnSave.doClick();
// newId is now set to the Id of the duplicate item

if (newId > 0) {
int maxRow = table.getRowCount();
int tmpInt = -1;
Object tmpObj;
for (int i=0; i < maxRow; i++){
tmpObj = table.getValueAt(i, UTM_USER_ID);
if (tmpObj == null){
tmpString = "-1";
} else {
tmpString = tmpObj.toString();
};
tmpString = tmpString.trim();
try {
tmpInt = Integer.parseInt(tmpString);
} catch (Exception ex) {
tmpInt = -1;
}
if (tmpInt == -1 ){
maxRow = 0;
break;
}
if ( tmpInt == newId){
maxRow = i;
break;
}
} // end of for i = 1 maxRow
if (tmpInt != -1) {
// make the row just added the active row - highlight it
table.setRowSelectionInterval(maxRow, maxRow);
oldDisplayRow = maxRow;
// make sure the row is visible
table.repaint();
tableScrollPane.repaint();
scrollVertically(table, getRowBounds(table, maxRow));
}
} // end of if newId > 0


} // end bo btnDup method

/**
*
* description - method to check for error and must have fields
*
*/
//
/** SECTION 6 - CHECKS ALL FIELDS FOR ERRORS */
//
//

/** SECTION 6 - CHECKS ALL FIELDS FOR ERRORS */



public int checkUserLogDataData() {
int errs = 0;
String msg = "";
double tmpDouble = 0.0;
Double tmpDBL = new Double(0.0);
if (goingBack) {return 0;}
// if (txtXXX.getText().length().trim() == 0) {
// errs = errs + 1;
// msg = msg + "\nXXXX must be present and is missing";
// }
try { tmpDBL = numHireAge.getDoubleValue();}
catch (Exception ex) {tmpDBL = new Double(0);
errs = errs + 1;
msg = msg + "\n"+java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Field {0} - Incorrect Data","UserLogData"), new String[]{"hireage"});
};
try { tmpDBL = numCategory.getDoubleValue();}
catch (Exception ex) {tmpDBL = new Double(0);
errs = errs + 1;
msg = msg + "\n"+java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Field {0} - Incorrect Data","UserLogData"), new String[]{"category"});
};

if (errs > 0){
JOptionPane.showMessageDialog(null,
model.getRbString(UserLogDataRb,"ERROR -Required fields are missing or wrong:","UserLogData")+" "+ msg , model.getRbString(UserLogDataRb,"Errors","UserLogData"),
JOptionPane.ERROR_MESSAGE);
}
return errs;
} //end of Check? method
/**
*
* description - method to create sql update and insert fields
*
*/
//
/** SECTION 10- CHECK FOR CHANGED FIELDS - SETUP UPDATE and INSERT STRINGS */
//
//

/** SECTION 10- CHECK FOR CHANGED FIELDS - SETUP UPDATE and INSERT STRINGS */



public int setDataUserLogData() {
vars_UserLogData = "";
values_UserLogData = "";
update_UserLogData = "";
int changes = 0;
double tmpDouble = 0.0;
Double tmpDBL = new Double(tmpDouble);
String tmpString;
String tmpString1;
String currentDate;
String newTime;
String newTimeMedium;
String convertedTime;
changeMsg= "";
int tmpInt;
String tmpVarName = "";
String space = " " ;
space = space + space + space + space;
getRevisedDataUserLogData();
//
/** SECTION 11- GET CHANGED DATA FROM VISUAL COMPONANTS & BUILD NEWROWOBJ */
//
//

/** SECTION 11- GET CHANGED DATA FROM VISUAL COMPONANTS & BUILD NEWROWOBJ */



try {
tmpVarName = "User_id";

tmpVarName = "FirstName";

//

Bounded Text Field Example - Test if data changed, set up update & insert strings



tmpString = model.QuoteReplacer(newRowObj.getFirstName());
vars_UserLogData = vars_UserLogData + "firstName, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getFirstName()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_FirstName","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "firstName = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "MiddleName";

tmpString = model.QuoteReplacer(newRowObj.getMiddleName());
vars_UserLogData = vars_UserLogData + "middleName, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getMiddleName()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_MiddleName","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "middleName = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Lastname";

tmpString = model.QuoteReplacer(newRowObj.getLastname());
vars_UserLogData = vars_UserLogData + "lastname, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getLastname()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Lastname","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "lastname = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Login_name";

tmpString = model.QuoteReplacer(newRowObj.getLogin_name());
vars_UserLogData = vars_UserLogData + "login_name, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getLogin_name()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Login_name","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "login_name = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "PartTime";

tmpCode = newRowObj.getPartTime();
vars_UserLogData = vars_UserLogData + "partTime, ";
values_UserLogData = values_UserLogData +"'" + model.TrimOrSpace(tmpCode)+"', ";
if (!(tmpCode.trim().equals(rowObj.getPartTime().trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_PartTime","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "partTime = '"+ model.TrimOrSpace(tmpCode)+"', ";
}
tmpVarName = "Address1";

tmpString = model.QuoteReplacer(newRowObj.getAddress1());
vars_UserLogData = vars_UserLogData + "address1, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getAddress1()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Address1","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "address1 = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Address2";

tmpString = model.QuoteReplacer(newRowObj.getAddress2());
vars_UserLogData = vars_UserLogData + "address2, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getAddress2()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Address2","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "address2 = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "City";

tmpString = model.QuoteReplacer(newRowObj.getCity());
vars_UserLogData = vars_UserLogData + "city, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getCity()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_City","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "city = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "State";

tmpString = model.QuoteReplacer(newRowObj.getState());
vars_UserLogData = vars_UserLogData + "state, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getState()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_State","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "state = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Zip";

tmpString = model.QuoteReplacer(newRowObj.getZip());
vars_UserLogData = vars_UserLogData + "zip, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getZip()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Zip","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "zip = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Email";

tmpString = model.QuoteReplacer(newRowObj.getEmail());
Pattern emailPattern= Pattern.compile(model.getRbString(UserLogDataRb,"email_regex","UserLogData"));
Matcher em = emailPattern.matcher("");
// out for now - not working if ((tmpString.trim().length() ==0 ) || (em.reset(tmpString).matches())) {
// // do nothing - okay
// } else {
// changes++;
// changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"Warning - email address appears invalid","UserLogData");
// }
if ((tmpString.indexOf("@@") > 0) ||
(tmpString.indexOf("..") > 0) ||
(tmpString.indexOf("@") != tmpString.lastIndexOf("@"))) {
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"Warning - email address appears invalid -@ or .","UserLogData");
}
vars_UserLogData = vars_UserLogData + "email, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getEmail()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Email","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "email = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Officephone";

//

#Telephone mask - get data from component- set default to blank #



tmpString = model.QuoteReplacer(newRowObj.getOfficephone());
vars_UserLogData = vars_UserLogData + "officephone, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getOfficephone()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Officephone","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "officephone = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "HomePhone";

tmpString = model.QuoteReplacer(newRowObj.getHomePhone());
vars_UserLogData = vars_UserLogData + "homePhone, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getHomePhone()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_HomePhone","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "homePhone = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "HireAge";

tmpDouble = newRowObj.getHireAge();
vars_UserLogData = vars_UserLogData + "hireAge, ";
// values = values + tmpString.trim()+", ";
values_UserLogData = values_UserLogData + new Double(tmpDouble).toString().trim() + " , ";
if (!(tmpDouble == rowObj.getHireAge())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_HireAge","UserLogData") +model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "hireAge = "+tmpDBL.toString().trim() +", ";
}
tmpVarName = "UserphotoUrl";

tmpString = model.QuoteReplacer(newRowObj.getUserphotoUrl());
vars_UserLogData = vars_UserLogData + "userphotoUrl, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getUserphotoUrl()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_UserphotoUrl","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "userphotoUrl = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "ResumeUrl";

tmpString = model.QuoteReplacer(newRowObj.getResumeUrl());
vars_UserLogData = vars_UserLogData + "resumeUrl, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getResumeUrl()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_ResumeUrl","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "resumeUrl = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Title";

tmpString = model.QuoteReplacer(newRowObj.getTitle());
vars_UserLogData = vars_UserLogData + "title, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getTitle()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Title","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "title = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Gender";

tmpString = "";
tmpString = newRowObj.getGender();
vars_UserLogData = vars_UserLogData + "gender, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(rowObj.getGender().trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb, "change_description_Gender","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "gender = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Department";

tmpString = model.QuoteReplacer(newRowObj.getDepartment());
vars_UserLogData = vars_UserLogData + "department, ";
values_UserLogData = values_UserLogData + "'"+tmpString.trim()+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getDepartment().trim())))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Department","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "department = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "AuthorityGroup1";

tmpString = model.QuoteReplacer(newRowObj.getAuthorityGroup1());
vars_UserLogData = vars_UserLogData + "authorityGroup1, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getAuthorityGroup1()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_AuthorityGroup1","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "authorityGroup1 = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "AuthorityGroup2";

tmpString = model.QuoteReplacer(newRowObj.getAuthorityGroup2());
vars_UserLogData = vars_UserLogData + "authorityGroup2, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getAuthorityGroup2()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_AuthorityGroup2","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "authorityGroup2 = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Start_Date";

tmpString = newRowObj.getDtStart_DateText();
if (tmpString == null){tmpString = "";}
tmpString1 = tmpString;
try {tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception ex) {tmpDate = null;}
try {tmpString = formatterStd.format(tmpDate);}
catch (Exception ex1) {tmpString = "";}
vars_UserLogData = vars_UserLogData + "start_Date, ";
if (tmpString.trim().length() > 0){
values_UserLogData = values_UserLogData + "{d '" + model.TrimOrSpace(tmpString)+"'}, ";
} else {
values_UserLogData = values_UserLogData + " null, ";
}
if (rowObj.getDtStart_DateText()== null || rowObj.getDtStart_DateText().trim().length() == 0){rowObj.setDtStart_DateText(model.getRbString(UserLogDataRb,"Press New","UserLogData"));};
if (tmpString1.trim().length() == 0){tmpString1 = model.getRbString(UserLogDataRb,"Press New","UserLogData");};
if (!(rowObj.getDtStart_DateText().trim().equals(tmpString1.trim()))){;
changes++;
System.out.println("Start_Date- changed ");
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Start_Date","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
if (tmpString.trim().length() == 0 ||
tmpString.trim().equalsIgnoreCase(model.getRbString(UserLogDataRb,"Press New","UserLogData"))){
update_UserLogData = update_UserLogData + "start_Date = null, ";
} else {
update_UserLogData = update_UserLogData + "start_Date = {d '" + tmpString.trim()+"'}, ";
}
}
tmpVarName = "Wp_path";

tmpString = model.QuoteReplacer(newRowObj.getWp_path());
vars_UserLogData = vars_UserLogData + "wp_path, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getWp_path()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Wp_path","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "wp_path = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Brow_path";

tmpString = model.QuoteReplacer(newRowObj.getBrow_path());
vars_UserLogData = vars_UserLogData + "brow_path, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getBrow_path()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Brow_path","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "brow_path = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Ipaddress";

tmpString = model.QuoteReplacer(newRowObj.getIpaddress());
vars_UserLogData = vars_UserLogData + "ipaddress, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getIpaddress()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Ipaddress","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "ipaddress = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Category";

tmpDouble = newRowObj.getCategory();
vars_UserLogData = vars_UserLogData + "category, ";
// values = values + tmpString.trim()+", ";
values_UserLogData = values_UserLogData + new Double(tmpDouble).toString().trim() + " , ";
if (!(tmpDouble == rowObj.getCategory())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Category","UserLogData") +model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "category = "+tmpDBL.toString().trim() +", ";
}
tmpVarName = "Ssn";

tmpString = model.QuoteReplacer(newRowObj.getSsn());
vars_UserLogData = vars_UserLogData + "ssn, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getSsn()).trim()))){
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Ssn","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "ssn = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "LoginTime";

newTime = newRowObj.getTxtLoginTimeTime();
convertedTime ="";
try {
java.util.Date newDate = formatterTimeShort.parse(newTime);
convertedTime = formatterStdTime.format(newDate);}
catch (Exception exp1) {convertedTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");}
// System.out.println("Converted Time: " + convertedTime);
tmpString = convertedTime;
vars_UserLogData = vars_UserLogData + "loginTime, ";
if (tmpString.trim().length() == 0 ||
(tmpString.trim().equals(model.getRbString(UserLogDataRb,"default_time","UserLogData")) || (tmpString.trim().equals(model.getRbString(UserLogDataRb,"default_time_wsec","UserLogData"))))){
values_UserLogData = values_UserLogData+ "null, ";
} else {
tmpString= tmpString + " ";
tmpString= tmpString.substring(0,10).trim();
values_UserLogData = values_UserLogData + "{t '"+convertedTime+"' }, ";
}
if (!(newTime.trim().equals(rowObj.getTxtLoginTimeTime().trim()))){;
// System.out.println("New time: "+newTime);
// System.out.println("old datetime: "+ rowObj.getLoginTimeTime());
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_LoginTime","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
if (tmpString.trim().length() == 0 ||
(tmpString.trim().equals(model.getRbString(UserLogDataRb,"default_time_wsec","UserLogData")) || (tmpString.trim().equals(model.getRbString(UserLogDataRb,"default_time","UserLogData"))))){
update_UserLogData = update_UserLogData + "loginTime = null, ";
} else {
update_UserLogData = update_UserLogData + "loginTime = {t '"+convertedTime+"' }, ";
} }
tmpVarName = "Logfld";

tmpString = model.QuoteReplacer(newRowObj.getLogfld());
vars_UserLogData = vars_UserLogData + "logfld, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getLogfld().trim())))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Logfld","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "logfld = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "IpAdds";

tmpString = model.QuoteReplacer(newRowObj.getIpAdds());
vars_UserLogData = vars_UserLogData + "ipAdds, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getIpAdds().trim())))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_IpAdds","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "ipAdds = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Logon_count";

tmpVarName = "UserLock";

tmpVarName = "Table_Updt";

tmpVarName = "Mach_name";

tmpVarName = "Xml_DtTime";

tmpVarName = "Xml_Date";

tmpVarName = "Lastchangeddate";

tmpVarName = "Lastchangedby";

tmpVarName = "Screen0";

tmpInt = newRowObj.getScreen0();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen0, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen0())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen0","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen0 = "+tmpString.trim()+", ";
}
tmpVarName = "Screen1";

tmpInt = newRowObj.getScreen1();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen1, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen1())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen1","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen1 = "+tmpString.trim()+", ";
}
tmpVarName = "Screen2";

tmpInt = newRowObj.getScreen2();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen2, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen2())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen2","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen2 = "+tmpString.trim()+", ";
}
tmpVarName = "Screen3";

tmpInt = newRowObj.getScreen3();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen3, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen3())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen3","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen3 = "+tmpString.trim()+", ";
}
tmpVarName = "Screen4";

tmpInt = newRowObj.getScreen4();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen4, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen4())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen4","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen4 = "+tmpString.trim()+", ";
}
tmpVarName = "Screen5";

tmpInt = newRowObj.getScreen5();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen5, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen5())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen5","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen5 = "+tmpString.trim()+", ";
}
tmpVarName = "Screen6";

tmpInt = newRowObj.getScreen6();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen6, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen6())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen6","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen6 = "+tmpString.trim()+", ";
}
tmpVarName = "Screen7";

tmpInt = newRowObj.getScreen7();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen7, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen7())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen7","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen7 = "+tmpString.trim()+", ";
}
tmpVarName = "Screen8";

tmpInt = newRowObj.getScreen8();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen8, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen8())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen8","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen8 = "+tmpString.trim()+", ";
}
tmpVarName = "Screen9";

tmpInt = newRowObj.getScreen9();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen9, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen9())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen9","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen9 = "+tmpString.trim()+", ";
}
tmpVarName = "Screen10";

tmpInt = newRowObj.getScreen10();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "screen10, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getScreen10())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Screen10","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "screen10 = "+tmpString.trim()+", ";
}
tmpVarName = "Viewhistory_dttime";

tmpVarName = "Password";

tmpString = model.QuoteReplacer(newRowObj.getPassword());
vars_UserLogData = vars_UserLogData + "password, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getPassword()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Password","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "password = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Inactive";

tmpString = newRowObj.getInactive();
if(tmpString == null || tmpString.trim().length() == 0){tmpString = model.getFalseValue();}
vars_UserLogData = vars_UserLogData + "inactive, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpString.trim().equals(rowObj.getInactive()))) {;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Inactive","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "inactive = "+tmpString.trim()+", ";
}
tmpVarName = "LastLogon";

tmpVarName = "Firstlogon";

tmpVarName = "Notes";

tmpString = model.QuoteReplacer(newRowObj.getNotes());
vars_UserLogData = vars_UserLogData + "notes, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getNotes().trim())))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Notes","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "notes = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "**Table Description";

tmpVarName = "SkillAdmin";

tmpString = model.QuoteReplacer(newRowObj.getSkillAdmin());
vars_UserLogData = vars_UserLogData + "skillAdmin, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getSkillAdmin()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_SkillAdmin","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "skillAdmin = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "SkillResearch";

tmpString = model.QuoteReplacer(newRowObj.getSkillResearch());
vars_UserLogData = vars_UserLogData + "skillResearch, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getSkillResearch()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_SkillResearch","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "skillResearch = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "SkillTyping";

tmpString = model.QuoteReplacer(newRowObj.getSkillTyping());
vars_UserLogData = vars_UserLogData + "skillTyping, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getSkillTyping()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_SkillTyping","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "skillTyping = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "SkillComputer";

tmpString = model.QuoteReplacer(newRowObj.getSkillComputer());
vars_UserLogData = vars_UserLogData + "skillComputer, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getSkillComputer()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_SkillComputer","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "skillComputer = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Query_Classname";

tmpString = model.QuoteReplacer(newRowObj.getQuery_Classname());
vars_UserLogData = vars_UserLogData + "query_Classname, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getQuery_Classname()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Query_Classname","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "query_Classname = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Query_template";

tmpString = model.QuoteReplacer(newRowObj.getQuery_template());
vars_UserLogData = vars_UserLogData + "query_template, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getQuery_template()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Query_template","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "query_template = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Query_ColCount";

tmpInt = newRowObj.getQuery_ColCount();
tmpString = Integer.toString(tmpInt);
vars_UserLogData = vars_UserLogData + "query_ColCount, ";
values_UserLogData = values_UserLogData + tmpString.trim()+", ";
if (!(tmpInt == rowObj.getQuery_ColCount())){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Query_ColCount","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "query_ColCount = "+tmpString.trim()+", ";
}
tmpVarName = "Query_Text";

tmpString = model.QuoteReplacer(newRowObj.getQuery_Text());
vars_UserLogData = vars_UserLogData + "query_Text, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getQuery_Text().trim())))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Query_Text","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "query_Text = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Query_Type";

tmpString = model.QuoteReplacer(newRowObj.getQuery_Type());
vars_UserLogData = vars_UserLogData + "query_Type, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getQuery_Type()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Query_Type","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "query_Type = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Query_Name";

tmpString = model.QuoteReplacer(newRowObj.getQuery_Name());
vars_UserLogData = vars_UserLogData + "query_Name, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getQuery_Name()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Query_Name","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "query_Name = '"+ model.TrimOrSpace(tmpString)+"', ";
}
tmpVarName = "Query_Username";

tmpString = model.QuoteReplacer(newRowObj.getQuery_Username());
vars_UserLogData = vars_UserLogData + "query_Username, ";
values_UserLogData = values_UserLogData + "'"+ model.TrimOrSpace(tmpString)+"', ";
if (!(tmpString.trim().equals(model.QuoteReplacer(rowObj.getQuery_Username()).trim()))){;
changes++;
changeMsg = changeMsg + "\n"+model.getRbString(UserLogDataRb,"change_description_Query_Username","UserLogData") + model.getRbString(UserLogDataRb," -Changed","UserLogData");
update_UserLogData = update_UserLogData + "query_Username = '"+ model.TrimOrSpace(tmpString)+"', ";
}
// remove the trailing comma off of each line
values_UserLogData = values_UserLogData.trim();
values_UserLogData = values_UserLogData.substring(0,values_UserLogData.length()-1) ;
vars_UserLogData = vars_UserLogData.trim();
vars_UserLogData = vars_UserLogData.substring(0,vars_UserLogData.length()-1);
update_UserLogData = update_UserLogData.trim();
if (update_UserLogData.length() > 0) {
update_UserLogData = update_UserLogData.substring(0,update_UserLogData.length()-1);
}
// this copy makes sure the string is added to the I18N table
String tString = model.getRbString(UserLogDataRb,"Error removing data from Visual Components","UserLogData");
} catch (Exception e1){
// this copy makes the string available if the catch is activated
String tString = model.getRbString(UserLogDataRb,"Error removing data from Visual Components","UserLogData");
Toolkit.getDefaultToolkit().beep();
model.showErrorOccurred();
logger.severe(tString+" "+e1);
logger.severe("var: " + tmpVarName);
if(jTextLog==null){jTextLog = model.getJTextArea();}
jTextLog.append(tString+" "+e1);
jTextLog.append("var: " + tmpVarName);
}
return changes;
} //end of the setter method

/**
* description - method to get the result set for one id
*
*/
public void getDataUserLogDataOneRow(int id_){

utm.setColString(null) ; //"user_Id");
if (id_ > 0) {
utm.setQueryString("user_id = "+Integer.toString(id_));
} else {
utm.setQueryString(null);
}
cursor = frame.getCursor();
frame.setCursor( new Cursor(Cursor.WAIT_CURSOR));
// In this case look for deleted/inactive rows as well as active rows
utm.queryTable("");
utm.fire();
frame.setCursor (cursor);
int rowCount = utm.getRowCount();
if (rowCount == 0){
JOptionPane.showMessageDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"ERROR -Cannot find row with ID: {0}","UserLogData")
,new String[]{"" + id_ }), model.getRbString(UserLogDataRb,"No Rows Found","UserLogData"),
JOptionPane.ERROR_MESSAGE);
if (id_ == 0){
id_ = -2; // converting to -2 which starts the system with an ADD Screen not and EDIT Screen
rowObj.setUser_id(-2);
}
return;
}
if (rowCount > 1 && id_ != 0){
JOptionPane.showMessageDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"ERROR -More than one row with ID=: {0} Count = {1}","UserLogData")
,new String[]{"" +id_,""+rowCount}), model.getRbString(UserLogDataRb,"Client Error","UserLogData"),
JOptionPane.ERROR_MESSAGE);
return;
}
} //end of getdata?ByOneRow


public void getRevisedDataUserLogData() {
vars_UserLogData = "";
values_UserLogData = "";
update_UserLogData = "";
int changes = 0;
double tmpDouble = 0.0;
Double tmpDBL = new Double(tmpDouble);
String tmpString;
String currentDate;
String newTime;
String newTimeMedium;
String convertedTime;
changeMsg= "";
int tmpInt;
newRowObj = new dataObj();
String tmpVarName = "";
String space = " " ;
space = space + space + space + space;
tmpVarName = "FirstName";
tmpString = txtFirstName.getText().trim()+space;
tmpString = tmpString.substring(0,30).trim();
newRowObj.setFirstName(tmpString);
tmpVarName = "MiddleName";
tmpString = txtMiddleName.getText().trim()+space;
tmpString = tmpString.substring(0,30).trim();
newRowObj.setMiddleName(tmpString);
tmpVarName = "Lastname";
tmpString = txtLastname.getText().trim()+space;
tmpString = tmpString.substring(0,30).trim();
newRowObj.setLastname(tmpString);
tmpVarName = "Login_name";
tmpString = txtLogin_name.getText().trim()+space;
tmpString = tmpString.substring(0,30).trim();
newRowObj.setLogin_name(tmpString);
tmpVarName = "PartTime";
tmpString = "";
tmpCode = "";
if (chkPartTime.isSelected()) {
tmpString = trueValue;
tmpCode = "Y";
} else {tmpString = falseValue;
tmpCode = "Y";
}
newRowObj.setPartTime(tmpCode);
tmpVarName = "Address1";
tmpString = txtAddress1.getText().trim()+space;
tmpString = tmpString.substring(0,30).trim();
newRowObj.setAddress1(tmpString);
tmpVarName = "Address2";
tmpString = txtAddress2.getText().trim()+space;
tmpString = tmpString.substring(0,30).trim();
newRowObj.setAddress2(tmpString);
tmpVarName = "City";
tmpString = txtCity.getText().trim()+space;
tmpString = tmpString.substring(0,25).trim();
newRowObj.setCity(tmpString);
tmpVarName = "State";
tmpString = cboState.getSelectedItem().toString().trim()+space;
tmpString = tmpString.substring(0,2);
newRowObj.setState(tmpString);
tmpVarName = "Zip";
tmpString = txtZip.getText().trim()+space;
tmpString = tmpString.substring(0,10).trim();
newRowObj.setZip(tmpString);
tmpVarName = "Email";
tmpString = txtEmail.getText().trim()+space;
tmpString = tmpString.substring(0,80).trim();
newRowObj.setEmail(tmpString);
// Unique to EMail columns
tmpVarName = "Officephone";
String t_default = model.getRbString(UserLogDataRb,"telephone_default","UserLogData");
tmpString = model.QuoteReplacer(txtOfficephone.getText().trim())+space;
tmpString = tmpString.substring(0,20);
tmpString = tmpString.trim();
if (tmpString.length() < 11){tmpString = "";}
if (tmpString.equals(t_default)) {tmpString = "";}
newRowObj.setOfficephone(tmpString);
tmpVarName = "HomePhone";
tmpString = model.QuoteReplacer(txtHomePhone.getText().trim())+space;
tmpString = tmpString.substring(0,20);
tmpString = tmpString.trim();
if (tmpString.length() < 11){tmpString = "";}
if (tmpString.equals(t_default)) {tmpString = "";}
newRowObj.setHomePhone(tmpString);
tmpVarName = "HireAge";
// tmpString = numHireAge.getText().trim()+space;
// tmpDBL = new Double(0);
try { tmpDBL = numHireAge.getDoubleValue();}
catch (Exception ex) {tmpDBL = new Double(0);};
newRowObj.setHireAge(tmpDBL.doubleValue());
tmpVarName = "UserphotoUrl";
tmpString = txtUserphotoUrl.getText().trim()+space;
tmpString = tmpString.substring(0,120).trim();
newRowObj.setUserphotoUrl(tmpString);
tmpVarName = "ResumeUrl";
tmpString = txtResumeUrl.getText().trim()+space;
// tmpString = tmpString.substring(0,2147483647).trim();
newRowObj.setResumeUrl(tmpString);
tmpVarName = "Title";
tmpString = txtTitle.getText().trim()+space;
tmpString = tmpString.substring(0,30).trim();
newRowObj.setTitle(tmpString);
tmpVarName = "Gender";
if (rbMale.isSelected()) {tmpString = "M";}
if (rbFemale.isSelected()) {tmpString = "F";}
if (rbUnknown.isSelected()) {tmpString = "U";}
newRowObj.setGender(tmpString);
tmpVarName = "Department";
tmpString = cboDepartment.getSelectedItem().toString().trim()+space;
// make sure the data is not longer than the SQL char field it will be written to
tmpString = tmpString.substring(0,30);
newRowObj.setDepartment(tmpString);
tmpVarName = "AuthorityGroup1";
tmpString = txtAuthorityGroup1.getText().trim()+space;
// tmpString = tmpString.substring(0,2147483647).trim();
newRowObj.setAuthorityGroup1(tmpString);
tmpVarName = "AuthorityGroup2";
tmpString = txtAuthorityGroup2.getText().trim()+space;
// tmpString = tmpString.substring(0,2147483647).trim();
newRowObj.setAuthorityGroup2(tmpString);
tmpVarName = "Start_Date";
tmpString = dtStart_DateText.getText().trim();
tmpString = tmpString.trim();
if (tmpString.trim().length() == 0 || tmpString.equals(model.getRbString(UserLogDataRb,"Press New","UserLogData"))){tmpString = null;};
newRowObj.setDtStart_DateText(tmpString);
tmpVarName = "Wp_path";
tmpString = txtWp_path.getText().trim()+space;
tmpString = tmpString.substring(0,150).trim();
newRowObj.setWp_path(tmpString);
tmpVarName = "Brow_path";
tmpString = txtBrow_path.getText().trim()+space;
tmpString = tmpString.substring(0,150).trim();
newRowObj.setBrow_path(tmpString);
tmpVarName = "Ipaddress";
tmpString = txtIpaddress.getText().trim()+space;
tmpString = tmpString.substring(0,15).trim();
newRowObj.setIpaddress(tmpString);
tmpVarName = "Category";
// tmpString = numCategory.getText().trim()+space;
// tmpDBL = new Double(0);
try { tmpDBL = numCategory.getDoubleValue();}
catch (Exception ex) {tmpDBL = new Double(0);};
newRowObj.setCategory(tmpDBL.doubleValue());
tmpVarName = "Ssn";
tmpString = txtSsn.getText().trim()+space;
tmpString = tmpString.substring(0,20);
tmpString = tmpString.trim();
if (tmpString.length() < 5){tmpString = "";}
newRowObj.setSsn(tmpString);
tmpVarName = "LoginTime";
newTime = txtLoginTimeTime.getText().trim();
newRowObj.setTxtLoginTimeTime(newTime);
tmpVarName = "Logfld";
tmpString = areaLogfld.getText().trim();
newRowObj.setLogfld(tmpString);
tmpVarName = "IpAdds";
tmpString = areaIpAdds.getText().trim();
newRowObj.setIpAdds(tmpString);
tmpVarName = "Screen0";
// tmpString = intScreen0.getText().trim();
tmpInt = intScreen0.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen0(tmpInt);
tmpVarName = "Screen1";
// tmpString = intScreen1.getText().trim();
tmpInt = intScreen1.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen1(tmpInt);
tmpVarName = "Screen2";
// tmpString = intScreen2.getText().trim();
tmpInt = intScreen2.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen2(tmpInt);
tmpVarName = "Screen3";
// tmpString = intScreen3.getText().trim();
tmpInt = intScreen3.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen3(tmpInt);
tmpVarName = "Screen4";
// tmpString = intScreen4.getText().trim();
tmpInt = intScreen4.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen4(tmpInt);
tmpVarName = "Screen5";
// tmpString = intScreen5.getText().trim();
tmpInt = intScreen5.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen5(tmpInt);
tmpVarName = "Screen6";
// tmpString = intScreen6.getText().trim();
tmpInt = intScreen6.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen6(tmpInt);
tmpVarName = "Screen7";
// tmpString = intScreen7.getText().trim();
tmpInt = intScreen7.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen7(tmpInt);
tmpVarName = "Screen8";
// tmpString = intScreen8.getText().trim();
tmpInt = intScreen8.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen8(tmpInt);
tmpVarName = "Screen9";
// tmpString = intScreen9.getText().trim();
tmpInt = intScreen9.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen9(tmpInt);
tmpVarName = "Screen10";
// tmpString = intScreen10.getText().trim();
tmpInt = intScreen10.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setScreen10(tmpInt);
tmpVarName = "Password";
tmpString = txtPassword.getText().trim()+space;
tmpString = tmpString.substring(0,12).trim();
newRowObj.setPassword(tmpString);
tmpVarName = "Inactive";
if (chkInactive.isSelected()) {
tmpString = trueValue;
} else { tmpString = falseValue;
}
newRowObj.setInactive(tmpString);
tmpVarName = "Notes";
tmpString = areaNotes.getText().trim();
newRowObj.setNotes(tmpString);
tmpVarName = "SkillAdmin";
tmpString = txtSkillAdmin.getText().trim()+space;
tmpString = tmpString.substring(0,20).trim();
newRowObj.setSkillAdmin(tmpString);
tmpVarName = "SkillResearch";
tmpString = txtSkillResearch.getText().trim()+space;
// tmpString = tmpString.substring(0,2147483647).trim();
newRowObj.setSkillResearch(tmpString);
tmpVarName = "SkillTyping";
tmpString = txtSkillTyping.getText().trim()+space;
// tmpString = tmpString.substring(0,2147483647).trim();
newRowObj.setSkillTyping(tmpString);
tmpVarName = "SkillComputer";
tmpString = txtSkillComputer.getText().trim()+space;
// tmpString = tmpString.substring(0,2147483647).trim();
newRowObj.setSkillComputer(tmpString);
tmpVarName = "Query_Classname";
tmpString = txtQuery_Classname.getText().trim()+space;
tmpString = tmpString.substring(0,40).trim();
newRowObj.setQuery_Classname(tmpString);
tmpVarName = "Query_template";
tmpString = txtQuery_template.getText().trim()+space;
tmpString = tmpString.substring(0,40).trim();
newRowObj.setQuery_template(tmpString);
tmpVarName = "Query_ColCount";
// tmpString = intQuery_ColCount.getText().trim();
tmpInt = intQuery_ColCount.getValue(); // was getText().trim()
// if (tmpString.trim().length() == 0){tmpString = "0";}
newRowObj.setQuery_ColCount(tmpInt);
tmpVarName = "Query_Text";
tmpString = areaQuery_Text.getText().trim();
newRowObj.setQuery_Text(tmpString);
tmpVarName = "Query_Type";
tmpString = txtQuery_Type.getText().trim()+space;
tmpString = tmpString.substring(0,1).trim();
newRowObj.setQuery_Type(tmpString);
tmpVarName = "Query_Name";
tmpString = txtQuery_Name.getText().trim()+space;
tmpString = tmpString.substring(0,60).trim();
newRowObj.setQuery_Name(tmpString);
tmpVarName = "Query_Username";
tmpString = txtQuery_Username.getText().trim()+space;
tmpString = tmpString.substring(0,30).trim();
newRowObj.setQuery_Username(tmpString);
}
//NOTE: New Columns will be commented out. You need to uncomment them
//and add them into UserLogDataBuildLayout.java manually.
//
/* SECTION 9- ROWLAYOUT MANAGER - Build Rows */
//
/**
*
* description - method to initially layout the screen
*
*/
public void buildLayout() {
UserLogDataBuildLayout layout = new UserLogDataBuildLayout(
//
/** SECTION 7 - LIST Columns to call BuildLayout */
//
//

/** SECTION 7 - LIST Columns to call BuildLayout */



intUser_id,
txtFirstName ,
txtMiddleName ,
txtLastname ,
txtLogin_name ,
chkPartTime,
txtAddress1 ,
txtAddress2 ,
txtCity ,
cboState,
txtZip ,
txtEmail,
txtOfficephone,
txtHomePhone,
numHireAge,
txtUserphotoUrl ,
btnUserphotoUrl,
txtResumeUrl ,
btnResumeUrl,
txtTitle ,
bgGender,
rbMale ,
rbFemale ,
rbUnknown ,
cboDepartment,
txtAuthorityGroup1 ,
txtAuthorityGroup2 ,
dtStart_DateText,
btnStart_Date,
txtWp_path ,
txtBrow_path ,
txtIpaddress ,
numCategory,
txtSsn,
txtLoginTimeTime,
pareaLogfld,
pareaIpAdds,
intLogon_count,
txtUserLock ,
intTable_Updt,
txtMach_name ,
dtXml_DtTimeText,
btnXml_DtTime,
txtXml_DtTimeTime,
dtXml_DateText,
btnXml_Date,
dtLastchangeddateText,
btnLastchangeddate,
txtLastchangeddateTime,
txtLastchangedby ,
intScreen0,
intScreen1,
intScreen2,
intScreen3,
intScreen4,
intScreen5,
intScreen6,
intScreen7,
intScreen8,
intScreen9,
intScreen10,
dtViewhistory_dttimeText,
btnViewhistory_dttime,
txtViewhistory_dttimeTime,
txtPassword ,
chkInactive,
dtLastLogonText,
btnLastLogon,
txtLastLogonTime,
dtFirstlogonText,
btnFirstlogon,
txtFirstlogonTime,
pareaNotes,
txtSkillAdmin ,
txtSkillResearch ,
txtSkillTyping ,
txtSkillComputer ,
txtQuery_Classname ,
txtQuery_template ,
intQuery_ColCount,
pareaQuery_Text,
txtQuery_Type ,
txtQuery_Name ,
txtQuery_Username ,
lbl__Title, menuAtTop, btnPanel, tableScrollPane, model, this);
UserLogData.this.setLayout(layout.getJPanel());
//NOTE: The following is the code that goes into UserLogDataBuildLayout.java
//If you have added any new columns to the table, they will be listed here.
//The commented out code will also be listed at the end of UserLogDataBuildLayout.java
//It WILL NOT BE ACTIVE in the buildLayout.java file. You will need to manually move
//them if you want them to be seen on the data-entry screen. This allows you to
//modify the data-entry screen and not have the changes overwritten. The downside is
//that you must manually take care of new columns.
/* Commented out version of code that goes in UserLogDataBuildLayout.java.
loc = Locale.getDefault();
model = mod;
this.thisPanel = thisPanel;

eol= System.getProperty("line.separator");



// *
// *
// * Instructions for rowlayout manager
// *
// * xxxx you will need to manually adjust components to get the look you want
// *
// * each 'add' places a component on the screen
// * param component to add to the screen
// * param row number to place the component on
// * param col number to place the component on
// * param number-of-cols - how many columns the component takes up
// * param fill/nofill - does the component expand if there is space
// * - column width - the layout manager figures out the row with the most columns
// * and divides the screen area into that many equal columns. by making each
// * component take up more columns, you can make each column narrower.
// * - labels - when the variable 'col' is set to zero, the left column is being addressed.
// * this is a special column for labels. its width is figured separately based on the
// * widest label. we add a space to each label to avoid the screen border.
// * - if the number-of-columsn for a 'label' is more than one, the width is not used
// * in calculating the label column width. use this to place a component like a jtable
// * on the screen. it can cover the whole screen and does not have a label.
// * - if you do not increment the row field, the next component wiil be placed on the same row
// * as the previous component. if you used the 'order' button in jguigen, you components
// * should be in approximately the order you want them on the screen.
// * - number-of-cols - if you indicate more than one, you will need to add lines 'coll++;' for
// * each column greater than one. this bumps the column counter so that the next component
// * does not overwrite the first component.
// * If number-of-columns is set to -1 it automatically becomes Max Columns
// *
// *

int nofill = com.halepringle.standard.RowLayoutConstraint.FILL_NONE;
int fill = com.halepringle.standard.RowLayoutConstraint.FILL_BOTH;
int row = 0;
int col = 0;
String tmpStr;


row++;
col = 2;
add(lbl__Title, row, col++, 3, nofill);
row++;
col = 0;

com.halepringle.standard.JxLabel lblUser_id
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_User_id","UserLogData"), JLabel.RIGHT);
lblUser_id.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_User_id","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_User_id","UserLogData");
if (tmpStr.trim().length() > 0) {
lblUser_id.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblUser_id, row, col++, 1, nofill);
lblUser_id.setLabelFor(intUser_id);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_User_id","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intUser_id.setBorder(new DashedBorder (Color.red , 1));
// intUser_id.setBorder(titledBorder);
add(intUser_id, row, col++, 1, fill);
// // intUser_id.setBorder(redBorder);
// intUser_id.setBorder(new DashedBorder (Color.red , 1));
intUser_id.setEditable(false);

com.halepringle.standard.JxLabel lblFirstName
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_FirstName","UserLogData"), JLabel.RIGHT);
lblFirstName.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_FirstName","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_FirstName","UserLogData");
if (tmpStr.trim().length() > 0) {
lblFirstName.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
//

Bounded Text Field Example - add to layout manager



row++;
col = 0;
add(lblFirstName, row, col++, 1, nofill);
lblFirstName.setLabelFor(txtFirstName);
// txtFirstName.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_FirstName","UserLogData"));
// txtFirstName.setBorder(titledBorder);
add(txtFirstName, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtFirstName.setEditable(true);

com.halepringle.standard.JxLabel lblMiddleName
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_MiddleName","UserLogData"), JLabel.RIGHT);
lblMiddleName.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_MiddleName","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_MiddleName","UserLogData");
if (tmpStr.trim().length() > 0) {
lblMiddleName.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblMiddleName, row, col++, 1, nofill);
lblMiddleName.setLabelFor(txtMiddleName);
// txtMiddleName.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_MiddleName","UserLogData"));
// txtMiddleName.setBorder(titledBorder);
add(txtMiddleName, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtMiddleName.setEditable(true);

com.halepringle.standard.JxLabel lblLastname
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Lastname","UserLogData"), JLabel.RIGHT);
lblLastname.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Lastname","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Lastname","UserLogData");
if (tmpStr.trim().length() > 0) {
lblLastname.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblLastname, row, col++, 1, nofill);
lblLastname.setLabelFor(txtLastname);
// txtLastname.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Lastname","UserLogData"));
// txtLastname.setBorder(titledBorder);
add(txtLastname, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtLastname.setEditable(true);

com.halepringle.standard.JxLabel lblLogin_name
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Login_name","UserLogData"), JLabel.RIGHT);
lblLogin_name.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Login_name","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Login_name","UserLogData");
if (tmpStr.trim().length() > 0) {
lblLogin_name.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblLogin_name, row, col++, 1, nofill);
lblLogin_name.setLabelFor(txtLogin_name);
// txtLogin_name.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Login_name","UserLogData"));
// txtLogin_name.setBorder(titledBorder);
add(txtLogin_name, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtLogin_name.setEditable(true);

com.halepringle.standard.JxLabel lblPartTime
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_PartTime","UserLogData"), JLabel.RIGHT);
lblPartTime.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_PartTime","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_PartTime","UserLogData");
if (tmpStr.trim().length() > 0) {
lblPartTime.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblPartTime, row, col++, 1, nofill);
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_PartTime","UserLogData");
if (tmpStr.trim().length() > 0) {
chkPartTime.setMnemonic((char)tmpStr.charAt(0));
}
lblPartTime.setLabelFor(chkPartTime);
// chkPartTime.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_PartTime","UserLogData"));
// // titledBorder.setBorder(redBorder);
// chkPartTime.setBorder(titledBorder);
add(chkPartTime, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
chkPartTime.setEnabled(true);

com.halepringle.standard.JxLabel lblAddress1
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Address1","UserLogData"), JLabel.RIGHT);
lblAddress1.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Address1","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Address1","UserLogData");
if (tmpStr.trim().length() > 0) {
lblAddress1.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblAddress1, row, col++, 1, nofill);
lblAddress1.setLabelFor(txtAddress1);
// txtAddress1.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Address1","UserLogData"));
// txtAddress1.setBorder(titledBorder);
add(txtAddress1, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtAddress1.setEditable(true);

com.halepringle.standard.JxLabel lblAddress2
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Address2","UserLogData"), JLabel.RIGHT);
lblAddress2.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Address2","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Address2","UserLogData");
if (tmpStr.trim().length() > 0) {
lblAddress2.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblAddress2, row, col++, 1, nofill);
lblAddress2.setLabelFor(txtAddress2);
// txtAddress2.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Address2","UserLogData"));
// txtAddress2.setBorder(titledBorder);
add(txtAddress2, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtAddress2.setEditable(true);

com.halepringle.standard.JxLabel lblCity
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_City","UserLogData"), JLabel.RIGHT);
lblCity.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_City","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_City","UserLogData");
if (tmpStr.trim().length() > 0) {
lblCity.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblCity, row, col++, 1, nofill);
lblCity.setLabelFor(txtCity);
// txtCity.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_City","UserLogData"));
// txtCity.setBorder(titledBorder);
add(txtCity, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtCity.setEditable(true);

com.halepringle.standard.JxLabel lblState
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_State","UserLogData"), JLabel.RIGHT);
lblState.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_State","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_State","UserLogData");
if (tmpStr.trim().length() > 0) {
lblState.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblState, row, col++, 1, nofill);
lblState.setLabelFor(cboState);
// cboState.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_State","UserLogData"));
// // titledBorder.setBorder(redBorder);
// cboState.setBorder(titledBorder);
add(cboState, row, col++, 1, fill);
cboState.setEditable(true);

com.halepringle.standard.JxLabel lblZip
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Zip","UserLogData"), JLabel.RIGHT);
lblZip.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Zip","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Zip","UserLogData");
if (tmpStr.trim().length() > 0) {
lblZip.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblZip, row, col++, 1, nofill);
lblZip.setLabelFor(txtZip);
// txtZip.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Zip","UserLogData"));
// txtZip.setBorder(titledBorder);
add(txtZip, row, col++, 1, fill);
txtZip.setEditable(true);

com.halepringle.standard.JxLabel lblEmail
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Email","UserLogData"), JLabel.RIGHT);
lblEmail.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Email","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Email","UserLogData");
if (tmpStr.trim().length() > 0) {
lblEmail.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblEmail, row, col++, 1, nofill);
lblEmail.setLabelFor(txtEmail);
// txtEmail.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Email","UserLogData"));
// txtEmail.setBorder(titledBorder);
add(txtEmail, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtEmail.setEditable(true);

com.halepringle.standard.JxLabel lblOfficephone
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Officephone","UserLogData"), JLabel.RIGHT);
lblOfficephone.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Officephone","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Officephone","UserLogData");
if (tmpStr.trim().length() > 0) {
lblOfficephone.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblOfficephone, row, col++, 1, nofill);
lblOfficephone.setLabelFor(txtOfficephone);
// txtOfficephone.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Officephone","UserLogData"));
// txtOfficephone.setBorder(titledBorder);
add(txtOfficephone, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtOfficephone.setEditable(true);

com.halepringle.standard.JxLabel lblHomePhone
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_HomePhone","UserLogData"), JLabel.RIGHT);
lblHomePhone.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_HomePhone","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_HomePhone","UserLogData");
if (tmpStr.trim().length() > 0) {
lblHomePhone.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblHomePhone, row, col++, 1, nofill);
lblHomePhone.setLabelFor(txtHomePhone);
// txtHomePhone.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_HomePhone","UserLogData"));
// txtHomePhone.setBorder(titledBorder);
add(txtHomePhone, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtHomePhone.setEditable(true);

com.halepringle.standard.JxLabel lblHireAge
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_HireAge","UserLogData"), JLabel.RIGHT);
lblHireAge.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_HireAge","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_HireAge","UserLogData");
if (tmpStr.trim().length() > 0) {
lblHireAge.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblHireAge, row, col++, 1, nofill);
lblHireAge.setLabelFor(numHireAge);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_HireAge","UserLogData"));
// numHireAge.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// numHireAge.setBorder(titledBorder);
add(numHireAge, row, col++, 1, fill);
numHireAge.setEditable(true);

com.halepringle.standard.JxLabel lblUserphotoUrl
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_UserphotoUrl","UserLogData"), JLabel.RIGHT);
lblUserphotoUrl.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_UserphotoUrl","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_UserphotoUrl","UserLogData");
if (tmpStr.trim().length() > 0) {
lblUserphotoUrl.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblUserphotoUrl, row, col++, 1, nofill);
lblUserphotoUrl.setLabelFor(txtUserphotoUrl);
// txtUserphotoUrl.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_UserphotoUrl","UserLogData"));
// txtUserphotoUrl.setBorder(titledBorder);
add(txtUserphotoUrl, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtUserphotoUrl.setEditable(true);
add(btnUserphotoUrl, row, col++, 3, nofill);
btnUserphotoUrl.setMargin(new Insets(0,0,0,0));
btnUserphotoUrl.setAlignmentY(RIGHT_ALIGNMENT);
btnUserphotoUrl.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_btnUserphotoUrl","UserLogData"));
btnUserphotoUrl.setEnabled(true);

com.halepringle.standard.JxLabel lblResumeUrl
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_ResumeUrl","UserLogData"), JLabel.RIGHT);
lblResumeUrl.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_ResumeUrl","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_ResumeUrl","UserLogData");
if (tmpStr.trim().length() > 0) {
lblResumeUrl.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblResumeUrl, row, col++, 1, nofill);
lblResumeUrl.setLabelFor(txtResumeUrl);
// txtResumeUrl.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_ResumeUrl","UserLogData"));
// txtResumeUrl.setBorder(titledBorder);
add(txtResumeUrl, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtResumeUrl.setEditable(true);
add(btnResumeUrl, row, col++, 3, nofill);
btnResumeUrl.setMargin(new Insets(0,0,0,0));
btnResumeUrl.setAlignmentY(RIGHT_ALIGNMENT);
btnResumeUrl.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_btnResumeUrl","UserLogData"));
btnResumeUrl.setEnabled(true);

com.halepringle.standard.JxLabel lblTitle
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Title","UserLogData"), JLabel.RIGHT);
lblTitle.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Title","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Title","UserLogData");
if (tmpStr.trim().length() > 0) {
lblTitle.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblTitle, row, col++, 1, nofill);
lblTitle.setLabelFor(txtTitle);
// txtTitle.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Title","UserLogData"));
// txtTitle.setBorder(titledBorder);
add(txtTitle, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtTitle.setEditable(true);

com.halepringle.standard.JxLabel lblGender
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Gender","UserLogData"), JLabel.RIGHT);
lblGender.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Gender","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Gender","UserLogData");
if (tmpStr.trim().length() > 0) {
lblGender.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblGender, row, col++, 1, nofill);
JPanel GenderPanel = new JPanel(new FlowLayout(0,0,0));
bgGender = new ButtonGroup();
bgGender.add(rbMale);
rbMale.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Gender","UserLogData"));
lblGender.setLabelFor(rbMale);
tmpStr = model.getRbString(UserLogDataRb,"radiobutton_hotkey_Gender","UserLogData");
if (tmpStr.trim().length() > 0) {
rbMale.setMnemonic((char)tmpStr.charAt(0));
}
rbMale.setName(model.getRbString(UserLogDataRb,"radio_button_male","UserLogData"));
GenderPanel.add(rbMale);
bgGender.add(rbFemale);
rbFemale.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Gender","UserLogData"));
GenderPanel.add(rbFemale);
bgGender.add(rbUnknown);
rbUnknown.setToolTipText(model.getRbString(UserLogDataRb,"tooltip_Gender","UserLogData"));
GenderPanel.add(rbUnknown);
// // bgGenderPanel.setBorder(redBorder);
// bgGenderPanel.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Gender","UserLogData"));
// // titledBorder.setBorder(redBorder);
// bgGenderPanel.setBorder(titledBorder);
add(GenderPanel, row, col++, 6, fill);
col++; // move col since last add took up several columms
col++; // move col since last add took up several columms
col++; // move col since last add took up several columms
col++; // move col since last add took up several columms
col++; // move col since last add took up several columms
col++; // move col since last add took up several columms

com.halepringle.standard.JxLabel lblDepartment
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Department","UserLogData"), JLabel.RIGHT);
lblDepartment.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Department","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Department","UserLogData");
if (tmpStr.trim().length() > 0) {
lblDepartment.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblDepartment, row, col++, 1, nofill);
lblDepartment.setLabelFor(cboDepartment);
// cboDepartment.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Department","UserLogData"));
// // titledBorder.setBorder(redBorder);
// cboDepartment.setBorder(titledBorder);
add(cboDepartment, row, col++,2, fill);
col++; // move col since last add took up 2 columns
cboDepartment.setEnabled(true);

com.halepringle.standard.JxLabel lblAuthorityGroup1
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_AuthorityGroup1","UserLogData"), JLabel.RIGHT);
lblAuthorityGroup1.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_AuthorityGroup1","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_AuthorityGroup1","UserLogData");
if (tmpStr.trim().length() > 0) {
lblAuthorityGroup1.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblAuthorityGroup1, row, col++, 1, nofill);
lblAuthorityGroup1.setLabelFor(txtAuthorityGroup1);
// txtAuthorityGroup1.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_AuthorityGroup1","UserLogData"));
// txtAuthorityGroup1.setBorder(titledBorder);
add(txtAuthorityGroup1, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtAuthorityGroup1.setEditable(true);

com.halepringle.standard.JxLabel lblAuthorityGroup2
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_AuthorityGroup2","UserLogData"), JLabel.RIGHT);
lblAuthorityGroup2.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_AuthorityGroup2","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_AuthorityGroup2","UserLogData");
if (tmpStr.trim().length() > 0) {
lblAuthorityGroup2.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblAuthorityGroup2, row, col++, 1, nofill);
lblAuthorityGroup2.setLabelFor(txtAuthorityGroup2);
// txtAuthorityGroup2.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_AuthorityGroup2","UserLogData"));
// txtAuthorityGroup2.setBorder(titledBorder);
add(txtAuthorityGroup2, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtAuthorityGroup2.setEditable(true);

com.halepringle.standard.JxLabel lblStart_Date
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Start_Date","UserLogData"), JLabel.RIGHT);
lblStart_Date.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Start_Date","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Start_Date","UserLogData");
if (tmpStr.trim().length() > 0) {
lblStart_Date.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblStart_Date, row, col++, 1, nofill);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Start_Date","UserLogData"));
// // titledBorder.setBorder(redBorder);
// dtStart_DateText.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// dtStart_DateText.setBorder(titledBorder);
add(dtStart_DateText, row, col++, 2, fill);
col++;
lblStart_Date.setLabelFor(btnStart_Date);
btnStart_Date.setEnabled(true);
btnStart_Date.setMargin(new Insets(0,0,0,0));
btnStart_Date.setAlignmentY(RIGHT_ALIGNMENT);
add(btnStart_Date,row,col++,1,fill);

com.halepringle.standard.JxLabel lblWp_path
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Wp_path","UserLogData"), JLabel.RIGHT);
lblWp_path.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Wp_path","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Wp_path","UserLogData");
if (tmpStr.trim().length() > 0) {
lblWp_path.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblWp_path, row, col++, 1, nofill);
lblWp_path.setLabelFor(txtWp_path);
// txtWp_path.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Wp_path","UserLogData"));
// txtWp_path.setBorder(titledBorder);
add(txtWp_path, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtWp_path.setEditable(true);

com.halepringle.standard.JxLabel lblBrow_path
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Brow_path","UserLogData"), JLabel.RIGHT);
lblBrow_path.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Brow_path","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Brow_path","UserLogData");
if (tmpStr.trim().length() > 0) {
lblBrow_path.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblBrow_path, row, col++, 1, nofill);
lblBrow_path.setLabelFor(txtBrow_path);
// txtBrow_path.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Brow_path","UserLogData"));
// txtBrow_path.setBorder(titledBorder);
add(txtBrow_path, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtBrow_path.setEditable(true);

com.halepringle.standard.JxLabel lblIpaddress
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Ipaddress","UserLogData"), JLabel.RIGHT);
lblIpaddress.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Ipaddress","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Ipaddress","UserLogData");
if (tmpStr.trim().length() > 0) {
lblIpaddress.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblIpaddress, row, col++, 1, nofill);
lblIpaddress.setLabelFor(txtIpaddress);
// txtIpaddress.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Ipaddress","UserLogData"));
// txtIpaddress.setBorder(titledBorder);
add(txtIpaddress, row, col++, 1, fill);
txtIpaddress.setEditable(true);

com.halepringle.standard.JxLabel lblCategory
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Category","UserLogData"), JLabel.RIGHT);
lblCategory.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Category","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Category","UserLogData");
if (tmpStr.trim().length() > 0) {
lblCategory.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblCategory, row, col++, 1, nofill);
lblCategory.setLabelFor(numCategory);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Category","UserLogData"));
// numCategory.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// numCategory.setBorder(titledBorder);
add(numCategory, row, col++, 1, fill);
numCategory.setEditable(true);

com.halepringle.standard.JxLabel lblSsn
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Ssn","UserLogData"), JLabel.RIGHT);
lblSsn.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Ssn","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Ssn","UserLogData");
if (tmpStr.trim().length() > 0) {
lblSsn.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblSsn, row, col++, 1, nofill);
lblSsn.setLabelFor(txtSsn);
// txtSsn.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Ssn","UserLogData"));
// txtSsn.setBorder(titledBorder);
add(txtSsn, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtSsn.setEditable(true);

com.halepringle.standard.JxLabel lblLoginTime
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_LoginTime","UserLogData"), JLabel.RIGHT);
lblLoginTime.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_LoginTime","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_LoginTime","UserLogData");
if (tmpStr.trim().length() > 0) {
lblLoginTime.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblLoginTime, row, col++, 1, nofill);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_LoginTime","UserLogData"));
// // titledBorder.setBorder(redBorder);
// txtLoginTimeTime.setBorder(new DashedBorder (Color.red , 1));
lblLoginTime.setLabelFor(txtLoginTimeTime);
// txtLoginTimeTime.setBorder(titledBorder);
add(txtLoginTimeTime, row, col++, 2, fill);
txtLoginTimeTime.setEnabled(true);

com.halepringle.standard.JxLabel lblLogfld
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Logfld","UserLogData"), JLabel.RIGHT);
lblLogfld.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Logfld","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Logfld","UserLogData");
if (tmpStr.trim().length() > 0) {
lblLogfld.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblLogfld, row, col++, 1, nofill);
// lblLogfld.setLabelFor(pareaLogfld);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Logfld","UserLogData"));
// pareaLogfld.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// pareaLogfld.setBorder(titledBorder);
add(pareaLogfld, row, col++, 5, fill);
pareaLogfld.setEnabled(true);

com.halepringle.standard.JxLabel lblIpAdds
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_IpAdds","UserLogData"), JLabel.RIGHT);
lblIpAdds.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_IpAdds","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_IpAdds","UserLogData");
if (tmpStr.trim().length() > 0) {
lblIpAdds.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblIpAdds, row, col++, 1, nofill);
// lblIpAdds.setLabelFor(pareaIpAdds);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_IpAdds","UserLogData"));
// pareaIpAdds.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// pareaIpAdds.setBorder(titledBorder);
add(pareaIpAdds, row, col++, 5, fill);
pareaIpAdds.setEnabled(true);

com.halepringle.standard.JxLabel lblLogon_count
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Logon_count","UserLogData"), JLabel.RIGHT);
lblLogon_count.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Logon_count","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Logon_count","UserLogData");
if (tmpStr.trim().length() > 0) {
lblLogon_count.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblLogon_count, row, col++, 1, nofill);
lblLogon_count.setLabelFor(intLogon_count);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Logon_count","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intLogon_count.setBorder(new DashedBorder (Color.red , 1));
// intLogon_count.setBorder(titledBorder);
add(intLogon_count, row, col++, 1, fill);
// // intLogon_count.setBorder(redBorder);
// intLogon_count.setBorder(new DashedBorder (Color.red , 1));
intLogon_count.setEditable(false);

com.halepringle.standard.JxLabel lblUserLock
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_UserLock","UserLogData"), JLabel.RIGHT);
lblUserLock.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_UserLock","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_UserLock","UserLogData");
if (tmpStr.trim().length() > 0) {
lblUserLock.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblUserLock, row, col++, 1, nofill);
lblUserLock.setLabelFor(txtUserLock);
// txtUserLock.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_UserLock","UserLogData"));
// txtUserLock.setBorder(titledBorder);
add(txtUserLock, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtUserLock.setEditable(false);

com.halepringle.standard.JxLabel lblTable_Updt
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Table_Updt","UserLogData"), JLabel.RIGHT);
lblTable_Updt.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Table_Updt","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Table_Updt","UserLogData");
if (tmpStr.trim().length() > 0) {
lblTable_Updt.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblTable_Updt, row, col++, 1, nofill);
lblTable_Updt.setLabelFor(intTable_Updt);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Table_Updt","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intTable_Updt.setBorder(new DashedBorder (Color.red , 1));
// intTable_Updt.setBorder(titledBorder);
add(intTable_Updt, row, col++, 1, fill);
// // intTable_Updt.setBorder(redBorder);
// intTable_Updt.setBorder(new DashedBorder (Color.red , 1));
intTable_Updt.setEditable(false);

com.halepringle.standard.JxLabel lblMach_name
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Mach_name","UserLogData"), JLabel.RIGHT);
lblMach_name.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Mach_name","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Mach_name","UserLogData");
if (tmpStr.trim().length() > 0) {
lblMach_name.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblMach_name, row, col++, 1, nofill);
lblMach_name.setLabelFor(txtMach_name);
// txtMach_name.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Mach_name","UserLogData"));
// txtMach_name.setBorder(titledBorder);
add(txtMach_name, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtMach_name.setEditable(false);

com.halepringle.standard.JxLabel lblXml_DtTime
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Xml_DtTime","UserLogData"), JLabel.RIGHT);
lblXml_DtTime.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Xml_DtTime","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Xml_DtTime","UserLogData");
if (tmpStr.trim().length() > 0) {
lblXml_DtTime.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblXml_DtTime, row, col++, 1, nofill);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Xml_DtTime","UserLogData"));
// // titledBorder.setBorder(redBorder);
// dtXml_DtTimeText.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// dtXml_DtTimeText.setBorder(titledBorder);
add(dtXml_DtTimeText, row, col++, 2, fill);
col++;
lblXml_DtTime.setLabelFor(btnXml_DtTime);
btnXml_DtTime.setEnabled(false);
btnXml_DtTime.setMargin(new Insets(0,0,0,0));
btnXml_DtTime.setAlignmentY(RIGHT_ALIGNMENT);
add(btnXml_DtTime,row,col++,1,fill);
// txtXml_DtTimeTime.setBorder(new DashedBorder (Color.red , 1));
// txtXml_DtTimeTime.setBorder(titledBorder);
add(txtXml_DtTimeTime, row, col++, 2, fill);
txtXml_DtTimeTime.setEnabled(false);

com.halepringle.standard.JxLabel lblXml_Date
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Xml_Date","UserLogData"), JLabel.RIGHT);
lblXml_Date.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Xml_Date","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Xml_Date","UserLogData");
if (tmpStr.trim().length() > 0) {
lblXml_Date.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblXml_Date, row, col++, 1, nofill);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Xml_Date","UserLogData"));
// // titledBorder.setBorder(redBorder);
// dtXml_DateText.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// dtXml_DateText.setBorder(titledBorder);
add(dtXml_DateText, row, col++, 2, fill);
col++;
lblXml_Date.setLabelFor(btnXml_Date);
btnXml_Date.setEnabled(false);
btnXml_Date.setMargin(new Insets(0,0,0,0));
btnXml_Date.setAlignmentY(RIGHT_ALIGNMENT);
add(btnXml_Date,row,col++,1,fill);

com.halepringle.standard.JxLabel lblLastchangeddate
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Lastchangeddate","UserLogData"), JLabel.RIGHT);
lblLastchangeddate.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Lastchangeddate","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Lastchangeddate","UserLogData");
if (tmpStr.trim().length() > 0) {
lblLastchangeddate.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblLastchangeddate, row, col++, 1, nofill);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Lastchangeddate","UserLogData"));
// // titledBorder.setBorder(redBorder);
// dtLastchangeddateText.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// dtLastchangeddateText.setBorder(titledBorder);
add(dtLastchangeddateText, row, col++, 2, fill);
col++;
lblLastchangeddate.setLabelFor(btnLastchangeddate);
btnLastchangeddate.setEnabled(false);
btnLastchangeddate.setMargin(new Insets(0,0,0,0));
btnLastchangeddate.setAlignmentY(RIGHT_ALIGNMENT);
add(btnLastchangeddate,row,col++,1,fill);
// txtLastchangeddateTime.setBorder(new DashedBorder (Color.red , 1));
// txtLastchangeddateTime.setBorder(titledBorder);
add(txtLastchangeddateTime, row, col++, 2, fill);
txtLastchangeddateTime.setEnabled(false);

com.halepringle.standard.JxLabel lblLastchangedby
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Lastchangedby","UserLogData"), JLabel.RIGHT);
lblLastchangedby.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Lastchangedby","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Lastchangedby","UserLogData");
if (tmpStr.trim().length() > 0) {
lblLastchangedby.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblLastchangedby, row, col++, 1, nofill);
lblLastchangedby.setLabelFor(txtLastchangedby);
// txtLastchangedby.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Lastchangedby","UserLogData"));
// txtLastchangedby.setBorder(titledBorder);
add(txtLastchangedby, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtLastchangedby.setEditable(false);

com.halepringle.standard.JxLabel lblScreen0
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen0","UserLogData"), JLabel.RIGHT);
lblScreen0.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen0","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen0","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen0.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen0, row, col++, 1, nofill);
lblScreen0.setLabelFor(intScreen0);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen0","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen0.setBorder(new DashedBorder (Color.red , 1));
// intScreen0.setBorder(titledBorder);
add(intScreen0, row, col++, 1, fill);
// // intScreen0.setBorder(redBorder);
// intScreen0.setBorder(new DashedBorder (Color.red , 1));
intScreen0.setEditable(true);

com.halepringle.standard.JxLabel lblScreen1
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen1","UserLogData"), JLabel.RIGHT);
lblScreen1.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen1","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen1","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen1.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen1, row, col++, 1, nofill);
lblScreen1.setLabelFor(intScreen1);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen1","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen1.setBorder(new DashedBorder (Color.red , 1));
// intScreen1.setBorder(titledBorder);
add(intScreen1, row, col++, 1, fill);
// // intScreen1.setBorder(redBorder);
// intScreen1.setBorder(new DashedBorder (Color.red , 1));
intScreen1.setEditable(true);

com.halepringle.standard.JxLabel lblScreen2
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen2","UserLogData"), JLabel.RIGHT);
lblScreen2.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen2","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen2","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen2.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen2, row, col++, 1, nofill);
lblScreen2.setLabelFor(intScreen2);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen2","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen2.setBorder(new DashedBorder (Color.red , 1));
// intScreen2.setBorder(titledBorder);
add(intScreen2, row, col++, 1, fill);
// // intScreen2.setBorder(redBorder);
// intScreen2.setBorder(new DashedBorder (Color.red , 1));
intScreen2.setEditable(true);

com.halepringle.standard.JxLabel lblScreen3
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen3","UserLogData"), JLabel.RIGHT);
lblScreen3.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen3","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen3","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen3.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen3, row, col++, 1, nofill);
lblScreen3.setLabelFor(intScreen3);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen3","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen3.setBorder(new DashedBorder (Color.red , 1));
// intScreen3.setBorder(titledBorder);
add(intScreen3, row, col++, 1, fill);
// // intScreen3.setBorder(redBorder);
// intScreen3.setBorder(new DashedBorder (Color.red , 1));
intScreen3.setEditable(true);

com.halepringle.standard.JxLabel lblScreen4
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen4","UserLogData"), JLabel.RIGHT);
lblScreen4.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen4","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen4","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen4.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen4, row, col++, 1, nofill);
lblScreen4.setLabelFor(intScreen4);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen4","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen4.setBorder(new DashedBorder (Color.red , 1));
// intScreen4.setBorder(titledBorder);
add(intScreen4, row, col++, 1, fill);
// // intScreen4.setBorder(redBorder);
// intScreen4.setBorder(new DashedBorder (Color.red , 1));
intScreen4.setEditable(true);

com.halepringle.standard.JxLabel lblScreen5
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen5","UserLogData"), JLabel.RIGHT);
lblScreen5.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen5","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen5","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen5.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen5, row, col++, 1, nofill);
lblScreen5.setLabelFor(intScreen5);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen5","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen5.setBorder(new DashedBorder (Color.red , 1));
// intScreen5.setBorder(titledBorder);
add(intScreen5, row, col++, 1, fill);
// // intScreen5.setBorder(redBorder);
// intScreen5.setBorder(new DashedBorder (Color.red , 1));
intScreen5.setEditable(true);

com.halepringle.standard.JxLabel lblScreen6
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen6","UserLogData"), JLabel.RIGHT);
lblScreen6.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen6","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen6","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen6.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen6, row, col++, 1, nofill);
lblScreen6.setLabelFor(intScreen6);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen6","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen6.setBorder(new DashedBorder (Color.red , 1));
// intScreen6.setBorder(titledBorder);
add(intScreen6, row, col++, 1, fill);
// // intScreen6.setBorder(redBorder);
// intScreen6.setBorder(new DashedBorder (Color.red , 1));
intScreen6.setEditable(true);

com.halepringle.standard.JxLabel lblScreen7
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen7","UserLogData"), JLabel.RIGHT);
lblScreen7.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen7","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen7","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen7.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen7, row, col++, 1, nofill);
lblScreen7.setLabelFor(intScreen7);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen7","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen7.setBorder(new DashedBorder (Color.red , 1));
// intScreen7.setBorder(titledBorder);
add(intScreen7, row, col++, 1, fill);
// // intScreen7.setBorder(redBorder);
// intScreen7.setBorder(new DashedBorder (Color.red , 1));
intScreen7.setEditable(true);

com.halepringle.standard.JxLabel lblScreen8
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen8","UserLogData"), JLabel.RIGHT);
lblScreen8.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen8","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen8","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen8.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen8, row, col++, 1, nofill);
lblScreen8.setLabelFor(intScreen8);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen8","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen8.setBorder(new DashedBorder (Color.red , 1));
// intScreen8.setBorder(titledBorder);
add(intScreen8, row, col++, 1, fill);
// // intScreen8.setBorder(redBorder);
// intScreen8.setBorder(new DashedBorder (Color.red , 1));
intScreen8.setEditable(true);

com.halepringle.standard.JxLabel lblScreen9
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen9","UserLogData"), JLabel.RIGHT);
lblScreen9.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen9","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen9","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen9.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen9, row, col++, 1, nofill);
lblScreen9.setLabelFor(intScreen9);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen9","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen9.setBorder(new DashedBorder (Color.red , 1));
// intScreen9.setBorder(titledBorder);
add(intScreen9, row, col++, 1, fill);
// // intScreen9.setBorder(redBorder);
// intScreen9.setBorder(new DashedBorder (Color.red , 1));
intScreen9.setEditable(true);

com.halepringle.standard.JxLabel lblScreen10
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Screen10","UserLogData"), JLabel.RIGHT);
lblScreen10.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Screen10","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Screen10","UserLogData");
if (tmpStr.trim().length() > 0) {
lblScreen10.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblScreen10, row, col++, 1, nofill);
lblScreen10.setLabelFor(intScreen10);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Screen10","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intScreen10.setBorder(new DashedBorder (Color.red , 1));
// intScreen10.setBorder(titledBorder);
add(intScreen10, row, col++, 1, fill);
// // intScreen10.setBorder(redBorder);
// intScreen10.setBorder(new DashedBorder (Color.red , 1));
intScreen10.setEditable(true);

com.halepringle.standard.JxLabel lblViewhistory_dttime
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Viewhistory_dttime","UserLogData"), JLabel.RIGHT);
lblViewhistory_dttime.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Viewhistory_dttime","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Viewhistory_dttime","UserLogData");
if (tmpStr.trim().length() > 0) {
lblViewhistory_dttime.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblViewhistory_dttime, row, col++, 1, nofill);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Viewhistory_dttime","UserLogData"));
// // titledBorder.setBorder(redBorder);
// dtViewhistory_dttimeText.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// dtViewhistory_dttimeText.setBorder(titledBorder);
add(dtViewhistory_dttimeText, row, col++, 2, fill);
col++;
lblViewhistory_dttime.setLabelFor(btnViewhistory_dttime);
btnViewhistory_dttime.setEnabled(false);
btnViewhistory_dttime.setMargin(new Insets(0,0,0,0));
btnViewhistory_dttime.setAlignmentY(RIGHT_ALIGNMENT);
add(btnViewhistory_dttime,row,col++,1,fill);
// txtViewhistory_dttimeTime.setBorder(new DashedBorder (Color.red , 1));
// txtViewhistory_dttimeTime.setBorder(titledBorder);
add(txtViewhistory_dttimeTime, row, col++, 2, fill);
txtViewhistory_dttimeTime.setEnabled(false);

com.halepringle.standard.JxLabel lblPassword
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Password","UserLogData"), JLabel.RIGHT);
lblPassword.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Password","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Password","UserLogData");
if (tmpStr.trim().length() > 0) {
lblPassword.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblPassword, row, col++, 1, nofill);
lblPassword.setLabelFor(txtPassword);
// txtPassword.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Password","UserLogData"));
// txtPassword.setBorder(titledBorder);
add(txtPassword, row, col++, 1, fill);
txtPassword.setEditable(true);

com.halepringle.standard.JxLabel lblInactive
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Inactive","UserLogData"), JLabel.RIGHT);
lblInactive.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Inactive","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Inactive","UserLogData");
if (tmpStr.trim().length() > 0) {
lblInactive.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblInactive, row, col++, 1, nofill);
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Inactive","UserLogData");
if (tmpStr.trim().length() > 0) {
chkInactive.setMnemonic((char)tmpStr.charAt(0));
}
lblInactive.setLabelFor(chkInactive);
// chkInactive.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Inactive","UserLogData"));
// // titledBorder.setBorder(redBorder);
// chkInactive.setBorder(titledBorder);
add(chkInactive, row, col++, 1, fill);
chkInactive.setEnabled(true);

com.halepringle.standard.JxLabel lblLastLogon
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_LastLogon","UserLogData"), JLabel.RIGHT);
lblLastLogon.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_LastLogon","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_LastLogon","UserLogData");
if (tmpStr.trim().length() > 0) {
lblLastLogon.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblLastLogon, row, col++, 1, nofill);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_LastLogon","UserLogData"));
// // titledBorder.setBorder(redBorder);
// dtLastLogonText.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// dtLastLogonText.setBorder(titledBorder);
add(dtLastLogonText, row, col++, 2, fill);
col++;
lblLastLogon.setLabelFor(btnLastLogon);
btnLastLogon.setEnabled(false);
btnLastLogon.setMargin(new Insets(0,0,0,0));
btnLastLogon.setAlignmentY(RIGHT_ALIGNMENT);
add(btnLastLogon,row,col++,1,fill);
// txtLastLogonTime.setBorder(new DashedBorder (Color.red , 1));
// txtLastLogonTime.setBorder(titledBorder);
add(txtLastLogonTime, row, col++, 2, fill);
txtLastLogonTime.setEnabled(false);

com.halepringle.standard.JxLabel lblFirstlogon
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Firstlogon","UserLogData"), JLabel.RIGHT);
lblFirstlogon.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Firstlogon","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Firstlogon","UserLogData");
if (tmpStr.trim().length() > 0) {
lblFirstlogon.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblFirstlogon, row, col++, 1, nofill);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Firstlogon","UserLogData"));
// // titledBorder.setBorder(redBorder);
// dtFirstlogonText.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// dtFirstlogonText.setBorder(titledBorder);
add(dtFirstlogonText, row, col++, 2, fill);
col++;
lblFirstlogon.setLabelFor(btnFirstlogon);
btnFirstlogon.setEnabled(false);
btnFirstlogon.setMargin(new Insets(0,0,0,0));
btnFirstlogon.setAlignmentY(RIGHT_ALIGNMENT);
add(btnFirstlogon,row,col++,1,fill);
// txtFirstlogonTime.setBorder(new DashedBorder (Color.red , 1));
// txtFirstlogonTime.setBorder(titledBorder);
add(txtFirstlogonTime, row, col++, 2, fill);
txtFirstlogonTime.setEnabled(false);

com.halepringle.standard.JxLabel lblNotes
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Notes","UserLogData"), JLabel.RIGHT);
lblNotes.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Notes","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Notes","UserLogData");
if (tmpStr.trim().length() > 0) {
lblNotes.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblNotes, row, col++, 1, nofill);
// lblNotes.setLabelFor(pareaNotes);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Notes","UserLogData"));
// pareaNotes.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// pareaNotes.setBorder(titledBorder);
add(pareaNotes, row, col++, 5, fill);
pareaNotes.setEnabled(true);


com.halepringle.standard.JxLabel lblSkillAdmin
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_SkillAdmin","UserLogData"), JLabel.RIGHT);
lblSkillAdmin.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_SkillAdmin","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_SkillAdmin","UserLogData");
if (tmpStr.trim().length() > 0) {
lblSkillAdmin.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblSkillAdmin, row, col++, 1, nofill);
lblSkillAdmin.setLabelFor(txtSkillAdmin);
// txtSkillAdmin.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_SkillAdmin","UserLogData"));
// txtSkillAdmin.setBorder(titledBorder);
add(txtSkillAdmin, row, col++, 1, fill);
txtSkillAdmin.setEditable(true);

com.halepringle.standard.JxLabel lblSkillResearch
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_SkillResearch","UserLogData"), JLabel.RIGHT);
lblSkillResearch.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_SkillResearch","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_SkillResearch","UserLogData");
if (tmpStr.trim().length() > 0) {
lblSkillResearch.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblSkillResearch, row, col++, 1, nofill);
lblSkillResearch.setLabelFor(txtSkillResearch);
// txtSkillResearch.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_SkillResearch","UserLogData"));
// txtSkillResearch.setBorder(titledBorder);
add(txtSkillResearch, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtSkillResearch.setEditable(true);

com.halepringle.standard.JxLabel lblSkillTyping
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_SkillTyping","UserLogData"), JLabel.RIGHT);
lblSkillTyping.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_SkillTyping","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_SkillTyping","UserLogData");
if (tmpStr.trim().length() > 0) {
lblSkillTyping.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblSkillTyping, row, col++, 1, nofill);
lblSkillTyping.setLabelFor(txtSkillTyping);
// txtSkillTyping.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_SkillTyping","UserLogData"));
// txtSkillTyping.setBorder(titledBorder);
add(txtSkillTyping, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtSkillTyping.setEditable(true);

com.halepringle.standard.JxLabel lblSkillComputer
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_SkillComputer","UserLogData"), JLabel.RIGHT);
lblSkillComputer.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_SkillComputer","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_SkillComputer","UserLogData");
if (tmpStr.trim().length() > 0) {
lblSkillComputer.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblSkillComputer, row, col++, 1, nofill);
lblSkillComputer.setLabelFor(txtSkillComputer);
// txtSkillComputer.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_SkillComputer","UserLogData"));
// txtSkillComputer.setBorder(titledBorder);
add(txtSkillComputer, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtSkillComputer.setEditable(true);

com.halepringle.standard.JxLabel lblQuery_Classname
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Query_Classname","UserLogData"), JLabel.RIGHT);
lblQuery_Classname.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Query_Classname","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Query_Classname","UserLogData");
if (tmpStr.trim().length() > 0) {
lblQuery_Classname.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblQuery_Classname, row, col++, 1, nofill);
lblQuery_Classname.setLabelFor(txtQuery_Classname);
// txtQuery_Classname.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Query_Classname","UserLogData"));
// txtQuery_Classname.setBorder(titledBorder);
add(txtQuery_Classname, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtQuery_Classname.setEditable(true);

com.halepringle.standard.JxLabel lblQuery_template
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Query_template","UserLogData"), JLabel.RIGHT);
lblQuery_template.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Query_template","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Query_template","UserLogData");
if (tmpStr.trim().length() > 0) {
lblQuery_template.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblQuery_template, row, col++, 1, nofill);
lblQuery_template.setLabelFor(txtQuery_template);
// txtQuery_template.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Query_template","UserLogData"));
// txtQuery_template.setBorder(titledBorder);
add(txtQuery_template, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtQuery_template.setEditable(true);

com.halepringle.standard.JxLabel lblQuery_ColCount
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Query_ColCount","UserLogData"), JLabel.RIGHT);
lblQuery_ColCount.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Query_ColCount","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Query_ColCount","UserLogData");
if (tmpStr.trim().length() > 0) {
lblQuery_ColCount.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblQuery_ColCount, row, col++, 1, nofill);
lblQuery_ColCount.setLabelFor(intQuery_ColCount);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Query_ColCount","UserLogData"));
// // titledBorder.setBorder(redBorder);
// intQuery_ColCount.setBorder(new DashedBorder (Color.red , 1));
// intQuery_ColCount.setBorder(titledBorder);
add(intQuery_ColCount, row, col++, 1, fill);
// // intQuery_ColCount.setBorder(redBorder);
// intQuery_ColCount.setBorder(new DashedBorder (Color.red , 1));
intQuery_ColCount.setEditable(true);

com.halepringle.standard.JxLabel lblQuery_Text
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Query_Text","UserLogData"), JLabel.RIGHT);
lblQuery_Text.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Query_Text","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Query_Text","UserLogData");
if (tmpStr.trim().length() > 0) {
lblQuery_Text.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblQuery_Text, row, col++, 1, nofill);
// lblQuery_Text.setLabelFor(pareaQuery_Text);
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Query_Text","UserLogData"));
// pareaQuery_Text.setBorder(new DashedBorder (Color.red , 1));
// // titledBorder.setBorder(redBorder);
// pareaQuery_Text.setBorder(titledBorder);
add(pareaQuery_Text, row, col++, 5, fill);
pareaQuery_Text.setEnabled(true);

com.halepringle.standard.JxLabel lblQuery_Type
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Query_Type","UserLogData"), JLabel.RIGHT);
lblQuery_Type.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Query_Type","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Query_Type","UserLogData");
if (tmpStr.trim().length() > 0) {
lblQuery_Type.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblQuery_Type, row, col++, 1, nofill);
lblQuery_Type.setLabelFor(txtQuery_Type);
// txtQuery_Type.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Query_Type","UserLogData"));
// txtQuery_Type.setBorder(titledBorder);
add(txtQuery_Type, row, col++, 1, fill);
txtQuery_Type.setEditable(true);

com.halepringle.standard.JxLabel lblQuery_Name
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Query_Name","UserLogData"), JLabel.RIGHT);
lblQuery_Name.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Query_Name","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Query_Name","UserLogData");
if (tmpStr.trim().length() > 0) {
lblQuery_Name.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblQuery_Name, row, col++, 1, nofill);
lblQuery_Name.setLabelFor(txtQuery_Name);
// txtQuery_Name.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Query_Name","UserLogData"));
// txtQuery_Name.setBorder(titledBorder);
add(txtQuery_Name, row, col++, 3, fill);
col++; // move col since last add took up 3 columns
col++;
txtQuery_Name.setEditable(true);

com.halepringle.standard.JxLabel lblQuery_Username
= new com.halepringle.standard.JxLabel(" "+model.getRbString(UserLogDataRb,"lbl_name_Query_Username","UserLogData"), JLabel.RIGHT);
lblQuery_Username.setToolTipText(model.getRbString(UserLogDataRb,"lbl_tooltip_Query_Username","UserLogData"));
tmpStr = model.getRbString(UserLogDataRb,"lbl_hotkey_Query_Username","UserLogData");
if (tmpStr.trim().length() > 0) {
lblQuery_Username.setDisplayedMnemonic((char)tmpStr.charAt(0));
}
row++;
col = 0;
add(lblQuery_Username, row, col++, 1, nofill);
lblQuery_Username.setLabelFor(txtQuery_Username);
// txtQuery_Username.setBorder(new DashedBorder (Color.red , 1));
// titledBorder = BorderFactory.createTitledBorder(model.getRbString(UserLogDataRb,"titleborder_Query_Username","UserLogData"));
// txtQuery_Username.setBorder(titledBorder);
add(txtQuery_Username, row, col++, 2, fill);
col++; // move col since last add took up 2 columns
txtQuery_Username.setEditable(true);
// ********************* //
// these lines are for the table
row++;
col = 0;
Border loweredbevel = BorderFactory.createLoweredBevelBorder();

Border titled = BorderFactory.createTitledBorder(
loweredbevel, model.getRbString(UserLogDataRb,"JTable_title_UserLogData","UserLogData"),
TitledBorder.CENTER,
TitledBorder.TOP);

tableScrollPane.setBorder(titled);

add(tableScrollPane, row, col++, -1, fill);


row++;
col=1;
if (menuAtTop.equals("Y")) {
// do nothing
} else {
btnPanel.setBorder(new BevelBorder(BevelBorder.RAISED));
add(btnPanel,row,col++,6,fill);
}

} // end of buildLayout()
public LayoutManager getJPanel(){
return thisPanel.getLayout();
}
// **
// *
// * Description - add method - part of RowLayout Manager
// *
// * /

public void add(javax.swing.JComponent c, int row, int col, int width, int fill) {
com.halepringle.standard.RowLayoutConstraint rc =
new com.halepringle.standard.RowLayoutConstraint(row, col, width, fill);

this.thisPanel.add(c, rc);

} // end of add

// **
// * this class is an implementation of a dashed border.
// * a red dashed border is used around required fields -dash is for colorblind users.
// * @since 1.4
// /
public static class DashedBorder extends LineBorder implements UIResource {
public DashedBorder(Color color) {
super(color);
}

public DashedBorder(Color color, int thickness) {
super(color, thickness);
}


public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
Color oldColor = g.getColor();
int i;

g.setColor(lineColor);
Graphics2D g2 = (Graphics2D)g;
g2.setColor(lineColor);
// g2.setStroke(new BasicStroke(2,BasicStroke.CAP_BUTT,BasicStroke.JOIN_BEVEL,0, new float[] { 5,10 }, 0));
float dash[] = {4.0f};

g2.setStroke(new BasicStroke(3.0f,
BasicStroke.CAP_BUTT,
BasicStroke.JOIN_MITER,
10.0f, dash, 0.0f));
//g2.setStroke(dashed);
for(i = 0; i < thickness; i++) {
g2.draw(new RoundRectangle2D.Double(x-1, y-1, width-i-i,height-i-i
, 5, 5));
}
// for(i = 0; i < thickness; i++) {
// BasicGraphicsUtils.drawDashedRect(g2, x+i, y+i, width-i-i, height-i-i);
// }
g.setColor(oldColor);
}//end daashed border
}//end line border

} //end of Class

*/ // end of commented out version os code that goes in UserLogDataBuildLayout.java.

}; //
/** SECTION 12- GETS DATA FROM DATABASE TABLE, FILLS VISUAL COMPONANTS and SETS UP JTABLE */
//
//

/** SECTION 12- GETS DATA FROM DATABASE TABLE, FILLS VISUAL COMPONANTS and SETS UP JTABLE */



//// ** this is the getter code to move data from database to controls

/**
* description - method to fill the components with data from database
* THIS ONE USES the inactive field if one is appropriate
*
*/
public void getDataUserLogDataByID(int id_, String query, String ascDesc){
getDataUserLogDataByID(id_, query, ascDesc, "YES");}


/**
* description - method to fill the components with data from database
*
*/
//
/** SECTION 13-GET RESULT SET FROM DATABASE and SETUP JTABLE RENDERERS, SORTER, ETC */
//
//

/** SECTION 13-GET RESULT SET FROM DATABASE and SETUP JTABLE RENDERERS, SORTER, ETC */



public void getDataUserLogDataByID(int id_, String query, String ascendDescend, String useInActiveField){
long start = System.currentTimeMillis();
utm.setColString(null);
if (id_ > 0) {
utm.setQueryString("user_id = " + Integer.toString(id_));
} else {
utm.setOrderString(currOrderByColumn);
utm.setAscendDescend(ascendDescend);
utm.setQueryString(query);
}
//NOTE the parameter is the next statement usually indicates the field to use
//NOTE If it was built by the SQLWhereCluase builder thes inactive field stuff is doen manually
if (useInActiveField.equalsIgnoreCase("YES")){
utm.queryTable("inactive");
} else {
utm.queryTable(null);
}
utm.fire();
int rowCount = utm.getRowCount();
if (rowCount == 0){
if (query == null){
JOptionPane.showMessageDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"ERROR -Cannot find row with ID: {0}","UserLogData")
,new String[]{"" + id_ }), model.getRbString(UserLogDataRb,"No Rows Found","UserLogData"),
JOptionPane.ERROR_MESSAGE);
if (id_ == 0){
id_ = -2; // converting to -2 which starts the system with
// an add
rowObj.setUser_id(-2);
}
return;
} else {
JOptionPane.showMessageDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb, "ERROR -Cannot find row with query: {0}","UserLogData")
,new String[]{"\n" + query }), model.getRbString(UserLogDataRb,"No Rows Found","UserLogData"),
JOptionPane.ERROR_MESSAGE);
// Do Not Do the -2 thing here - if (id_ == 0){
// id_ = -2; // converting to -2 which starts the system with
// // an add
// rowObj.setUser_id(-2);
// }
return;
}
}
if (rowCount > 1 && id_ != 0){
JOptionPane.showMessageDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"ERROR -More than one row with ID=: {0} Count = {1}","UserLogData")
,new String[]{"" +id_,""+rowCount}), model.getRbString(UserLogDataRb,"Client Error","UserLogData"),
JOptionPane.ERROR_MESSAGE);
return;
}
// this is the row that actually puts data into components
// getDataUserLogData(0);

UserLogData.this.removeAll();
tableRs = utm.getResultSet(); //Get a copy of the resultSet
//This copy is what we work with until it is redone
createTable(); //
String tmpString = "";
try {
oldDisplayRow = 0;
goingBack = true;
// note: if a row is already selected, this sets off the setData... any changes? method
table.setRowSelectionInterval(0,0);
goingBack = false;
Integer tmpINT = (Integer) (table.getValueAt(0,UTM_USER_ID));
int tmpInt = tmpINT.intValue();
getDataUserLogDataOneRow(tmpInt);
getDataUserLogData(0,0);

} catch (Exception ex) {
model.showWarningOcurred(model.getRbString(UserLogDataRb,"Error getting row number for lowest ID","UserLogData"));
oldDisplayRow = -1;}
double tmp = 0.0;

if (user_id.getValue() > 0) {
getDataUserLogDataByID(user_id.getValue(), null, null);
updateOrInsert = "Update";
}
buildLayout();
UserLogData.this.doLayout();
//TODO Make this into its own method
if (newTableRow > 0) {
int maxRow = table.getRowCount();
int tmpInt = -1;
Object tmpObj;
for (int i=0; i < maxRow; i++){
tmpObj = table.getValueAt(i, UTM_USER_ID);
if (tmpObj == null){
tmpString = "-1";
} else {
tmpString = tmpObj.toString();
};
tmpString = tmpString.trim();
try {
tmpInt = Integer.parseInt(tmpString);
} catch (Exception ex) {
tmpInt = -1;
}
if (tmpInt == -1 ){
maxRow = 0;
break;
}
if ( tmpInt == newTableRow){
maxRow = i;
break;
}
}
if (tmpInt != -1) {
// make the row just added the active row - highlight it
table.setRowSelectionInterval(maxRow, maxRow);
oldDisplayRow = maxRow;
// make sure the row is visible
table.repaint();
tableScrollPane.repaint();
scrollVertically(table, getRowBounds(table, maxRow));
}
}
if(newTableRow == 0) { //else it is already painted
UserLogData.this.repaint();
table.repaint();
tableScrollPane.repaint();
};
newTableRow = 0;
//

long end = System.currentTimeMillis();
System.out.println(java.text.MessageFormat.format(model.getRbString(UserLogDataRb,"Time to query table = {0}","UserLogData"),new String[]{""+(end - start)}));

} //
public void createTable() {
myModel = new MyTableModel();
tableColumnCount = myModel.getColumnCount();
// NOTE: We were using the tablesorter class to sort the JTable if you clicked on a column header.
// NOTE: Since we are using the result set directly to populate the JTable it is often quick to requery.
// sorter = new com.halepringle.standard.TableSorter(myModel);
// sorter.doIndexes();
// table = new JTable(sorter);
table = new JTable(myModel);
table.getModel().addTableModelListener(new
RepaintingDataListener(table));
table.getAccessibleContext().setAccessibleDescription(
model.getRbString(UserLogDataRb,"Table of UserLogData Data","UserLogData"));
// sorter.addMouseListenerToHeaderInTable(table);
addMouseListenerToHeaderInTable(table, jFutm,this,model,utm.getColumnCount() );;
// XXXX set the size of your table here - width, height
table.setPreferredScrollableViewportSize(new Dimension(300, 100));
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
//create the scroll pane and add the table to it.
tableScrollPane =
new JScrollPane(
table,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);

table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);


ListSelectionModel rowSM = table.getSelectionModel();

rowSM.addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
String tmp = "";
//Ignore extra messages.
if (e.getValueIsAdjusting())
{return;}

lsm = (ListSelectionModel) e.getSource();
if (lsm.isSelectionEmpty()) {
oldDisplayRow = 0;
selectedRow = 0;
} else {

selectedRow = lsm.getMinSelectionIndex();
}

int changes = setDataUserLogData();
int errs = checkUserLogDataData();
if (errs > 0){
goingBack = true;
table.setRowSelectionInterval(oldDisplayRow,oldDisplayRow);
return;
}
if (changes > 0 ){

if (!goingBack){
Object[] options = {model.getRbString(UserLogDataRb,"Yes","UserLogData"), model.getRbString(UserLogDataRb,"No","UserLogData")};
int n = JOptionPane.showOptionDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"Change Rows without saving changes in {0}?","UserLogData"),
new String[]{"" + "UserLogData"})+"\n" +
model.getRbString(UserLogDataRb,"Fields changed =","UserLogData")+" " +changeMsg,
model.getRbString(UserLogDataRb,"Change Rows Message","UserLogData"),
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[1]);
if (n == JOptionPane.YES_OPTION) {
// drop through
goingBack = false;
} else {
goingBack = true;
table.setRowSelectionInterval(oldDisplayRow,oldDisplayRow);
return;
}
}
}
if (!goingBack){
if (lsm.isSelectionEmpty()) {
// System.out.println("No rows are selected.");
if (selectedRow > -1 && selectedRow <= table.getRowCount()){
table.setRowSelectionInterval(selectedRow,selectedRow);
}
} else {
oldDisplayRow = selectedRow;
Integer tmpINT = (Integer)( table.getValueAt(selectedRow,UTM_USER_ID ));
int tmpInt = tmpINT.intValue();
if (newTableRow > 0) {
tmpInt = newTableRow;
}
getDataUserLogDataOneRow(tmpInt);
getDataUserLogData(0,selectedRow);
table.setRowSelectionInterval(selectedRow,selectedRow);
// System.out.println("Row " + selectedRow
// + " is now selected.");
}
}
goingBack = false;
}
}); //end of row change listener


JTableHeader header = table.getTableHeader();
header.addMouseMotionListener(tableTips);
tcm = table.getColumnModel();
table.setDefaultRenderer(java.lang.Number.class,
new FractionCellRenderer(10,3,SwingConstants.RIGHT));
table.setDefaultRenderer(java.util.Date.class,
new SpecialDateCellRenderer(tmpNullDate));
com.halepringle.standard.TextEditor viewer =
new com.halepringle.standard.TextEditor();
table.setDefaultEditor(String.class, viewer);
JTableHeader base = table.getTableHeader();
TableCellRenderer dr = base.getDefaultRenderer();;
Object obj = new Object();
Component comp = dr.getTableCellRendererComponent(table, obj, false,false, 0,0);
comp.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Table Column","UserLogData"));
table.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"UserLogData Table","UserLogData"));

if (tcm.getColumnCount() > 0) {
String tip;
String headerTip;
for (int ii = 0; ii < widths.length; ii++) {
TableColumn col = tcm.getColumn(ii);
javax.swing.table.DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
tip = model.getRbString(UserLogDataRb,"jTable_column_"+columnNames[ii].toLowerCase(),"UserLogData");
renderer.setToolTipText(tip);
headerTip = model.getRbString(UserLogDataRb,"tooltip_"+columnNames[ii].toLowerCase(),"UserLogData");
tableTips.setToolTip(col,headerTip);
col.setCellRenderer(renderer);
col.setMinWidth(0);
col.setPreferredWidth(widths[ii]);
if (ii == 0) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 14) {
renderer = new FractionCellRenderer(8, 2 ,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 26) {
renderer = new FractionCellRenderer(2, 0 ,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 31) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 33) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 39) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 40) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 41) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 42) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 43) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 44) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 45) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 46) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 47) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 48) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 49) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
if (ii == 63) {
renderer = new FractionCellRenderer(10,0,SwingConstants.RIGHT);
renderer.setToolTipText(tip);
col.setCellRenderer(renderer);
}
}
}
table = restoreSettings(table);
// for (int i = 0; i < rowCount; i++) {
//If we ever go back to putting all the data into an array
//then reactivate this loop.
// int i = 0;
// getDataUserLogData(i,i);
// }
// sorter.sortByColumn(0, true);
}; //end of createTable method
//
/** SECTION 14- GET DATA IN RESULTSET AND PUTS DATA INTO ROWOBJ */
//
//

/** SECTION 14- GET DATA IN RESULTSET AND PUTS DATA INTO ROWOBJ */



/**
*
* description - method to get database data into textfields
* @param - row number (should always be row 0)
* optional: there is code to put the data into an data object for a table
*/
public int getDataUserLogData(int idx_x, int dataRow) {
//
/** SECTION 15- TAKE DATA FROM ROWOBJ AND PLACE IN VISUAL COMOPNANTS */
//
//

/** SECTION 15- TAKE DATA FROM ROWOBJ AND PLACE IN VISUAL COMOPNANTS */



int idx_ = idx_x;
String tmpString;
String tmpString1;
String newTime;
java.util.Date tmpDate1;
String newTimeMedium;
String convertedTime;
String space = " ";
Integer tmpINT;
int tmpInt;
try {

tmpString = (String)(utm.getValueAt(idx_, utm.USER_ID));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setUser_id( tmpInt );
}

//

Bounded Text Field Example - Fill component from resultSet



tmpString = (String)(utm.getValueAt(idx_,utm.FIRSTNAME));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setFirstName(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.MIDDLENAME));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setMiddleName(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.LASTNAME));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setLastname(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.LOGIN_NAME));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setLogin_name(tmpString);
}

tmpString = "";
tmpString = (String)(utm.getValueAt(idx_,utm.PARTTIME));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
if (tmpString.equalsIgnoreCase( trueValue )
|| tmpString.equalsIgnoreCase("true")
|| tmpString.equalsIgnoreCase("Y")){
rowObj.setPartTime("Y");
} else {
rowObj.setPartTime("Y");
}
} // end of if idx = 0

tmpString = (String)(utm.getValueAt(idx_,utm.ADDRESS1));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setAddress1(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.ADDRESS2));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setAddress2(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.CITY));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setCity(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.STATE));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setState(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.ZIP));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setZip(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.EMAIL));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setEmail(tmpString);
txtEmail.setText(rowObj.getEmail());
}

//#

Telephone mask - get data from component- get data from SQL ResultSet #



tmpString = (String)(utm.getValueAt(idx_,utm.OFFICEPHONE));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setOfficephone(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.HOMEPHONE));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setHomePhone(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.HIREAGE));
if (tmpString == null) {tmpString = "0.0"; };
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setHireAge( Double.parseDouble(tmpString) );
}

tmpString = (String)(utm.getValueAt(idx_,utm.USERPHOTOURL));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setUserphotoUrl(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.RESUMEURL));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setResumeUrl(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.TITLE));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setTitle(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.GENDER));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0) {
if (tmpString.equalsIgnoreCase("M")) {
rowObj.setGender( "M");
}
if (tmpString.equalsIgnoreCase("F")) {
rowObj.setGender( "F");
}
if (tmpString.equalsIgnoreCase("U")) {
rowObj.setGender( "U");
}
}

tmpString = (String)(utm.getValueAt(idx_,utm.DEPARTMENT));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setDepartment(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.AUTHORITYGROUP1));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setAuthorityGroup1(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.AUTHORITYGROUP2));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setAuthorityGroup2(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_, utm.START_DATE));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
try{tmpDate = formatterMedium.parse(tmpString);}
catch (Exception exc) {tmpDate = null;}
// System.out.println("date converted to a datefield: "+ tmpDate);
try{tmpString = formatterDateShort.format(tmpDate);}
catch (Exception ex) {tmpString = (String)(utm.getValueAt(idx_, utm.START_DATE));}
// Note: if the conversion fails, we put it back to the original - it is too long but we can see the date
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (tmpString.trim().length() == 0) {tmpString = model.getRbString(UserLogDataRb,"Press New","UserLogData");}
if (idx_ == 0){
rowObj.setDtStart_DateText( tmpString );
}

tmpString = (String)(utm.getValueAt(idx_,utm.WP_PATH));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setWp_path(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.BROW_PATH));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setBrow_path(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.IPADDRESS));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setIpaddress(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.CATEGORY));
if (tmpString == null) {tmpString = "0.0"; };
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setCategory( Double.parseDouble(tmpString) );
}

tmpString = (String)(utm.getValueAt(idx_,utm.SSN));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
tmpString =tmpString.trim();
if (tmpString.length() == 7 || tmpString.length() == 4) {
tmpString = "0" + tmpString;
}
rowObj.setSsn(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.LOGINTIME));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setTxtLoginTimeTime(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_, utm.LOGFLD));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setLogfld( tmpString );
}

tmpString = (String)(utm.getValueAt(idx_, utm.IPADDS));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setIpAdds( tmpString );
}

tmpString = (String)(utm.getValueAt(idx_, utm.LOGON_COUNT));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setLogon_count( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_,utm.USERLOCK));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setUserLock(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_, utm.TABLE_UPDT));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setTable_Updt( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_,utm.MACH_NAME));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setMach_name(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_, utm.XML_DTTIME));
if (tmpString == null) {tmpString = "" ;};
tmpString = tmpString.trim();
tmpString1 = tmpString;
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
// System.out.println("default time: " + newTimeMedium);
if (tmpString.trim().length() == 0) {
tmpDate = null;
} else{
try{tmpDate = formatterMedium.parse(tmpString);}
catch (Exception exc) {
try{tmpDate = formatterTimeShort.parse(tmpString);
}catch (Exception exc1) {tmpDate = null;}
}
// System.out.println("date converted to a datefield: "+ tmpDate);
try{tmpString = formatterDateShort.format(tmpDate);}
catch (Exception exp) {tmpString = "";}
// System.out.println("date converted to diff fmt: " + tmpString);
try{newTime = formatterTimeMedium.format(tmpDate);}
catch(Exception exc){newTime = "";}
// System.out.println("time from data base as string: " + newTime);
if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
newTime = "0" + newTime;
}
// System.out.println("time from data base as string w/sec: " + newTimeMedium);
}
if (idx_ == 0){
rowObj.setDtXml_DtTimeText( tmpString );
rowObj.setTxtXml_DtTimeTime( newTime );
}

tmpString = (String)(utm.getValueAt(idx_, utm.XML_DATE));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
try{tmpDate = formatterMedium.parse(tmpString);}
catch (Exception exc) {tmpDate = null;}
// System.out.println("date converted to a datefield: "+ tmpDate);
try{tmpString = formatterDateShort.format(tmpDate);}
catch (Exception ex) {tmpString = (String)(utm.getValueAt(idx_, utm.XML_DATE));}
// Note: if the conversion fails, we put it back to the original - it is too long but we can see the date
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (tmpString.trim().length() == 0) {tmpString = model.getRbString(UserLogDataRb,"Press New","UserLogData");}
if (idx_ == 0){
rowObj.setDtXml_DateText( tmpString );
}

// tmpString = (String)(utm.getValueAt(idx_, utm.LASTCHANGEDDATE));
// if (tmpString == null) {tmpString = "" ;};
// tmpString = tmpString.trim();
// tmpString1 = tmpString;
// System.out.println("last change date from database: " + tmpString);
// newTime = model.getRbString(UserLogDataRb,"default_time_wsec","UserLogData");
// if (tmpString.trim().length() == 0) {
// tmpDate = null;
// } else{
// try{tmpDate = formatterMedium.parse(tmpString);}
// catch (Exception exc) {
// try{tmpDate = formatterTimeShort.parse(tmpString);
// }catch (Exception exc1) {tmpDate = null;}
// }
// System.out.println("date converted to a datefield: "+ tmpDate);
// try{tmpString = formatterDateShort.format(tmpDate);}
// catch (Exception exp) {tmpString = "";}
// System.out.println("date converted to diff fmt: " + tmpString);
// try{newTime = formatterTimeMedium.format(tmpDate);}
// catch(Exception exc){newTime = "";}
// System.out.println("time from data base as string: " + newTime);
// if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
// newTime = "0" + newTime;
// }
// System.out.println("time from data base as string w/sec: " + newTimeMedium);
// }
// if (idx_ == 0){
// rowObj.setDtLastchangeddateText( tmpString );
// rowObj.setTxtLastchangeddateTime( newTime );
// }

// tmpString = (String)(utm.getValueAt(idx_,utm.LASTCHANGEDBY));
// if (tmpString == null) {tmpString = "";};
// tmpString = tmpString.trim();
// if (idx_ == 0){
// rowObj.setLastchangedby(tmpString);
// }

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN0));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen0( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN1));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen1( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN2));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen2( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN3));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen3( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN4));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen4( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN5));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen5( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN6));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen6( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN7));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen7( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN8));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen8( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN9));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen9( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.SCREEN10));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setScreen10( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.VIEWHISTORY_DTTIME));
if (tmpString == null) {tmpString = "" ;};
tmpString = tmpString.trim();
tmpString1 = tmpString;
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
// System.out.println("default time: " + newTimeMedium);
if (tmpString.trim().length() == 0) {
tmpDate = null;
} else{
try{tmpDate = formatterMedium.parse(tmpString);}
catch (Exception exc) {
try{tmpDate = formatterTimeShort.parse(tmpString);
}catch (Exception exc1) {tmpDate = null;}
}
// System.out.println("date converted to a datefield: "+ tmpDate);
try{tmpString = formatterDateShort.format(tmpDate);}
catch (Exception exp) {tmpString = "";}
// System.out.println("date converted to diff fmt: " + tmpString);
try{newTime = formatterTimeMedium.format(tmpDate);}
catch(Exception exc){newTime = "";}
// System.out.println("time from data base as string: " + newTime);
if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
newTime = "0" + newTime;
}
// System.out.println("time from data base as string w/sec: " + newTimeMedium);
}
if (idx_ == 0){
rowObj.setDtViewhistory_dttimeText( tmpString );
rowObj.setTxtViewhistory_dttimeTime( newTime );
}

tmpString = (String)(utm.getValueAt(idx_,utm.PASSWORD));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setPassword(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_, utm.INACTIVE));
if (tmpString == null) {tmpString = falseValue;}
if (tmpString.equals("true")) { tmpString = trueValue ;}
if (tmpString.equals("t")) { tmpString = trueValue ;}
if (tmpString.equals("true")) { tmpString = trueValue ;}
if (tmpString.equals("1")) { tmpString = trueValue ;}
if (idx_ == 0){
if (tmpString.equals(trueValue)){
rowObj.setInactive( trueValue) ;
}else{
rowObj.setInactive (falseValue) ;
}
}

tmpString = (String)(utm.getValueAt(idx_, utm.LASTLOGON));
if (tmpString == null) {tmpString = "" ;};
tmpString = tmpString.trim();
tmpString1 = tmpString;
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
// System.out.println("default time: " + newTimeMedium);
if (tmpString.trim().length() == 0) {
tmpDate = null;
} else{
try{tmpDate = formatterMedium.parse(tmpString);}
catch (Exception exc) {
try{tmpDate = formatterTimeShort.parse(tmpString);
}catch (Exception exc1) {tmpDate = null;}
}
// System.out.println("date converted to a datefield: "+ tmpDate);
try{tmpString = formatterDateShort.format(tmpDate);}
catch (Exception exp) {tmpString = "";}
// System.out.println("date converted to diff fmt: " + tmpString);
try{newTime = formatterTimeMedium.format(tmpDate);}
catch(Exception exc){newTime = "";}
// System.out.println("time from data base as string: " + newTime);
if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
newTime = "0" + newTime;
}
// System.out.println("time from data base as string w/sec: " + newTimeMedium);
}
if (idx_ == 0){
rowObj.setDtLastLogonText( tmpString );
rowObj.setTxtLastLogonTime( newTime );
}

tmpString = (String)(utm.getValueAt(idx_, utm.FIRSTLOGON));
if (tmpString == null) {tmpString = "" ;};
tmpString = tmpString.trim();
tmpString1 = tmpString;
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
// System.out.println("default time: " + newTimeMedium);
if (tmpString.trim().length() == 0) {
tmpDate = null;
} else{
try{tmpDate = formatterMedium.parse(tmpString);}
catch (Exception exc) {
try{tmpDate = formatterTimeShort.parse(tmpString);
}catch (Exception exc1) {tmpDate = null;}
}
// System.out.println("date converted to a datefield: "+ tmpDate);
try{tmpString = formatterDateShort.format(tmpDate);}
catch (Exception exp) {tmpString = "";}
// System.out.println("date converted to diff fmt: " + tmpString);
try{newTime = formatterTimeMedium.format(tmpDate);}
catch(Exception exc){newTime = "";}
// System.out.println("time from data base as string: " + newTime);
if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
newTime = "0" + newTime;
}
// System.out.println("time from data base as string w/sec: " + newTimeMedium);
}
if (idx_ == 0){
rowObj.setDtFirstlogonText( tmpString );
rowObj.setTxtFirstlogonTime( newTime );
}

tmpString = (String)(utm.getValueAt(idx_, utm.NOTES));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setNotes( tmpString );
}


tmpString = (String)(utm.getValueAt(idx_,utm.SKILLADMIN));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setSkillAdmin(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.SKILLRESEARCH));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setSkillResearch(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.SKILLTYPING));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setSkillTyping(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.SKILLCOMPUTER));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setSkillComputer(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.QUERY_CLASSNAME));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setQuery_Classname(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.QUERY_TEMPLATE));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setQuery_template(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_, utm.QUERY_COLCOUNT));
if (tmpString == null) {tmpString = "0"; };
tmpString = tmpString.trim();
try {tmpInt = Integer.parseInt(tmpString);}
catch (Exception ex) {tmpInt = 0;}
if (idx_ == 0){
rowObj.setQuery_ColCount( tmpInt );
}

tmpString = (String)(utm.getValueAt(idx_, utm.QUERY_TEXT));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setQuery_Text( tmpString );
}

tmpString = (String)(utm.getValueAt(idx_,utm.QUERY_TYPE));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setQuery_Type(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.QUERY_NAME));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setQuery_Name(tmpString);
}

tmpString = (String)(utm.getValueAt(idx_,utm.QUERY_USERNAME));
if (tmpString == null) {tmpString = "";};
tmpString = tmpString.trim();
if (idx_ == 0){
rowObj.setQuery_Username(tmpString);
}
// this set is used to make sure the strings are in he i18n table
String tString = model.getRbString(UserLogDataRb,"Error obtaining Data:","UserLogData");
String tString1 = model.getRbString(UserLogDataRb,"Data Error","UserLogData");
} catch (Exception ex) {
// this set is used if the error ever gets activated
String tString = model.getRbString(UserLogDataRb,"Error obtaining Data:","UserLogData");
String tString1 = model.getRbString(UserLogDataRb,"Data Error","UserLogData");
JOptionPane.showMessageDialog(null,
tString, tString1,
JOptionPane.ERROR_MESSAGE);

}
//now take from obj and put in visible components
putDataUserLogData(rowObj);
return 0;
} // end of getData() method

/**
*
* description - method to take data from a rowobject and put into the visual components
* @param - rowobject
*
*/
public void putDataUserLogData(dataObj rowObj) {
String tmpString = "";
intUser_id.setValue(rowObj.getUser_id());
intUser_id.setCaretPosition(0);
txtFirstName.setText(rowObj.getFirstName());
txtFirstName.setCaretPosition(0);
txtMiddleName.setText(rowObj.getMiddleName());
txtMiddleName.setCaretPosition(0);
txtLastname.setText(rowObj.getLastname());
txtLastname.setCaretPosition(0);
txtLogin_name.setText(rowObj.getLogin_name());
txtLogin_name.setCaretPosition(0);
tmpString = rowObj.getPartTime();
if (tmpString.equalsIgnoreCase( trueValue )
|| tmpString.equalsIgnoreCase("true")
|| tmpString.equalsIgnoreCase("Y")){
chkPartTime.setSelected(true);
} else { chkPartTime.setSelected(false);
}
txtAddress1.setText(rowObj.getAddress1());
txtAddress1.setCaretPosition(0);
txtAddress2.setText(rowObj.getAddress2());
txtAddress2.setCaretPosition(0);
txtCity.setText(rowObj.getCity());
txtCity.setCaretPosition(0);
cboState.setSelectedItem(rowObj.getState());
txtZip.setText(rowObj.getZip());
txtZip.setCaretPosition(0);
txtEmail.setCaretPosition(0);
txtOfficephone.setValue(rowObj.getOfficephone());
txtOfficephone.setCaretPosition(0);
txtHomePhone.setValue(rowObj.getHomePhone());
txtHomePhone.setCaretPosition(0);
numHireAge.setValue(rowObj.getHireAge());
numHireAge.setCaretPosition(0);
txtUserphotoUrl.setText(rowObj.getUserphotoUrl());
txtUserphotoUrl.setCaretPosition(0);
txtResumeUrl.setText(rowObj.getResumeUrl());
txtResumeUrl.setCaretPosition(0);
txtTitle.setText(rowObj.getTitle());
txtTitle.setCaretPosition(0);
tmpString = rowObj.getGender();
if (tmpString.equalsIgnoreCase("M")) {
rbMale.setSelected(true);
rbMale.setSelected(false);
rbMale.setSelected(false);
}
if (tmpString.equalsIgnoreCase("F")) {
rbFemale.setSelected(false);
rbFemale.setSelected(true);
rbFemale.setSelected(false);
}
if (tmpString.equalsIgnoreCase("U")) {
rbUnknown.setSelected(false);
rbUnknown.setSelected(false);
rbUnknown.setSelected(true);
}
cboDepartment.setSelectedItem(rowObj.getDepartment());
txtAuthorityGroup1.setText(rowObj.getAuthorityGroup1());
txtAuthorityGroup1.setCaretPosition(0);
txtAuthorityGroup2.setText(rowObj.getAuthorityGroup2());
txtAuthorityGroup2.setCaretPosition(0);
tmpString =rowObj.getDtStart_DateText();
if (tmpString.trim().length() == 0) {tmpString = model.getRbString(UserLogDataRb,"Press New","UserLogData");}
dtStart_DateText.setText(tmpString);
txtWp_path.setText(rowObj.getWp_path());
txtWp_path.setCaretPosition(0);
txtBrow_path.setText(rowObj.getBrow_path());
txtBrow_path.setCaretPosition(0);
txtIpaddress.setText(rowObj.getIpaddress());
txtIpaddress.setCaretPosition(0);
numCategory.setValue(rowObj.getCategory());
numCategory.setCaretPosition(0);
txtSsn.setValue(rowObj.getSsn());
txtSsn.setCaretPosition(0);
txtLoginTimeTime.setValue(rowObj.getTxtLoginTimeTime());
txtLoginTimeTime.setCaretPosition(0);
areaLogfld.setText(rowObj.getLogfld());
areaLogfld.setCaretPosition(0);
areaIpAdds.setText(rowObj.getIpAdds());
areaIpAdds.setCaretPosition(0);
intLogon_count.setValue(rowObj.getLogon_count());
intLogon_count.setCaretPosition(0);
txtUserLock.setText(rowObj.getUserLock());
txtUserLock.setCaretPosition(0);
intTable_Updt.setValue(rowObj.getTable_Updt());
intTable_Updt.setCaretPosition(0);
txtMach_name.setText(rowObj.getMach_name());
txtMach_name.setCaretPosition(0);
tmpString = rowObj.getDtXml_DtTimeText();
if (tmpString.trim().length() == 0){tmpString = model.getRbString(UserLogDataRb,"Press New","UserLogData");
}
dtXml_DtTimeText.setText( tmpString);
tmpString =rowObj.getTxtXml_DtTimeTime();
if (tmpString.trim().length() == 0) {tmpString =
model.getRbString(UserLogDataRb,"default_time","UserLogData");
}
txtXml_DtTimeTime.setValue( tmpString);
tmpString =rowObj.getDtXml_DateText();
if (tmpString.trim().length() == 0) {tmpString = model.getRbString(UserLogDataRb,"Press New","UserLogData");}
dtXml_DateText.setText(tmpString);
// tmpString = rowObj.getDtLastchangeddateText();
// if (tmpString.trim().length() == 0){tmpString = model.getRbString(UserLogDataRb,"Press New","UserLogData");
// }
// dtLastchangeddateText.setText( tmpString);
// tmpString =rowObj.getTxtLastchangeddateTime();
// if (tmpString.trim().length() == 0) {tmpString =
// model.getRbString(UserLogDataRb,"default_time_wsec","UserLogData");
// }
// txtLastchangeddateTime.setValue( tmpString);
// txtLastchangedby.setText(rowObj.getLastchangedby());
// txtLastchangedby.setCaretPosition(0);
intScreen0.setValue(rowObj.getScreen0());
intScreen0.setCaretPosition(0);
intScreen1.setValue(rowObj.getScreen1());
intScreen1.setCaretPosition(0);
intScreen2.setValue(rowObj.getScreen2());
intScreen2.setCaretPosition(0);
intScreen3.setValue(rowObj.getScreen3());
intScreen3.setCaretPosition(0);
intScreen4.setValue(rowObj.getScreen4());
intScreen4.setCaretPosition(0);
intScreen5.setValue(rowObj.getScreen5());
intScreen5.setCaretPosition(0);
intScreen6.setValue(rowObj.getScreen6());
intScreen6.setCaretPosition(0);
intScreen7.setValue(rowObj.getScreen7());
intScreen7.setCaretPosition(0);
intScreen8.setValue(rowObj.getScreen8());
intScreen8.setCaretPosition(0);
intScreen9.setValue(rowObj.getScreen9());
intScreen9.setCaretPosition(0);
intScreen10.setValue(rowObj.getScreen10());
intScreen10.setCaretPosition(0);
tmpString = rowObj.getDtViewhistory_dttimeText();
if (tmpString.trim().length() == 0){tmpString = model.getRbString(UserLogDataRb,"Press New","UserLogData");
}
dtViewhistory_dttimeText.setText( tmpString);
tmpString =rowObj.getTxtViewhistory_dttimeTime();
if (tmpString.trim().length() == 0) {tmpString =
model.getRbString(UserLogDataRb,"default_time","UserLogData");
}
txtViewhistory_dttimeTime.setValue( tmpString);
txtPassword.setText(rowObj.getPassword());
txtPassword.setCaretPosition(0);
tmpString = rowObj.getInactive();
if (tmpString == null) {tmpString = falseValue;}
if (tmpString.equals("true")) { tmpString = trueValue ;}
if (tmpString.equals("t")) { tmpString = trueValue ;}
if (tmpString.equals("true")) { tmpString = trueValue ;}
if (tmpString.equals("1")) { tmpString = trueValue ;}
if (tmpString.equals(trueValue)){
chkInactive.setSelected(true);
}else{
chkInactive.setSelected(false);
}
tmpString = rowObj.getDtLastLogonText();
if (tmpString.trim().length() == 0){tmpString = model.getRbString(UserLogDataRb,"Press New","UserLogData");
}
dtLastLogonText.setText( tmpString);
tmpString =rowObj.getTxtLastLogonTime();
if (tmpString.trim().length() == 0) {tmpString =
model.getRbString(UserLogDataRb,"default_time","UserLogData");
}
txtLastLogonTime.setValue( tmpString);
tmpString = rowObj.getDtFirstlogonText();
if (tmpString.trim().length() == 0){tmpString = model.getRbString(UserLogDataRb,"Press New","UserLogData");
}
dtFirstlogonText.setText( tmpString);
tmpString =rowObj.getTxtFirstlogonTime();
if (tmpString.trim().length() == 0) {tmpString =
model.getRbString(UserLogDataRb,"default_time","UserLogData");
}
txtFirstlogonTime.setValue( tmpString);
areaNotes.setText(rowObj.getNotes());
areaNotes.setCaretPosition(0);
txtSkillAdmin.setText(rowObj.getSkillAdmin());
txtSkillAdmin.setCaretPosition(0);
txtSkillResearch.setText(rowObj.getSkillResearch());
txtSkillResearch.setCaretPosition(0);
txtSkillTyping.setText(rowObj.getSkillTyping());
txtSkillTyping.setCaretPosition(0);
txtSkillComputer.setText(rowObj.getSkillComputer());
txtSkillComputer.setCaretPosition(0);
txtQuery_Classname.setText(rowObj.getQuery_Classname());
txtQuery_Classname.setCaretPosition(0);
txtQuery_template.setText(rowObj.getQuery_template());
txtQuery_template.setCaretPosition(0);
intQuery_ColCount.setValue(rowObj.getQuery_ColCount());
intQuery_ColCount.setCaretPosition(0);
areaQuery_Text.setText(rowObj.getQuery_Text());
areaQuery_Text.setCaretPosition(0);
txtQuery_Type.setText(rowObj.getQuery_Type());
txtQuery_Type.setCaretPosition(0);
txtQuery_Name.setText(rowObj.getQuery_Name());
txtQuery_Name.setCaretPosition(0);
txtQuery_Username.setText(rowObj.getQuery_Username());
txtQuery_Username.setCaretPosition(0);
} // end of put values into Visible Components methods
//
/** SECTION 16- UPDATE ONE ROW IN TABLE WITH SAVED EDIT CHANGES */
//
//

/** SECTION 16- UPDATE ONE ROW IN TABLE WITH SAVED EDIT CHANGES */



/**
*
* description - method used during save to change table (optional) and update hld values
* The hld values contain the "original data" before user changes. after a save, the
* saved data needs to be considered as the "original data".
* @param - row number
*
* note: this is very tricky. since we are using an updateable resultset (in order to change the
* jtable, the values put in mytable.setvalueat() actually update the table. this should be okay,
* since we have already made the updates, but if you have a difference here from the code
* in changes = set(classname)byid you will change the table values here.
* when the jdbc resultset get to the point that they have live updates coming from
* The tables, we will go to a different scheme. refreshing the jtable from the
* resultset after the update (after the sql table has updated the resultset).
* in other words
* now - components to sql table and compoenents to resultset which updates jtable
* then - components to sql table which updates the resultset which updates the jtable
*/
public int reSetUserLogDataData(int idx_x) {
int idx_ = idx_x;
String tmpString;
String tmpString1;
String newTime;
boolean tmpBool = false;
java.util.Date tmpDate1;
int tmpInt;
Double tmpDBL;

myModel.setValueAt(new Integer( rowObj.getUser_id() ),idx_,UTM_USER_ID);

//

Bounded Text Field Example - Reset hld value to value in component after save



txtFirstName.setCaretPosition(0);
myModel.setValueAt(rowObj.getFirstName(),idx_,UTM_FIRSTNAME);

txtMiddleName.setCaretPosition(0);
myModel.setValueAt(rowObj.getMiddleName(),idx_,UTM_MIDDLENAME);

txtLastname.setCaretPosition(0);
myModel.setValueAt(rowObj.getLastname(),idx_,UTM_LASTNAME);

txtLogin_name.setCaretPosition(0);
myModel.setValueAt(rowObj.getLogin_name(),idx_,UTM_LOGIN_NAME);

// myModel.setValueAt(rowObj.getPartTime(),idx_,UTM_PARTTIME);

txtAddress1.setCaretPosition(0);
myModel.setValueAt(rowObj.getAddress1(),idx_,UTM_ADDRESS1);

txtAddress2.setCaretPosition(0);
myModel.setValueAt(rowObj.getAddress2(),idx_,UTM_ADDRESS2);

txtCity.setCaretPosition(0);
myModel.setValueAt(rowObj.getCity(),idx_,UTM_CITY);

myModel.setValueAt(rowObj.getState(),idx_,UTM_STATE);

txtZip.setCaretPosition(0);
myModel.setValueAt(rowObj.getZip(),idx_,UTM_ZIP);

txtEmail.setCaretPosition(0);
myModel.setValueAt(rowObj.getEmail(),idx_,UTM_EMAIL);

txtOfficephone.setCaretPosition(0);
myModel.setValueAt(rowObj.getOfficephone(),idx_,UTM_OFFICEPHONE);

txtHomePhone.setCaretPosition(0);
myModel.setValueAt(rowObj.getHomePhone(),idx_,UTM_HOMEPHONE);

tmpString = Double.toString(rowObj.getHireAge());
numHireAge.setCaretPosition(0);
myModel.setValueAt(tmpString,idx_,UTM_HIREAGE);

txtUserphotoUrl.setCaretPosition(0);
myModel.setValueAt(rowObj.getUserphotoUrl(),idx_,UTM_USERPHOTOURL);

txtResumeUrl.setCaretPosition(0);
myModel.setValueAt(rowObj.getResumeUrl(),idx_,UTM_RESUMEURL);

txtTitle.setCaretPosition(0);
myModel.setValueAt(rowObj.getTitle(),idx_,UTM_TITLE);

// myModel.setValueAt(rowObj.getGender(),idx_,UTM_GENDER);

tmpString = (String)(cboDepartment.getSelectedItem());
tmpString = tmpString.trim();
myModel.setValueAt(tmpString,idx_,UTM_DEPARTMENT);

txtAuthorityGroup1.setCaretPosition(0);
myModel.setValueAt(rowObj.getAuthorityGroup1(),idx_,UTM_AUTHORITYGROUP1);

txtAuthorityGroup2.setCaretPosition(0);
myModel.setValueAt(rowObj.getAuthorityGroup2(),idx_,UTM_AUTHORITYGROUP2);

tmpString1 ="";
tmpString = rowObj.getDtStart_DateText();
if (tmpString == null) {tmpString = "";}
if (tmpString.trim().equalsIgnoreCase(model.getRbString(UserLogDataRb,"Press New","UserLogData"))) {tmpString = "";}
tmpString = tmpString.trim();
tmpString1 = tmpString;
if (tmpString.trim().length()==0){
tmpString = "";
tmpDate = null ;
} else{
try{tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception exc1) {tmpDate = null;}}
try{
tmpString = formatterStd.format(tmpDate);}
catch (Exception ex){tmpString = "";}
if (tmpString.equalsIgnoreCase(model.getRbString(UserLogDataRb, "Press New","UserLogData")) || tmpString.trim().length()==0){
myModel.setValueAt(" ",idx_,UTM_START_DATE);
} else {
myModel.setValueAt(tmpString,idx_, UTM_START_DATE);
}

txtWp_path.setCaretPosition(0);
myModel.setValueAt(rowObj.getWp_path(),idx_,UTM_WP_PATH);

txtBrow_path.setCaretPosition(0);
myModel.setValueAt(rowObj.getBrow_path(),idx_,UTM_BROW_PATH);

txtIpaddress.setCaretPosition(0);
// myModel.setValueAt(rowObj.getIpaddress(),idx_,UTM_IPADDRESS);

tmpString = Double.toString(rowObj.getCategory());
numCategory.setCaretPosition(0);
myModel.setValueAt(tmpString,idx_,UTM_CATEGORY);

txtSsn.setCaretPosition(0);
myModel.setValueAt(rowObj.getSsn(),idx_,UTM_SSN);

tmpString1 ="";
tmpString1 = rowObj.getTxtLoginTimeTime();
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
if (tmpString.trim().length()==0){
tmpString = "";
tmpDate = null ;
} else{
try{tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception exc1) {tmpDate = null;}}
try{
tmpString = formatterStd.format(tmpDate);}
catch (Exception ex){tmpString = "";}
if (tmpString1 == null) {
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
} else {
try{
tmpDate1 = formatterTimeMedium.parse(tmpString1.trim());}
catch (Exception ex){tmpDate1 = null;}
try{newTime = formatterStdTimeWSecs.format(tmpDate1);}
catch(Exception exc){newTime = "";}
}
if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
newTime = "0" + newTime;
}
if (tmpString.equalsIgnoreCase(model.getRbString(UserLogDataRb, "Press New","UserLogData")) || tmpString.trim().length()==0){
myModel.setValueAt(" ",idx_,UTM_LOGINTIME);
} else {
//is not dateTime - do nothing
myModel.setValueAt(newTime,idx_, UTM_LOGINTIME);
}

myModel.setValueAt(rowObj.getLogfld(),idx_,UTM_LOGFLD);

myModel.setValueAt(rowObj.getIpAdds(),idx_,UTM_IPADDS);

myModel.setValueAt(new Integer( rowObj.getLogon_count() ),idx_,UTM_LOGON_COUNT);

txtUserLock.setCaretPosition(0);
myModel.setValueAt(rowObj.getUserLock(),idx_,UTM_USERLOCK);

myModel.setValueAt(new Integer( rowObj.getTable_Updt() ),idx_,UTM_TABLE_UPDT);

txtMach_name.setCaretPosition(0);
myModel.setValueAt(rowObj.getMach_name(),idx_,UTM_MACH_NAME);

tmpString1 ="";
tmpString = rowObj.getDtXml_DtTimeText();
if (tmpString == null) {tmpString = "";}
if (tmpString.trim().equalsIgnoreCase(model.getRbString(UserLogDataRb,"Press New","UserLogData"))) {tmpString = "";}
tmpString = tmpString.trim();
tmpString1 = tmpString;
tmpString1 = rowObj.getTxtXml_DtTimeTime();
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
if (tmpString.trim().length()==0){
tmpString = "";
tmpDate = null ;
} else{
try{tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception exc1) {tmpDate = null;}}
try{
tmpString = formatterStd.format(tmpDate);}
catch (Exception ex){tmpString = "";}
if (tmpString1 == null) {
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
} else {
try{
tmpDate1 = formatterTimeMedium.parse(tmpString1.trim());}
catch (Exception ex){tmpDate1 = null;}
try{newTime = formatterStdTimeWSecs.format(tmpDate1);}
catch(Exception exc){newTime = "";}
}
if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
newTime = "0" + newTime;
}
if (tmpString.equalsIgnoreCase(model.getRbString(UserLogDataRb, "Press New","UserLogData")) || tmpString.trim().length()==0){
myModel.setValueAt(" ",idx_,UTM_XML_DTTIME);
} else {
myModel.setValueAt(tmpString+" "+newTime,idx_, UTM_XML_DTTIME);
}

tmpString1 ="";
tmpString = rowObj.getDtXml_DateText();
if (tmpString == null) {tmpString = "";}
if (tmpString.trim().equalsIgnoreCase(model.getRbString(UserLogDataRb,"Press New","UserLogData"))) {tmpString = "";}
tmpString = tmpString.trim();
tmpString1 = tmpString;
if (tmpString.trim().length()==0){
tmpString = "";
tmpDate = null ;
} else{
try{tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception exc1) {tmpDate = null;}}
try{
tmpString = formatterStd.format(tmpDate);}
catch (Exception ex){tmpString = "";}
if (tmpString.equalsIgnoreCase(model.getRbString(UserLogDataRb, "Press New","UserLogData")) || tmpString.trim().length()==0){
myModel.setValueAt(" ",idx_,UTM_XML_DATE);
} else {
myModel.setValueAt(tmpString,idx_, UTM_XML_DATE);
}

tmpString1 ="";
tmpString = rowObj.getDtLastchangeddateText();
if (tmpString == null) {tmpString = "";}
if (tmpString.trim().equalsIgnoreCase(model.getRbString(UserLogDataRb,"Press New","UserLogData"))) {tmpString = "";}
tmpString = tmpString.trim();
tmpString1 = tmpString;
tmpString1 = rowObj.getTxtLastchangeddateTime();
newTime = model.getRbString(UserLogDataRb,"default_time_wsec","UserLogData");
if (tmpString.trim().length()==0){
tmpString = "";
tmpDate = null ;
} else{
try{tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception exc1) {tmpDate = null;}}
try{
tmpString = formatterStd.format(tmpDate);}
catch (Exception ex){tmpString = "";}
if (tmpString1 == null) {
newTime = model.getRbString(UserLogDataRb,"default_time_wsec","UserLogData");
} else {
try{
tmpDate1 = formatterTimeMedium.parse(tmpString1.trim());}
catch (Exception ex){tmpDate1 = null;}
try{newTime = formatterStdTimeWSecs.format(tmpDate1);}
catch(Exception exc){newTime = "";}
}
if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
newTime = "0" + newTime;
}
if (tmpString.equalsIgnoreCase(model.getRbString(UserLogDataRb, "Press New","UserLogData")) || tmpString.trim().length()==0){
myModel.setValueAt(" ",idx_,UTM_LASTCHANGEDDATE);
} else {
myModel.setValueAt(tmpString+" "+newTime,idx_, UTM_LASTCHANGEDDATE);
}

txtLastchangedby.setCaretPosition(0);
myModel.setValueAt(rowObj.getLastchangedby(),idx_,UTM_LASTCHANGEDBY);

myModel.setValueAt(new Integer( rowObj.getScreen0() ),idx_,UTM_SCREEN0);

myModel.setValueAt(new Integer( rowObj.getScreen1() ),idx_,UTM_SCREEN1);

myModel.setValueAt(new Integer( rowObj.getScreen2() ),idx_,UTM_SCREEN2);

myModel.setValueAt(new Integer( rowObj.getScreen3() ),idx_,UTM_SCREEN3);

myModel.setValueAt(new Integer( rowObj.getScreen4() ),idx_,UTM_SCREEN4);

myModel.setValueAt(new Integer( rowObj.getScreen5() ),idx_,UTM_SCREEN5);

myModel.setValueAt(new Integer( rowObj.getScreen6() ),idx_,UTM_SCREEN6);

myModel.setValueAt(new Integer( rowObj.getScreen7() ),idx_,UTM_SCREEN7);

myModel.setValueAt(new Integer( rowObj.getScreen8() ),idx_,UTM_SCREEN8);

myModel.setValueAt(new Integer( rowObj.getScreen9() ),idx_,UTM_SCREEN9);

// myModel.setValueAt(new Integer( rowObj.getScreen10() ),idx_,UTM_SCREEN10);

tmpString1 ="";
tmpString = rowObj.getDtViewhistory_dttimeText();
if (tmpString == null) {tmpString = "";}
if (tmpString.trim().equalsIgnoreCase(model.getRbString(UserLogDataRb,"Press New","UserLogData"))) {tmpString = "";}
tmpString = tmpString.trim();
tmpString1 = tmpString;
tmpString1 = rowObj.getTxtViewhistory_dttimeTime();
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
if (tmpString.trim().length()==0){
tmpString = "";
tmpDate = null ;
} else{
try{tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception exc1) {tmpDate = null;}}
try{
tmpString = formatterStd.format(tmpDate);}
catch (Exception ex){tmpString = "";}
if (tmpString1 == null) {
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
} else {
try{
tmpDate1 = formatterTimeMedium.parse(tmpString1.trim());}
catch (Exception ex){tmpDate1 = null;}
try{newTime = formatterStdTimeWSecs.format(tmpDate1);}
catch(Exception exc){newTime = "";}
}
if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
newTime = "0" + newTime;
}
if (tmpString.equalsIgnoreCase(model.getRbString(UserLogDataRb, "Press New","UserLogData")) || tmpString.trim().length()==0){
myModel.setValueAt(" ",idx_,UTM_VIEWHISTORY_DTTIME);
} else {
myModel.setValueAt(tmpString+" "+newTime,idx_, UTM_VIEWHISTORY_DTTIME);
}

txtPassword.setCaretPosition(0);
myModel.setValueAt(rowObj.getPassword(),idx_,UTM_PASSWORD);

// myModel.setValueAt(rowObj.getInactive(),idx_,UTM_INACTIVE);

tmpString1 ="";
tmpString = rowObj.getDtLastLogonText();
if (tmpString == null) {tmpString = "";}
if (tmpString.trim().equalsIgnoreCase(model.getRbString(UserLogDataRb,"Press New","UserLogData"))) {tmpString = "";}
tmpString = tmpString.trim();
tmpString1 = tmpString;
tmpString1 = rowObj.getTxtLastLogonTime();
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
if (tmpString.trim().length()==0){
tmpString = "";
tmpDate = null ;
} else{
try{tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception exc1) {tmpDate = null;}}
try{
tmpString = formatterStd.format(tmpDate);}
catch (Exception ex){tmpString = "";}
if (tmpString1 == null) {
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
} else {
try{
tmpDate1 = formatterTimeMedium.parse(tmpString1.trim());}
catch (Exception ex){tmpDate1 = null;}
try{newTime = formatterStdTimeWSecs.format(tmpDate1);}
catch(Exception exc){newTime = "";}
}
if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
newTime = "0" + newTime;
}
if (tmpString.equalsIgnoreCase(model.getRbString(UserLogDataRb, "Press New","UserLogData")) || tmpString.trim().length()==0){
myModel.setValueAt(" ",idx_,UTM_LASTLOGON);
} else {
myModel.setValueAt(tmpString+" "+newTime,idx_, UTM_LASTLOGON);
}

tmpString1 ="";
tmpString = rowObj.getDtFirstlogonText();
if (tmpString == null) {tmpString = "";}
if (tmpString.trim().equalsIgnoreCase(model.getRbString(UserLogDataRb,"Press New","UserLogData"))) {tmpString = "";}
tmpString = tmpString.trim();
tmpString1 = tmpString;
tmpString1 = rowObj.getTxtFirstlogonTime();
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
if (tmpString.trim().length()==0){
tmpString = "";
tmpDate = null ;
} else{
try{tmpDate = formatterDateShort.parse(tmpString);}
catch (Exception exc1) {tmpDate = null;}}
try{
tmpString = formatterStd.format(tmpDate);}
catch (Exception ex){tmpString = "";}
if (tmpString1 == null) {
newTime = model.getRbString(UserLogDataRb,"default_time","UserLogData");
} else {
try{
tmpDate1 = formatterTimeMedium.parse(tmpString1.trim());}
catch (Exception ex){tmpDate1 = null;}
try{newTime = formatterStdTimeWSecs.format(tmpDate1);}
catch(Exception exc){newTime = "";}
}
if (newTime.length() == 7 || newTime.length() == 5 || newTime.length() == 10){
newTime = "0" + newTime;
}
if (tmpString.equalsIgnoreCase(model.getRbString(UserLogDataRb, "Press New","UserLogData")) || tmpString.trim().length()==0){
myModel.setValueAt(" ",idx_,UTM_FIRSTLOGON);
} else {
myModel.setValueAt(tmpString+" "+newTime,idx_, UTM_FIRSTLOGON);
}

myModel.setValueAt(rowObj.getNotes(),idx_,UTM_NOTES);


txtSkillAdmin.setCaretPosition(0);
myModel.setValueAt(rowObj.getSkillAdmin(),idx_,UTM_SKILLADMIN);

txtSkillResearch.setCaretPosition(0);
myModel.setValueAt(rowObj.getSkillResearch(),idx_,UTM_SKILLRESEARCH);

txtSkillTyping.setCaretPosition(0);
myModel.setValueAt(rowObj.getSkillTyping(),idx_,UTM_SKILLTYPING);

txtSkillComputer.setCaretPosition(0);
myModel.setValueAt(rowObj.getSkillComputer(),idx_,UTM_SKILLCOMPUTER);

txtQuery_Classname.setCaretPosition(0);
myModel.setValueAt(rowObj.getQuery_Classname(),idx_,UTM_QUERY_CLASSNAME);

txtQuery_template.setCaretPosition(0);
myModel.setValueAt(rowObj.getQuery_template(),idx_,UTM_QUERY_TEMPLATE);

myModel.setValueAt(new Integer( rowObj.getQuery_ColCount() ),idx_,UTM_QUERY_COLCOUNT);

// myModel.setValueAt(rowObj.getQuery_Text(),idx_,UTM_QUERY_TEXT);

txtQuery_Type.setCaretPosition(0);
myModel.setValueAt(rowObj.getQuery_Type(),idx_,UTM_QUERY_TYPE);

txtQuery_Name.setCaretPosition(0);
myModel.setValueAt(rowObj.getQuery_Name(),idx_,UTM_QUERY_NAME);

txtQuery_Username.setCaretPosition(0);
myModel.setValueAt(rowObj.getQuery_Username(),idx_,UTM_QUERY_USERNAME);
btnSave_Setup("Save");
return 0;
} // end of reSetData() method

//
/** SECTION 17- CLEAR VISUAL COMPONANTS - PREPARE FOR ADD NEW ROW TO TABLE */
//
//

/** SECTION 17- CLEAR VISUAL COMPONANTS - PREPARE FOR ADD NEW ROW TO TABLE */



/**
*
* description - method to clear componants on screen - set up for an insert
*/
public void clearItUserLogData() {
int newInt = 0;
int changes = setDataUserLogData();
int errs = checkUserLogDataData();
if (errs > 0){
return;
}
if (changes > 0 ){

Object[] options = {model.getRbString(UserLogDataRb,"Yes","UserLogData"), model.getRbString(UserLogDataRb,"No","UserLogData")};
int n = JOptionPane.showOptionDialog(null,
java.text.MessageFormat.format(
model.getRbString(UserLogDataRb,"Clear without saving changes in {0}?","UserLogData"),
new String[]{"" + "UserLogData"})+"\n" +
model.getRbString(UserLogDataRb,"Fields changed =","UserLogData")+" " +changeMsg,
model.getRbString(UserLogDataRb,"Clear Message","UserLogData"),
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null,
options,
options[1]);
if (n == JOptionPane.YES_OPTION) {
// do nothing
} else {
return;
}
}
String tmpString="";
int tmpInt = 0;
updateOrInsert = "Insert";
rowObj = new dataObj();
putDataUserLogData(rowObj);
updateOrInsert = "Insert";
btnSave_Setup("Add");
return ;
} // end of clearitUserLogData() method
//
/** SECTION 18- MISCELLANEOUS METHOS & SAVE BUTTON EG JTABLE MODEL & RENDERS, SCROLL SETTINS, SAVE SETTINS, PAINT VIUALS COMPONANTS TO PRINTER */
//
//

/** SECTION 18- MISCELLANEOUS METHOS & SAVE BUTTON EG JTABLE MODEL & RENDERS, SCROLL SETTINS, SAVE SETTINS, PAINT VIUALS COMPONANTS TO PRINTER */





/**
*
* Description - method to find the visible area for a row in a JTable
*/

public static Rectangle getRowBounds(JTable table, int row)
{
//checkRow(table, row);

Rectangle result = table.getCellRect(row, -1, true);
Insets i = table.getInsets();

result.x = i.left;
result.width = table.getWidth() - i.left - i.right;

return result;
}




/**
*
* Description - Part 1 of a method to scroll a JTable until a specified row is visible
*/

public static void scrollVertically(JComponent c, Rectangle r)
{
scrollVertically(c, r.y, r.y + r.height);
}


/**
*
* Description - Part 2 of a method to scroll a JTable until a specified row is visible
*/

public static void scrollVertically(JComponent c, int from, int to)
{
Rectangle visible = c.getVisibleRect();

if (visible.y <= from && visible.y + visible.height >= to)
return;

visible.y = from;
visible.height = to - from;

c.scrollRectToVisible(visible);
}

/**
* Description - btnsave_setup - setup the save button as either save or add
* @param string typesetup - either "save" or "add"
* this determines how the button is set up/
* @returns - nothing
*/

public void btnSave_Setup (String typeSetup){
if (typeSetup.equalsIgnoreCase("Save")){
String save = model.getRbString(UserLogDataRb,"Save_Button","UserLogData");
btnSave.setName("Save_Button");
if (textInMenu.equals("Y")){
btnSave.setText(save);
} else {
btnSave.setText(null);
}
Icon ic = null;
if (iconsInMenu.equals("Y")){
ic = model.getImage("Save16.gif");
}
if (ic != null) {
btnSave.setIcon(ic);
} else {
btnSave.setText(save);
}
btnSave.setMargin(new Insets(0,0,0,0));
btnSave.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Save_Button","UserLogData"));
btnSave.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press to Save changes or additions to the database","UserLogData"));
tmpString = model.getRbString(UserLogDataRb,"btnSave_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnSave.setMnemonic((char)tmpString.charAt(0));
}
btnSave.setToolTipText(model.getRbString(UserLogDataRb, "Press to Save changes or additions to the database","UserLogData"));
btnSave.revalidate();
btnSave.doLayout();
btnSave.repaint();
} else {
String save = model.getRbString(UserLogDataRb,"Add_Button","UserLogData");
btnSave.setName("Add_Button");
if (textInMenu.equals("Y")){
btnSave.setText(save);
} else {
btnSave.setText(null);
}
Icon ic = null;
if (iconsInMenu.equals("Y")){
ic = model.getImage("Save16.gif");
}
if (ic != null) {
btnSave.setIcon(ic);
} else {
btnSave.setText(save);
}
btnSave.setMargin(new Insets(0,0,0,0));
btnSave.getAccessibleContext().setAccessibleName(model.getRbString(UserLogDataRb,"Add_Button","UserLogData"));
btnSave.getAccessibleContext().setAccessibleDescription(model.getRbString(UserLogDataRb,"Press to add a record to the database","UserLogData"));
tmpString = model.getRbString(UserLogDataRb, "btnAdd_Hotkey","UserLogData");
if (tmpString.trim().length() > 0) {
btnSave.setMnemonic((char)tmpString.charAt(0));
}
btnSave.setToolTipText(model.getRbString(UserLogDataRb,"Press to add a record to the database","UserLogData"));
btnSave.revalidate();
btnSave.doLayout();
btnSave.repaint();
}
} // end of btnSave_setup
/**
*
* Description: method to repaint jtable when its data changes
*/
public class RepaintingDataListener implements TableModelListener
{
private JTable mTable;

public RepaintingDataListener(JTable pTable)
{
this.mTable = pTable;
}
public void tableChanged(TableModelEvent e)
{
mTable.repaint();
}
}
/**
* description - mytablemodel - table model for the scrolling table
* optional code if you have a table
*/

class MyTableModel extends AbstractTableModel {
public int getColumnCount() {
if (columnHeaders == null) {
return 0;
}
return columnHeaders.length;
}

public int getRowCount() {
if (tableRs == null) {return 0;}
int oldRow = 0;
try {
oldRow = tableRs.getRow();
tableRs.last();
int rows = tableRs.getRow() ;
if (oldRow > -1 && oldRow <= rows) {tableRs.absolute(oldRow);}
return rows;
} catch (Exception ex) {return 0;}
}

public String getColumnName(int col) {
if (columnNames == null) {
return "";
}
return model.getRbString(UserLogDataRb,"jTable_column_"+columnNames[col].toLowerCase(),"UserLogData");
}

public Object getValueAt(int row, int col) {
if (tableRs == null) { return ""; }
try {
tableRs.absolute(row + 1);
return tableRs.getObject((String)(columnNames[col]));
} catch (Exception ex) {return "";}
}

/*
* jtable uses this method to determine the default renderer/
* editor for each cell. if we didn't implement this method,
* then the last column would contain text ("true"/"false"),
* rather than a check box.
*/
public Class getColumnClass(int c) {
int cc = c;
int ccc = c;
int row = 0;
try {
row = tableRs.getRow();
tableRs.absolute(1);
Class cls = tableRs.getObject((String) (columnNames[c]) ).getClass();
tableRs.absolute(row);
return cls;
} catch (Exception ex) {
return new String().getClass();
}
}

/*
* do not need to implement this method unless your table is editable.
* note: this creates a textview that pops up for textarea fields.
*/
public boolean isCellEditable(int row, int col) {
//Note that the data/cell address is constant,
//no matter where the cell appears onscreen.
// Note: The next if statement allows the Custom Text Viewer componant to View Strings and Text Fields
if (getColumnClass(col).toString().trim().equalsIgnoreCase("class java.lang.String")){
return true;
}
return false;
}

/*
* Don't need to implement this method unless your table's
* data can change.
*/
public void setValueAt(Object value, int row, int col) {
if (tableRs == null) { return ; }
try {
tableRs.absolute(row + 1);
int idx_ = tableRs.findColumn((String)(columnNames[col]));
tableRs.updateObject(idx_,value);
tableRs.updateRow();
} catch (Exception ex){
String tmpString = model.getDbName();
if (tmpString.equalsIgnoreCase("HSQL")){
System.out.println("update resultset failed (HSQL does not support updatable recordsets): " + ex); //{return null;}
} else {
System.out.println("update resultset (make changes reflect in Scrolling table) failed: " + ex); //{return null;}
}
return;
}
//With JFC/Swing 1.1 and JDK 1.2, we need to create
//an Integer from the value; otherwise, the column
//switches to contain Strings. Starting with v 1.3,
//the table automatically converts value to an Integer,
//so you only need the code in the 'else' part of this
//'if' block.
// try {
// data[row][col] = new Integer(value.toString());
// fireTableCellUpdated(row, col);
// } catch (NumberFormatException e) {
// JOptionPane.showMessageDialog(
// frame,
// "The "
// + getColumnName(col)
// + " column accepts only integer values.");
// }
// } else {
// data[row][col] = value;
// fireTableCellUpdated(row, col);
// }

// if (DEBUG) {
// System.out.println("New value of data:");
// printDebugData();
// }
}

// private void printDebugData() {
// int numRows = utm.getRowCount();
// int numCols = getColumnCount();
//
// for (int i = 0; i < numRows; i++) {
// System.out.print(" row " + i + ":");
// for (int j = 0; j < numCols; j++) {
// System.out.print(" " + data[i][j]);
// }
// System.out.println();
// }
// System.out.println("--------------------------");
// }
}//end MyTableModel



/**
* description - method to print the screen
*/

public int print (Graphics graphics, PageFormat pageFormat,
int pageIndex)
{
int screenResolution = getToolkit().getScreenResolution();
double pixelsPerPoint = (double) screenResolution / 72d;

int keepWidth = getSize().width;
int keepHeight = getSize().height;

if (pageIndex == 0)
{
// first time through - lets calculate num pages
pageWidth = (int) (pageFormat.getImageableWidth() *
pixelsPerPoint);
pageHeight = (int) (pageFormat.getImageableHeight() *
pixelsPerPoint);

setSize(pageWidth, pageHeight);
Graphics temp = graphics.create();

printAll(temp); // recalculate our preferred height

temp = null;

int newHeight = getPreferredSize().height;
if (newHeight % pageHeight == 0)
numPages = newHeight / pageHeight;
else
numPages = newHeight / pageHeight + 1;
}
else if (pageIndex >= numPages)
{
return (Printable.NO_SUCH_PAGE);
}

// make translation between pixels and points
int newXOrigin = (int) (pageFormat.getImageableX() *
pixelsPerPoint);
int newYOrigin = (int) (pageFormat.getImageableY() *
pixelsPerPoint);

setSize(pageWidth, pageHeight);

if (graphics instanceof Graphics2D)
{
Graphics2D graphics2D = (Graphics2D) graphics;
graphics2D.scale(1 / pixelsPerPoint, 1 / pixelsPerPoint);
}

graphics.translate(newXOrigin,
newYOrigin - (pageIndex * pageHeight));
graphics.setClip(0,(pageIndex * pageHeight),
pageWidth, pageHeight);

printAll(graphics);

setSize(keepWidth, keepHeight);
return (Printable.PAGE_EXISTS);
}

/**
* Description - general listener - fires of screen print.
*/

public void actionPerformed(ActionEvent e){
setBackground(Color.white);
PrinterJob printJob = PrinterJob.getPrinterJob();

printJob.setPrintable(this);
try { printJob.print(); } catch (Exception PrintException) { }
setBackground(Color.lightGray);

}

public class FractionCellRenderer extends DefaultTableCellRenderer {
public FractionCellRenderer(int integer, int fraction, int align) {
this.integer = integer; // maximum integer digits
this.fraction = fraction; // exact number of fraction digits
this.align = align; // alignment (LEFT, CENTER, RIGHT)
}

protected void setValue(Object value) {
if (value != null && value instanceof Number) {
formatter1.setMaximumIntegerDigits(integer);
formatter1.setMaximumFractionDigits(fraction);
formatter1.setMinimumFractionDigits(fraction);
setText(formatter1.format(((Number)value).doubleValue()));
} else {
super.setValue(value);
}
setHorizontalAlignment(align);
}

protected int integer;
protected int fraction;
protected int align;
protected NumberFormat formatter1 = NumberFormat.getInstance();
}//end default tableCellRenderer
public class SpecialDateCellRenderer extends DefaultTableCellRenderer {
public SpecialDateCellRenderer(java.util.Date nullDate) {
this.nullDate = nullDate;
}

protected void setValue(Object value) {
if (value != null && value instanceof java.util.Date) {
if (value.equals(this.nullDate)) {
setText(formatter3.format(this.nullDate));
}else {
setValue(formatter2.format(value));
}
} else {
super.setValue(value);
}
// setHorizontalAlignment(align);
}

protected java.util.Date nullDate;
protected SimpleDateFormat formatter2 = new SimpleDateFormat("yyyy-MM-dd");
protected SimpleDateFormat formatter3 = new SimpleDateFormat(" ");
} //end simple dateCellrender

/**
* Description - Method to save to User preferences the column order and width of Jtable
*/

public static void saveSettings(JTable table) throws BackingStoreException {
if (table != null) {
TableColumnModel tcm = table.getColumnModel();
Preferences node = Preferences.userNodeForPackage(UserLogData.class);
for(int i=0, count = tcm.getColumnCount(); i node.putInt("UserLogData.modelIndex"+i, tcm.getColumn(i).getModelIndex());
node.putInt("UserLogData.colWidth"+i, tcm.getColumn(i).getWidth());
}

node.flush();
}
}
/**
* Description - Method to Restore User preferences for column order and width of Jtable
*/

public static JTable restoreSettings(JTable table) {
// modified by GHP from the Sun Forum section PaulFMendler
// http://forum.java.sun.com/thread.jsp?forum=57&thread=449705
//JTable table = new JTable(sorter);
TableColumnModel oldtcm = table.getColumnModel();
TableColumnModel newtcm = new DefaultTableColumnModel();
int count = oldtcm.getColumnCount();
Preferences node = Preferences.userNodeForPackage(UserLogData.class);
for(int i=0; i int index = node.getInt("UserLogData.modelIndex"+i, -1);
int width = node.getInt("UserLogData.colWidth"+i, -1);
if (index == -1)
break;
newtcm.addColumn(oldtcm.getColumn(index));
newtcm.getColumn(i).setPreferredWidth(width);

}
if (newtcm.getColumnCount() == count)
table.setColumnModel(newtcm);
return table;
}

/**
* Displays a preview frame for report defined in the file specified by urlname.
* The contents of the url are parsed and the report is fed into a new PreviewPane.
* The given TableModel is assigned to the report as report data source.
*


* If the report contains external references in specified in relative urls, the urls
* are loaded using the reports parent directory as content base.
*
* @param urlname the filename from where to load the report
* @param data the datamodel for the report
*/
public void preview(String urlname, final TableModel data, String querytitle)
{
URL xmlPath1;
String xmlPath2, xmlPath3;
String queryTitle = querytitle;
xmlPath1 =
UserLogData.class.getProtectionDomain().getCodeSource().getLocation();
xmlPath2 = xmlPath1.toString();
xmlPath2 = xmlPath2.substring(5);
if (xmlPath2.substring(0, 1).equals("/")) {
//
} else {
xmlPath2 = "/" + xmlPath2;
}
xmlPath2 = xmlPath2.replaceAll("%20", " ");

System.out.println("path = "+ xmlPath2);
if (xmlPath2.toLowerCase().indexOf(".jar") > -1){
System.out.println("in the .jar section");
xmlPath2 = xmlPath2.substring(0,xmlPath2.lastIndexOf("/"));
System.out.println("modified path = "+ xmlPath2);
}
xmlPath2 = xmlPath2 + "Templates/";
//urlname = xmlPath2 + urlname;
if (urlname.toLowerCase().indexOf(".xml")== -1){
urlname = urlname + ".xml";
}

File tmpFile = new File(xmlPath2, urlname);
String tString = model.getRbString(UserLogDataRb,"Report definition file missing:","UserLogData");
tString = tString+" "+ xmlPath2 + urlname;
if (tmpFile.exists()){
System.out.println("File exists: " + xmlPath2 + urlname);
} else {
JOptionPane.showMessageDialog(
null,
tString,
model.getRbString(UserLogDataRb
,"Message","UserLogData"),
JOptionPane.ERROR_MESSAGE);
return;

}
//URL in = getClass().getResource(urlname);
URL in;
try {
in = tmpFile.toURL();
} catch (Exception ex) {in = null;
System.out.println("Error converting from File to URL:"+" "+ ex);
return;
}
if (in == null)
{
xmlPath2 = xmlPath2.substring(1);
in = getClass().getResource(xmlPath2 + urlname);
}
if (in == null)
{
JOptionPane.showMessageDialog(this,
MessageFormat.format(model.getRbString(UserLogDataRb,"report.definitionnotfound","UserLogData")+": "+ xmlPath2 + urlname,
new Object[]{urlname}),
model.getRbString(UserLogDataRb,"Error","UserLogData"), JOptionPane.ERROR_MESSAGE);
return;
}

System.out.println("Processing Report: " + in);
final ReportGenerator gen = ReportGenerator.getInstance();

try
{
final JFreeReport report1 = gen.parseReport(in, in);
if (report1 == null)
{
JOptionPane.showMessageDialog(this,
MessageFormat.format(model.getRbString(UserLogDataRb,"report definition null","UserLogData"),
new Object[]{urlname}),
model.getRbString(UserLogDataRb,"Error","UserLogData"), JOptionPane.ERROR_MESSAGE);
return;
}

report1.setData(data);
report1.setProperty("user_name",model.getCurrentUser());
report1.setProperty("query_title",queryTitle);
String rptName = "";
com.halepringle.standard.GeneralDialog gd =
new com.halepringle.standard.GeneralDialog(
null,
model.getRbString(UserLogDataRb, "Select", "UserLogData"),
"*IGNORE*",
model.getRbString(UserLogDataRb, "Cancel", "UserLogData"),
model.getRbString(
UserLogDataRb,
"The modified text you enter replaces the default value",
"UserLogData"),
"*IGNORE*",
model.getRbString(
UserLogDataRb,
"Cancel the operation",
"UserLogData"),
model.getRbString(
UserLogDataRb,
"Enter a secondary title for this report",
"UserLogData"),
model.getRbString(
UserLogDataRb,
"Use this title to describe why this report was run (e.g. 'Finished Items Report'.",
"UserLogData"),
rptName,
"A",
model.getRbString(
UserLogDataRb,
"Enter Report Description",
"UserLogData"));
gd.pack();

// gd.setLocationRelativeTo(GeneralDialog.this);
Dimension screenDim =
Toolkit.getDefaultToolkit().getScreenSize();
gd.setLocation(
(screenDim.width - 350) / 2,
(screenDim.height - 159) / 2);

gd.setVisible(true);
String outputVar;
String s = gd.getValidatedText();
if (s != null) {
outputVar = s;
// System.out.println(s);
} else {
//outputVar = "**Leave as is**";
outputVar = "**Cancel**";
}
if (outputVar.equals("**Leave as is**")) {
// do whatever it take to leave value as it was
//outputVar = query;
} else if (outputVar.equals("**Cancel**")) {
// do something
return;
} else {
// do something to change value to new value
}
System.out.println("Data output = " + outputVar);
rptName = outputVar;
report1.setProperty("report_title2",rptName);

//report1.getReportConfiguration().setStrictErrorHandling(false); // DG
final PreviewFrame frame1 = new PreviewFrame(report1);
frame1.setDefaultCloseOperation(frame1.DISPOSE_ON_CLOSE);
frame1.pack();
RefineryUtilities.positionFrameRandomly(frame1);
frame1.setVisible(true);
frame1.requestFocus();
}
catch (Exception e)
{
model.showErrorOccurred();

System.out.println("report.definitionfailure" + e);
}
}
//
/** SECTION 19- BTNSAVE - DO INSERT or CHECK THAT ROW HASN'T CHANGED DURING EDIT AND IF OKAY DO UPDATE */
//
//

/** SECTION 19- BTNSAVE - DO INSERT or CHECK THAT ROW HASN'T CHANGED DURING EDIT AND IF OKAY DO UPDATE */



/**
* Description - Save Button action
* If ID is zero insert a new row
* If ID is not zero, check that the row still exists
* with the same lastChangedDate as it had when this edit started.
* If the row is not there, notify the users that they must
* redo their changes (avoid overwriting - multiuser issues)
* If the row is still there with same lastChangedDate - update and
* change the lastChagned Date to now.
*/

public void btnSaveDoit(){
// if the ID is 0, we must be in insert mode
// First check if user had add or edit rights
if (rowObj.getUser_id() == 0) {
if (!addRights) {
JOptionPane.showMessageDialog(frame,
model.getRbString(UserLogDataRb,"NOTICE - Your account does not have Add rights to this screen","UserLogData"), model.getRbString(UserLogDataRb,"Rights Issue","UserLogData"),
JOptionPane.INFORMATION_MESSAGE);

return;
}
} else {
if (!editRights) {
JOptionPane.showMessageDialog(frame,
model.getRbString(UserLogDataRb,"NOTICE - Your account does not have Edit rights to this screen","UserLogData"),model.getRbString(UserLogDataRb,"Rights Issue","UserLogData"),
JOptionPane.INFORMATION_MESSAGE);

return;}
}
int changes = setDataUserLogData();
int errs = checkUserLogDataData();
//Note: if errs !=0 there would have been error messages telling what to do
if (errs == 0) {
calendar = java.util.Calendar.getInstance();
date = calendar.getTime();
String longNewDate = formatterTsStd.format(date);
String newDateOnlySave = formatterDateShort.format(date)+" ";
String newTimeOnlySave = formatterTimeMedium.format(date);
if (newTimeOnlySave.length() == 7 || newTimeOnlySave.length() == 5 || newTimeOnlySave.length() == 10){
newTimeOnlySave = "0" + newTimeOnlySave;
}
newDateOnlySave = newDateOnlySave.substring(0,10);
// System.out.println("date time right now in SQL Std fmt: "+longNewDate);
// System.out.println("date right now in save fmt: "+newDateOnlySave);
// System.out.println("time right now in save fmt: "+newTimeOnlySave);
// if the ID is greater than 0, we must be in Update mode
if (rowObj.getUser_id() > 0) {
if (changes > 0) {
newTableRow = 0; // make sure the ADD id is set to zero sinze we are doing an update
// **** NOTE This is a sample - it will vary from table to table
// **** This part of the sample tests for multiple users updating the same record
// String docid = Integer.toString(intDocid.getValue()).trim()+" ";
// docid = docid.substring(0,6);
// docid = docid.trim();
// String tmpString = "clientnumber = "+user_id.toString() +" and docid = "+docid;
String oldLastChangedBy = rowObj.getLastchangedby().trim();
String oldLastChangedDateText = rowObj.getDtLastchangeddateText().trim();
String oldLastChangedDateTime = rowObj.getTxtLastchangeddateTime().trim();
java.util.Date oldTime = null;
// GHP comment out at some point
// System.out.println("saved = !"+oldLastChangedBy.trim()+oldLastChangedDateText.trim()
// + " " + oldLastChangedDateTime+"!");
java.util.Date oldDate = null;
try {
oldDate = formatterDateShort.parse(oldLastChangedDateText);
} catch (Exception ex) {oldDate = null;};
// System.out.println("old date converted to date: " + oldDate);
try {
oldTime = formatterTimeMedium.parse(oldLastChangedDateTime);
} catch (Exception ex) {oldTime = null;};
// System.out.println("old Time converted to date/time: " + oldTime);
String oldLastDate ="";
try {
oldLastDate = formatterStd.format(oldDate); }
catch (Exception ex) {oldLastDate=" ";}
String oldLastTime = "";
try {
oldLastTime = formatterStdTimeWSecs.format(oldTime); }
catch (Exception ex) {oldLastTime="";}
// **** NOTE This is a sample - it will vary from table to table
// **** This example needs a client number and a document number to update a specific row
// **** You would need to go into Model.java and change the UpdateTable() to take four parameters
// String docid = Integer.toString(intDocid.getValue()).trim()+" ";
// docid = docid.substring(0,6);
// docid = docid.trim();
oldLastDate = oldLastDate.substring(0,10);
// System.out.println("new date: "+longNewDate);
// System.out.println("Date used in query: "+oldLastDate+" " + oldLastTime);
// utm.updateTable("user_id",Integer.toString(rowObj.getUser_id()), docid, update_UserLogData);
// System.out.println("new date: "+longNewDate);

update_UserLogData = update_UserLogData + ", lastchangeddate = {ts '"+longNewDate+"'} ";
update_UserLogData = update_UserLogData + ", lastchangedby = '"+model.getCurrentUser()+"'";
if (oldLastDate.trim().length() == 0) {
utm.updateTable( Integer.toString(rowObj.getUser_id()), update_UserLogData, "user_id", null,null);
} else {
utm.updateTable( Integer.toString(rowObj.getUser_id()), update_UserLogData, "user_id", "lastchangeddate", "{ts '" + oldLastDate+" " + oldLastTime + "'}" );
}
utm.fire();
int count = utm.getRowCount();
if (count == 0) {
System.out.println("query date/time that failed: "+ oldLastDate+" " + oldLastTime );
JOptionPane.showMessageDialog(frame,
"NOTICE - CHANGE ABORTED!! (Sorry for the inconveinience) "
+ "\n"+ "The record you were editing was changed by someone else while you were editing it. "
+ "\n"+ "To avoid losing their changes you must enter yours again.", "Change aborted ",
JOptionPane.INFORMATION_MESSAGE);

getDataUserLogDataByID(user_id.getValue(), null, null);
updateOrInsert = "Update";
return;

}
dtLastchangeddateText.setText(newDateOnlySave);
newRowObj.setDtLastchangeddateText( newDateOnlySave );
txtLastchangeddateTime.setText(newTimeOnlySave);
newRowObj.setTxtLastchangeddateTime( newTimeOnlySave );
//System.out.println("old rowObj Date/Time");
//System.out.println(rowObj.getDtLastchangeddateText());
//System.out.println(rowObj.getTxtLastchangeddateTime());
txtLastchangedby.setText(model.getCurrentUser());
newRowObj.setLastchangedby( model.getCurrentUser() );
int idx__ = 0;
try {idx__ =table.getSelectedRow();}
catch (Exception ex) {idx__ = 0;}
// idx__ = sorter.map(idx__);
if (idx__ < 0) {idx__ = 0;};
// **** NOTE reSetUserLogDataData(idx_) updates the "hld" values and an optional table
// **** NOTE - This also writes the current row into the copy of the resultSet
// **** being used to drive the JTable. Then the table is rebuilt.
// getDataUserLogDataByID(0, null);
rowObj = (dataObj)newRowObj.clone();
//System.out.println("new rowObj Date/Time");
//System.out.println(rowObj.getDtLastchangeddateText());
//System.out.println(rowObj.getTxtLastchangeddateTime());
//System.out.println("old newRowObj Date/Time");
//System.out.println(newRowObj.getDtLastchangeddateText());
//System.out.println(newRowObj.getTxtLastchangeddateTime());
if (model.getAllowsCONCUR_UPDATABLECursor()){
reSetUserLogDataData(idx__);
}
//reset focus to the row that was just updated
//Note: The comment out code that follows was replced by a tablechanged listener
// newTableRow = rowObj.getUser_id();
// createTable();
// String tmpString = "";
// try {
// oldDisplayRow = 0;
// goingBack = true;
// // note: if a row is already selected, this sets off the setData... any changes? method
// table.setRowSelectionInterval(0,0);
// goingBack = false;
// Integer tmpINT = (Integer) (table.getValueAt(0,UTM_USER_ID));
// int tmpInt = tmpINT.intValue();
// // getDataUserLogDataOneRow(tmpInt);
// // getDataUserLogData(0,0);
//
// } catch (Exception ex) {
// model.showWarningOcurred(model.getRbString(UserLogDataRb,"Error getting row number for lowest ID","UserLogData"));
// oldDisplayRow = -1;}
// double tmp = 0.0;
//
// // if (item_Id.getValue() > 0) {
// // getDataUserLogDataByID(item_Id.getValue(), null);
// updateOrInsert = "Update";
// // }
// buildLayout();
// UserLogData.this.doLayout();
// if (newTableRow > 0) {
// int maxRow = table.getRowCount();
// int tmpInt = -1;
// Object tmpObj;
// for (int i=0; i < maxRow; i++){
// tmpObj = table.getValueAt(i, UTM_USER_ID);
// if (tmpObj == null){
// tmpString = "-1";
// } else {
// tmpString = tmpObj.toString();
// };
// tmpString = tmpString.trim();
// try {
// tmpInt = Integer.parseInt(tmpString);
// } catch (Exception ex) {
// tmpInt = -1;
// }
// if (tmpInt == -1 ){
// maxRow = 0;
// break;
// }
// if ( tmpInt == newTableRow){
// maxRow = i;
// break;
// }
// }
// if (tmpInt != -1) {
// // make the row just added the active row - highlight it
// table.setRowSelectionInterval(maxRow, maxRow);
// oldDisplayRow = maxRow;
// // make sure the row is visible
// table.repaint();
// tableScrollPane.repaint();
// scrollVertically(table, getRowBounds(table, maxRow));
// }
// }
// if(newTableRow == 0) { //else it is already painted

UserLogData.this.repaint();

// table.repaint();
// tableScrollPane.repaint();
// };
newTableRow = 0;
// //
} //changes > 0
}else{ //START THE INSERT SECTION HERE
// **** NOTE This is a sample - it will vary from table to table
// **** This example assumes each client has documnts with doc_id 1,2,3
// **** It finds the current maximum for this client and bumps it by one for the insert
// **** There would need to a tableMaxDocIDQuery in Model.java
// utm.tableMaxDocidQuery();
// int maxRow = utm.getMaxRow();
// maxRow = maxRow + 1;
newId = 0;
vars_UserLogData = vars_UserLogData + ", lastchangeddate";
values_UserLogData = values_UserLogData+ ", {ts '"+longNewDate+"'} ";
vars_UserLogData = vars_UserLogData + ", lastchangedby";
values_UserLogData = values_UserLogData + ", '"+model.getCurrentUser()+"'";
utm.insertTable(vars_UserLogData, values_UserLogData, "user_id", "lastchangeddate", "{ts '" + longNewDate + "'}", "lastchangedby", model.getCurrentUser() );
utm.fire();
newId = utm.getIdNumber();
// get the data again - including the new row
getDataUserLogDataByID(rowObj.getUser_id(), null, null);
updateOrInsert = "Update";
btnSave_Setup("Save");
}
} // end of errs = 0
};//end of save button nethod
//
/** SECTION - BTNSAVE - DO INSERT or CHECK THAT ROW HASN'T CHANGED DURING EDIT AND IF OKAY DO UPDATE */
//
/** Description - Method used to create rowObj and newRowObj
* rowObj - contains all data before edits
* newRowObj - contains all data after edits
* Comparing the two lets us determinte what changed.
* Also contains getters and settsrs for all fields
*/
public class dataObj implements Cloneable {
int tmpInt = 0;
String tmpString = "";
// HSQL sometimes puts true/false in default value for numbers -these are overwritten
private int user_id = 0;
private String firstName = "''";
private String middleName = "";
private String lastname = "''";
private String login_name = "''";
private String partTime = "PartTime";
private String address1 = "''";
private String address2 = "''";
private String city = "";
private String state = "";
private String zip = "";
private String email = "";
private String officephone = UserLogDataRb.getString("telephone_default");
private String homePhone = UserLogDataRb.getString("telephone_default");
private double hireAge = 0.0;
private String userphotoUrl = "";
private String resumeUrl = "";
private String title = "";
private String gender = "";
private String department = "''";
private String authorityGroup1 = "";
private String authorityGroup2 = "";
private String dtStart_DateText = "";
private String wp_path = "";
private String brow_path = "";
private String ipaddress = "000.000.000.000";
private double category = 0.0;
private String ssn = "000-00-0000";
private String loginTime = "";
private String logfld = "";
private String ipAdds = "";
private int logon_count = 0;
private String userLock = "";
private int table_Updt = 0;
private String mach_name = "''";
private String dtXml_DtTimeText = "";
private String txtXml_DtTimeTime = "";
private String dtXml_DateText = "";
private String dtLastchangeddateText = "";
private String txtLastchangeddateTime = "";
private String lastchangedby = "";
private int screen0 = 7;
private int screen1 = 7;
private int screen2 = 7;
private int screen3 = 7;
private int screen4 = 7;
private int screen5 = 7;
private int screen6 = 7;
private int screen7 = 7;
private int screen8 = 7;
private int screen9 = 7;
private int screen10 = 7;
private String dtViewhistory_dttimeText = "";
private String txtViewhistory_dttimeTime = "";
private String password = "''";
private String inactive = "false" ;
private String dtLastLogonText = "";
private String txtLastLogonTime = "";
private String dtFirstlogonText = "";
private String txtFirstlogonTime = "";
private String notes = "";
private String skillAdmin = "";
private String skillResearch = "";
private String skillTyping = "";
private String skillComputer = "";
private String query_Classname = "";
private String query_template = "";
private int query_ColCount = 0;
private String query_Text = "";
private String query_Type = "";
private String query_Name = "";
private String query_Username = "";


void setUser_id(int ii){
this.user_id = ii;
}
int getUser_id(){
return this.user_id;
}
void setFirstName(String str){
this.firstName = str;
}
String getFirstName(){
return this.firstName;
}
void setMiddleName(String str){
this.middleName = str;
}
String getMiddleName(){
return this.middleName;
}
void setLastname(String str){
this.lastname = str;
}
String getLastname(){
return this.lastname;
}
void setLogin_name(String str){
this.login_name = str;
}
String getLogin_name(){
return this.login_name;
}
void setPartTime(String str){
this.partTime = str;
}
String getPartTime(){
return this.partTime;
}
void setAddress1(String str){
this.address1 = str;
}
String getAddress1(){
return this.address1;
}
void setAddress2(String str){
this.address2 = str;
}
String getAddress2(){
return this.address2;
}
void setCity(String str){
this.city = str;
}
String getCity(){
return this.city;
}
void setState(String str){
this.state = str;
}
String getState(){
return this.state;
}
void setZip(String str){
this.zip = str;
}
String getZip(){
return this.zip;
}
void setEmail(String str){
this.email = str;
}
String getEmail(){
return this.email;
}
void setOfficephone(String str){
this.officephone = str;
}
String getOfficephone(){
return this.officephone;
}
void setHomePhone(String str){
this.homePhone = str;
}
String getHomePhone(){
return this.homePhone;
}
void setHireAge(double dbl){
this.hireAge = dbl;
}
double getHireAge(){
return this.hireAge;
}
void setUserphotoUrl(String str){
this.userphotoUrl = str;
}
String getUserphotoUrl(){
return this.userphotoUrl;
}
void setResumeUrl(String str){
this.resumeUrl = str;
}
String getResumeUrl(){
return this.resumeUrl;
}
void setTitle(String str){
this.title = str;
}
String getTitle(){
return this.title;
}
void setGender(String str){
this.gender = str;
}
String getGender(){
return this.gender;
}
void setDepartment(String str){
this.department = str;
}
String getDepartment(){
return this.department;
}
void setAuthorityGroup1(String str){
this.authorityGroup1 = str;
}
String getAuthorityGroup1(){
return this.authorityGroup1;
}
void setAuthorityGroup2(String str){
this.authorityGroup2 = str;
}
String getAuthorityGroup2(){
return this.authorityGroup2;
}
void setDtStart_DateText(String dt){
this.dtStart_DateText = dt;
}
String getDtStart_DateText(){
return this.dtStart_DateText;
}
void setWp_path(String str){
this.wp_path = str;
}
String getWp_path(){
return this.wp_path;
}
void setBrow_path(String str){
this.brow_path = str;
}
String getBrow_path(){
return this.brow_path;
}
void setIpaddress(String str){
this.ipaddress = str;
}
String getIpaddress(){
return this.ipaddress;
}
void setCategory(double dbl){
this.category = dbl;
}
double getCategory(){
return this.category;
}
void setSsn(String str){
this.ssn = str;
}
String getSsn(){
return this.ssn;
}
void setTxtLoginTimeTime (String str){
this.loginTime = str;
}
String getTxtLoginTimeTime (){
return this.loginTime;
}
void setLogfld(String str){
this.logfld = str;
}
String getLogfld(){
return this.logfld;
}
void setIpAdds(String str){
this.ipAdds = str;
}
String getIpAdds(){
return this.ipAdds;
}
void setLogon_count(int ii){
this.logon_count = ii;
}
int getLogon_count(){
return this.logon_count;
}
void setUserLock(String str){
this.userLock = str;
}
String getUserLock(){
return this.userLock;
}
void setTable_Updt(int ii){
this.table_Updt = ii;
}
int getTable_Updt(){
return this.table_Updt;
}
void setMach_name(String str){
this.mach_name = str;
}
String getMach_name(){
return this.mach_name;
}
void setDtXml_DtTimeText(String dt){
this.dtXml_DtTimeText = dt;
}
String getDtXml_DtTimeText(){
return this.dtXml_DtTimeText;
}
void setTxtXml_DtTimeTime(String dt){
this.txtXml_DtTimeTime = dt;
}
String getTxtXml_DtTimeTime(){
return this.txtXml_DtTimeTime;
}
void setDtXml_DateText(String dt){
this.dtXml_DateText = dt;
}
String getDtXml_DateText(){
return this.dtXml_DateText;
}
void setDtLastchangeddateText(String dt){
this.dtLastchangeddateText = dt;
}
String getDtLastchangeddateText(){
return this.dtLastchangeddateText;
}
void setTxtLastchangeddateTime(String dt){
this.txtLastchangeddateTime = dt;
}
String getTxtLastchangeddateTime(){
return this.txtLastchangeddateTime;
}
void setLastchangedby(String str){
this.lastchangedby = str;
}
String getLastchangedby(){
return this.lastchangedby;
}
void setScreen0(int ii){
this.screen0 = ii;
}
int getScreen0(){
return this.screen0;
}
void setScreen1(int ii){
this.screen1 = ii;
}
int getScreen1(){
return this.screen1;
}
void setScreen2(int ii){
this.screen2 = ii;
}
int getScreen2(){
return this.screen2;
}
void setScreen3(int ii){
this.screen3 = ii;
}
int getScreen3(){
return this.screen3;
}
void setScreen4(int ii){
this.screen4 = ii;
}
int getScreen4(){
return this.screen4;
}
void setScreen5(int ii){
this.screen5 = ii;
}
int getScreen5(){
return this.screen5;
}
void setScreen6(int ii){
this.screen6 = ii;
}
int getScreen6(){
return this.screen6;
}
void setScreen7(int ii){
this.screen7 = ii;
}
int getScreen7(){
return this.screen7;
}
void setScreen8(int ii){
this.screen8 = ii;
}
int getScreen8(){
return this.screen8;
}
void setScreen9(int ii){
this.screen9 = ii;
}
int getScreen9(){
return this.screen9;
}
void setScreen10(int ii){
this.screen10 = ii;
}
int getScreen10(){
return this.screen10;
}
void setDtViewhistory_dttimeText(String dt){
this.dtViewhistory_dttimeText = dt;
}
String getDtViewhistory_dttimeText(){
return this.dtViewhistory_dttimeText;
}
void setTxtViewhistory_dttimeTime(String dt){
this.txtViewhistory_dttimeTime = dt;
}
String getTxtViewhistory_dttimeTime(){
return this.txtViewhistory_dttimeTime;
}
void setPassword(String str){
this.password = str;
}
String getPassword(){
return this.password;
}
void setInactive(String str){
this.inactive = str;
}
String getInactive(){
return this.inactive;
}
void setDtLastLogonText(String dt){
this.dtLastLogonText = dt;
}
String getDtLastLogonText(){
return this.dtLastLogonText;
}
void setTxtLastLogonTime(String dt){
this.txtLastLogonTime = dt;
}
String getTxtLastLogonTime(){
return this.txtLastLogonTime;
}
void setDtFirstlogonText(String dt){
this.dtFirstlogonText = dt;
}
String getDtFirstlogonText(){
return this.dtFirstlogonText;
}
void setTxtFirstlogonTime(String dt){
this.txtFirstlogonTime = dt;
}
String getTxtFirstlogonTime(){
return this.txtFirstlogonTime;
}
void setNotes(String str){
this.notes = str;
}
String getNotes(){
return this.notes;
}
void setSkillAdmin(String str){
this.skillAdmin = str;
}
String getSkillAdmin(){
return this.skillAdmin;
}
void setSkillResearch(String str){
this.skillResearch = str;
}
String getSkillResearch(){
return this.skillResearch;
}
void setSkillTyping(String str){
this.skillTyping = str;
}
String getSkillTyping(){
return this.skillTyping;
}
void setSkillComputer(String str){
this.skillComputer = str;
}
String getSkillComputer(){
return this.skillComputer;
}
void setQuery_Classname(String str){
this.query_Classname = str;
}
String getQuery_Classname(){
return this.query_Classname;
}
void setQuery_template(String str){
this.query_template = str;
}
String getQuery_template(){
return this.query_template;
}
void setQuery_ColCount(int ii){
this.query_ColCount = ii;
}
int getQuery_ColCount(){
return this.query_ColCount;
}
void setQuery_Text(String str){
this.query_Text = str;
}
String getQuery_Text(){
return this.query_Text;
}
void setQuery_Type(String str){
this.query_Type = str;
}
String getQuery_Type(){
return this.query_Type;
}
void setQuery_Name(String str){
this.query_Name = str;
}
String getQuery_Name(){
return this.query_Name;
}
void setQuery_Username(String str){
this.query_Username = str;
}
String getQuery_Username(){
return this.query_Username;
}

public Object clone() {
return this;
}
}
/*
Description Mouse Listener attached to jTable Column Headers (was in sorter class)
*/
public void addMouseListenerToHeaderInTable(JTable table,com.halepringle.standard.JxFrame jfram, JPanel thispanel,com.halepringle.standard.Model mod,int tablecolumncount) {
final JTable tableView = table;
final com.halepringle.standard.JxFrame myFrame = jfram;
final JPanel thisPanel = thispanel;
final com.halepringle.standard.Model model = mod;
tableView.setColumnSelectionAllowed(false);
int tabelColumnCount = tablecolumncount;
MouseAdapter listMouseListener = new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
TableColumnModel columnModel = tableView.getColumnModel();
// which column (counting left to right)?
int viewColumn = columnModel.getColumnIndexAtX(e.getX());
// which original column (before drag and drop) is not in positiong X?
int column = tableView.convertColumnIndexToModel(viewColumn);
String columnName = tableView.getColumnName(viewColumn);
columnName = columnNames[column];
System.out.println("Column Clicked on = "+ columnName);
String currDir = "A";
setCurrOrderByColumn(columnName);

if (e.getClickCount() == 1 && column != -1) {
// int shiftPressed = e.getModifiers()&InputEvent.SHIFT_MASK;
//CODE added to make one click on the header descending
// and the next ascending - added by Hale Pringle 2/2003
if (currDirection == null) {
int colCount = tableColumnCount;
currDirection = new String[colCount];
for (int i = 0; i < colCount; i++){
currDirection[i] = "D";}
}
if (currDirection[column].equals("D")){
currDirection[column] = "A";
currDir = "A";
}else{
currDirection[column] = "D";
currDir = "D";
}
//NOTE: Changing the cursor does NOT work yet in sorter it is too far down. I'm letting it go for now. Works here
if (myFrame != null){
com.halepringle.standard.CursorToolkitTwo.startWaitCursor(myFrame.getRootPane());
tableView.setCursor( new Cursor(Cursor.WAIT_CURSOR));
} else {
}
user_id.setValue(0);
getDataUserLogDataByID( user_id.getValue(),currentQuery,currDir, "YES");
tableView.getModel().addTableModelListener(new
RepaintingDataListener(tableView));
tableView.getAccessibleContext().setAccessibleDescription(
model.getRbString(UserLogDataRb,"Table of UserLogData Data"," UserLogData"));
if (myFrame != null){
com.halepringle.standard.CursorToolkitTwo.stopWaitCursor(myFrame.getRootPane());
tableView.setCursor( new Cursor(Cursor.DEFAULT_CURSOR));
}
}
}
};
JTableHeader th = tableView.getTableHeader();
th.addMouseListener(listMouseListener);
}
public void setCurrOrderByColumn(String str){
currOrderByColumn = str;
}
public void setCurrentDirection(String[] str){
currDirection = str;
}
public String[] getCurrentDirection(){
return currDirection;
}
//
/** SECTION 20- MAIN METHOD - USED TO RUN CLASS STANDALONE - RESTORES SCREEN SIZE & PLAF TO USER PREFERENCE */
//
//

/** SECTION 20- MAIN METHOD - USED TO RUN CLASS STANDALONE - RESTORES SCREEN SIZE & PLAF TO USER PREFERENCE */



/**
* Description - Main method used to test the moduel
*/


public static void main(String args[]) {
boolean boolTestLowVision = false;// recommended to test
boolean boolTestSpanish = false; // recommended to test
boolean boolTestAssistive = true; // recommended to test
boolean boolTestFont = false; // not recommended - you should try to use the
// system font of the user. If you must - here it is.
if (boolTestLowVision) {
try {
UIManager.setLookAndFeel("com.halepringle.standard.LowVisionMetalLookAndFeel");
SwingUtilities.updateComponentTreeUI(paneUtm);
SwingUtilities.updateComponentTreeUI(spUtm);
String tmpText1 ="";
try {
tmpText1 = UserLogDataRb.getString("You will need to Right Click and choose LOW VISION PLAF to test");
} catch (Exception ex) {tmpText1 = "You will need to Right Click and choose LOW VISION PLAF to test";}
String tmpText2 ="";
try {
tmpText2 = UserLogDataRb.getString("TEST PLAF");
} catch (Exception ex) {tmpText2 = "TEST PLAF";}
JOptionPane.showMessageDialog(null,
tmpText1, tmpText2,
JOptionPane.ERROR_MESSAGE);


} catch (Exception exc) {
System.out.println("Failed loading Low Vision Metal Look and Feel");
exc.printStackTrace(System.out);
}
}
Locale loc;
if (boolTestSpanish) {
loc = new Locale("es"); // es for spanish se {
} else {
loc = new Locale("us"); // es for spanish
}
Locale.setDefault(loc);
UserLogDataRb = java.util.ResourceBundle.getBundle("UserLogDataRb",loc);

Font font = new Font("Times"/*#Frozen*/, Font.PLAIN, 12);

JButton fntButton = new JButton();
Font fJB = fntButton.getFont();

Font fLucida = new Font("Serif",
fJB.getStyle(),
fJB.getSize() );
if (boolTestFont) {
jFutm.setFont(fLucida);
}
com.halepringle.standard.Model mod;
com.halepringle.standard.DBMaster dbc;
mod = new com.halepringle.standard.Model();
if (boolTestFont) {
mod.propagateFont(jFutm, fLucida);
// Note: Example sets tooltips to a different font
UIManager.put("ToolTip.font",font);
// Uncomment this to see a list of all available fonts.
//String fontList[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
// for (int ii = 0; ii < fontList.length; ii++) {
// System.out.println(fontList[ii]);
// }
}

String tmpText3 ="";
try {
tmpText3 = UserLogDataRb.getString("DBMaster exited with an IO Exception");
} catch (Exception ex) {tmpText3 = "DBMaster exited with an IO Exception";}
try {
dbc = new com.halepringle.standard.DBMaster(mod);
}
catch (IOException excp) {System.out.println(tmpText3);};
try {Thread.sleep(3500);} catch (Exception excp) {};
String user = mod.getUser();

logger = mod.getLogger();
logger.info("UserLogData Started by: " + user);

// uld.setLocale(loc);
// NOTE: by leaving this in, your users will be able to scroll to see all of the
// screen if they are using a very small screen size (640 x 480 or less for example)
// or if they are using a very large default font size (like the LowVisionMetalLookAndFeel)
//

JxFrame Setup - size and location on screen





// XXXX NOTEs about copying portions of this main method to your menu in order to call this JPanel
// 1. You will need to uncomment the next four static declaration and
// put them in the main declaration section of your application.
// The jFutm needs to be globally visible so that the WindowListener
// can null it out when it closes

// 2. You can start from here and copy everything down to // **** end copy here ****

// static public com.halepringle.standard.JxFrame jFutm= new com.halepringle.standard.JxFrame();
// static JPanel paneUtm;
// static JScrollPane spUtm;
// static Preferences UserLogDataPrefs;
// The following should already be there. It must appear once.
// static Preferences JGuiGenPrefs;
// The following should already be there. It pops up a screen to test for assistive helps
// boolean boolTestAssistive = true; // recommended to test

// JPanel setup starts here
// If you want this panel to edit one Row, call the panel with that ID
// Calling it with an ID = 0 (the default) tells it to obtain all rows
// obtain the current default PLAF
LookAndFeel oldLF = UIManager.getLookAndFeel();
// Set the PLAF the user existed with last time
JGuiGenPrefs = Preferences.systemNodeForPackage(com.halepringle.src.UserLogData.class);
String tmpLF = oldLF.getClass().toString();
// System.out.println("Default PLAF = "+tmpLF);
tmpLF = JGuiGenPrefs.get("Look and Feel", tmpLF.trim());
tmpLF = tmpLF.substring(tmpLF.indexOf(" "));

// System.out.println("Tried to install PLAF = "+tmpLF.trim());
// Set the PLAF to the PLAF the user set last time (or the default)
try {
UIManager.setLookAndFeel(tmpLF.trim());
} catch (Exception ex) {
System.out.println("Set Look and Feel Failed");}

com.halepringle.standard.MutableInteger tableId = new com.halepringle.standard.MutableInteger(0);
//
// THIS IS THE MAIN CALL TO THE APPLICATION
//
if (jFutm == null) {
jFutm= new com.halepringle.standard.JxFrame();
}
jFutm.setContentPane( spUtm = new JScrollPane(
paneUtm = new com.halepringle.src.UserLogData(jFutm, mod, tableId),
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED
)
);
// set width dynamically based upon screen size
Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
int w = screenSize.width ;
int h = screenSize.height ;

UserLogDataPrefs = Preferences.userNodeForPackage(com.halepringle.src.UserLogData.class);
int jFWidth = UserLogDataPrefs.getInt("SCREEN_WIDTH", w/2);
// System.out.println("Read Screen_Width = " + jFWidth);
int jFHeight= UserLogDataPrefs.getInt("SCREEN_HEIGHT", 3000);
// System.out.println("Read Screen_Height = " + jFHeight);
// for testing force to 3000 - this gives us room to scroll
// XXXXOnce you have modified the buildLayout() method to stay within one screen, you can
// modify this to a more reasonable height
jFHeight = 3000;
paneUtm.setSize(jFWidth,jFHeight);
jFutm.setSize(jFWidth,jFHeight);
w = (screenSize.width - jFutm.getWidth()) /2 ;
h = (screenSize.height - jFutm.getHeight())/2;
if (h < 0) {h = 0;}
jFWidth = UserLogDataPrefs.getInt("SCREEN_X", w);
// System.out.println("Read Screen_X = " + jFWidth);

jFHeight= UserLogDataPrefs.getInt("SCREEN_Y", h);
// System.out.println("Read Screen_Y = " + jFHeight);

jFutm.setLocation(jFWidth,jFHeight);

// Comment out the next line if you want to do this manually. Otherwise it gets the value from the GplCmsIni.xml file
boolTestAssistive = mod.getDisplayAssistiveDemo();
if (boolTestAssistive) {
new com.halepringle.standard.AssistiveExample();
}
//

JxFrame Window Listener - set frame to null when done



// NOTE This is required - a listener inside the class will dispose
// of the window if it is okay to close it without losing data
jFutm.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
jFutm.setVisible(true);
/**
* Listener to nullify jFutm when it closes
*/
jFutm.addWindowListener(new WindowAdapter() {
public void windowClosed(WindowEvent evt) {
// Save this user's setting for this screen
int jFHeight = jFutm.getHeight();
// System.out.println("Saved Screen_Height = " + jFHeight);
int jFWidth = jFutm.getWidth();
// System.out.println("Saved Screen_Width = " + jFWidth);
UserLogDataPrefs.putInt("SCREEN_HEIGHT", jFHeight);
UserLogDataPrefs.putInt("SCREEN_WIDTH", jFWidth);
jFHeight = jFutm.getY();
// System.out.println("Saved Screen_Y = " + jFHeight);
jFWidth = jFutm.getX();
// System.out.println("Saved Screen_X = " + jFWidth);
UserLogDataPrefs.putInt("SCREEN_X", jFWidth);
UserLogDataPrefs.putInt("SCREEN_Y", jFHeight);
// Save this user's setting for PLAF across the entire Application
LookAndFeel oldLF = UIManager.getLookAndFeel();
String tmpLF = oldLF.getClass().toString();
// System.out.println("PLAF saved = " + tmpLF);

JGuiGenPrefs.put("Look and Feel", tmpLF);

jFutm = new com.halepringle.standard.JxFrame();
System.out.println("Edit Panel finished and JFutm was set to NULL (i.e. removed from memory)");
logger.info("Edit Panel finished and JFutm was set to NULL (i.e. removed from memory)");
//XXXX when you copy this call to create this class
//make sure the frame name (jFutm in this case) is declared
//where it is visible to your whole program. (The window listener
//won't be able to null it out if you don't) and DELETE THE NEXT LINE.
System.exit(0);
}
});

//**** end copy here **** (Don't forget to comment out the Systtem.exit(0) - 4 lines up*/
}
}