Win a copy of Fixing your Scrum this week in the Agile forum!

Kevin Ng

Greenhorn
+ Follow
since Aug 31, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kevin Ng

Dear all members,
Does anyone know how to call the 3rd party software from Java code? When i click on a button on my application a third party program will pop up....so i can utilized the 3rd party program in my application...
Does anyone know whether a 3rd party software for text to speech is available to download or not...i need this for my application....
THANK YOU SO MUCH!
17 years ago
Dear Joel McNary,
Yup, these are my problems....
17 years ago
Dear Gregg Bolinger,
Can you show me how to apply this few code into my find class...because when i try to apply this code there were errors which is cannot resolves symbols (pointed to DB.FIELD and the DB stand for database name, FIELD stand for field name??)
boolean CHECKED = false;
if (DB.FIELD == 0) CHECKED = false;
if (DB.FIELD == 1) CHECKED = true;
JCheckBox check = new JCheckBox("Available");
check.setSelected(CHECKED);

Below is my find class:
public class FindRecord implements ActionListener {
public void actionPerformed(ActionEvent e) {
try {
if (!pFnametxt.getText().equals("")&&!pLnametxt.getText().equals("")) {
//start the query here!
String find = "SELECT * FROM contactmanager " +
"WHERE p1stname = '" + pFnametxt.getText() + "'&& plastname = '" + pLnametxt.getText() + "'";
ResultSet rs = statement.executeQuery(find);
boolean moreRecord = rs.next();
if (moreRecord)
{
pLnametxt.setText(rs.getString(2));
pNicktxt.setText(rs.getString(3));
pMobiletxt.setText(rs.getString(4));
pReligiontxt.setText(rs.getString(5));
pEmail1txt.setText(rs.getString(6));
pEmail2txt.setText(rs.getString(7));
pWebtxt.setText(rs.getString(8));
gender.setSelectedItem(rs.getString(9));
pOccupationtxt.setText(rs.getString(10));
oCompanytxt.setText(rs.getString(11));
oAddtxt.setText(rs.getString(12));
oCitytxt.setText(rs.getString(13));
oStatetxt.setText(rs.getString(14));
oZiptxt.setText(rs.getString(15));
oCountrytxt.setText(rs.getString(16));
oPhonetxt.setText(rs.getString(17));
oFaxtxt.setText(rs.getString(18));
oPositiontxt.setText(rs.getString(19));
oDepartmenttxt.setText(rs.getString(20));
oEmailtxt.setText(rs.getString(21));
oWebtxt.setText(rs.getString(22));
hAddtxt.setText(rs.getString(23));
hCitytxt.setText(rs.getString(24));
hStatetxt.setText(rs.getString(25));
hZiptxt.setText(rs.getString(26));
hCountrytxt.setText(rs.getString(27));
hPhonetxt.setText(rs.getString(28));
hFaxtxt.setText(rs.getString(29));
textArea.setText(rs.getString(30));
pBirthtxt.setText(rs.getString(31));
phototxt.setText(rs.getString(32));
//reminder.setSelected(rs.getBoolean(33));
}
else
JOptionPane.showMessageDialog(null,"No such Record!");
}
else
JOptionPane.showMessageDialog(null,"Enter First Name And Last Name To Find!");
}
catch (SQLException sqlex) {
sqlex.printStackTrace();
JOptionPane.showMessageDialog(null, "Error: " + sqlex.toString());
}
catch (Exception ee) {
ee.printStackTrace();
JOptionPane.showMessageDialog(null, "Errorlah ! " +
ee.toString());
}
}
}
THANK YOU SO MUCH!
17 years ago
Dear Joel McNary,
I got test the Hello sample....but got 17 errors.....Below are the steps...which is followed the readme doc.
First go to set my path and classpath under environment....path = c:\ibmjs\lib\ibmjs.jar .....and classpath = C:\ibmjs\lib
Second i execute install.bat to register the IBM engines with the system.
Third i run the Hello Ms Dos Batch File...and its shows the errors and close the dos...
SmSesQueryPhraseAlternatives: The specified procedure could not be found. <7f>
Anunexpected exception has been detected in native code outside the VM.
Unexpected Signal: EXCEPTION_ACCESS_VOILATION occured at PC = 0 X 0
Function=[Unknown.]
Library=<n/a>

instead of this i got try other sample but the same errors....
Thank you....
17 years ago
Dear Oliver Refle,
So can you show me how to code this. When the application execute, in the mainpage a popup JFrame contains a JTable with the entire records in a database if database column equals to current date else the JFrame will not popup.....
Thanks....
Dear Wayne L Johnson,
Yup, exactly....so can you show me how to get value by using JTextField??
THANK YOU....
17 years ago
Dear all members,
Normally we get data/value from database by writting a sql statement, right? How about without writing the sql statement, can i get the data?
For an example, when i run the application a JFrame with the JTable will popup if the database date equal current date...
Without using sql statement which means using DB.FIELD but there were errors when compiling...why?
Any code can show to mehow to apply without sql queries?
THANK YOU SO MUCH.....
Dear all members,
I'm facing a problem which is related with passing the data/value. This is to get the JTextFields value from class A and transfer to class B so JTextField of class B will having the same value with class A which is key-in by the user.
THANK YOU VERY MUCH.....
Regards,
Kevin Ng
17 years ago
Dear Joel McNary,
Sorry, i'm really disappointed you. I cannot run the sample speech program although i had set the PATH and CLASSPATH....
Regards,
Kevin Ng
17 years ago
hi,
I have a JCheckbox on a form and i want to store the info from that JCheckbox into a database (ms access) and also retrieve it back to the form i.e if the checkbox was selected when the form was saved, it should be selected when i retrieve the data.
I had go through all the post and i found only 1 member facing the same problem but seems no respond from u all.....
Thank you....
17 years ago
Dear Joel McNary,
I only know the ibmjs.jar file is needed after you reminded me. I had downloaded the ibmjs.jar file but i don't know how to set the path and classpath. Can you please show me the direction??
Thank you very much!
Regards,
BLUR, BLUR!
17 years ago
Dear Michael Dunn,
If you not mind can u show me how to get the date data from MySQL?
Thank you!
17 years ago
Dear all,
I try to compile and run on the example codes that provides from the Internet but failed. The compiled results shows package javax.speech.synthesis does not exist...why le?? Cna someone tell me why?
17 years ago
About table part....
How can the JCheckBox automatically selected or unselected based on the database. If the column of the databse is selected then the JCheckBox in my application should selected.
Thank you so much!
[ September 18, 2003: Message edited by: Kevin Ng ]
17 years ago
Please help me in how to start my Speech Synthesizer that can transforming text to computerized speech. I have no idea on how to start with this area and i wish to know where to get the tutorial and coding references.
THANK YOU SO MUCH....I'M GETTING BLUR NOW!
17 years ago