Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

qhyang

Greenhorn
+ Follow
since Oct 28, 2000
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 qhyang

Hi there,
I have this problem when I try to use the showInputDialog() function of JOptionPane. I have one user interface, which contains "select", "delete", "update" buttons. When user clicks on the "delete" button, it pops up a JOptionPane to ask the user to input the last name. After getting the last name, the program will delete one record from the database.
Here are some of my code:
public void actionPerformed(ActionEvent evt) {
if(arg.equals("DELETE")) {
String BOX_TITLE="Confirmation Box";
String input = null;
input = (String)JOptionPane.showInputDialog(this, "Input the last name you want to delete", BOX_TITLE, JOptionPane.INFORMATION_MESSAGE, null, null, "Lastname");
System.out.println("User input last name is" + input);
..........
}
.....
}
When I click on the "Delete" button, it pops up the input dialog. I entered last name as "Yang" and then click OK. It gave me the following error message:

at java.awt.Component.processMouseEvent(Component.java:4992)
at java.awt.Container.processMouseEvent(Container.java:1383)
at java.awt.Component.dispatchEvent(Component.java:3501)
at java.awt.Container.dispatchEvent(Container.java:1440)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3195)
......
Any help would be appreciated. Thanks!
qhyang
20 years ago
It works well.
Michael, Thanks a lot!
20 years ago
Hi there,
I am having this kind of problem. Suppose I have a group of 5 radio buttons, each radion button associate with a text. When I select one radio button, I would like to get the associated text with this radio button.
Any help would be appreciated. Thanks!
qhyang
20 years ago
Hi there,
I have two classes named Address and Person. I also make one instance for Address and one instance for Person. Then I have the following code:
Person p = new Person();
Address a = new Address();
if(p instanceof Person)
......
if(a instanceof Address)
....
if(a instance of Person) //check
.....
When I compile, it gave me error "inconvertible types
found : com.berkley.training.util.Person
required: com.berkley.training.util.Address
if(p instanceof Address)"
I am not sure why it is a compile error instead of run-time error.
Thanks!
qionghua
^
21 years ago
Thanks Thomas.

But then can I have any other method that can make the order by clause dynamically? I mean I can order by the field that I pass into the function so that it will order dynamically.
Thanks!
qionghua
Is anybody there using the Java with Informix driver? I am going to develop an application that uses the Jdbc and Informix driver. But I am not quite sure how to connect with Informix driver? Do I need to purchase any Informix driver? Any example codes are very appreciated. Thanks!
Is there a Comparison matrix available comparing the different IDEs?
Any info would be greatly helpful and highly appreciated.
Thanks paul,
Our project is not a web-application. It is a desktop app. It is related to Informix database. The application needs to get and put data into Informix database. Our current language is Smalltalk. The software we are using is Visualworks. The reason we chose Visualworks is that it has a good Informix database model. Anyone has the same transition please give me a hint.
Paul, could you please explain the advantages of Forte to me?
Thanks in advance!
qionghua yang
Hi,
I am very new here. Can someone tell me which book is "RHE book"? Does someone have the links to all those mock exam' sites?
Thanks a lot!
Congratulations to those passed SCPJ exam and wish the future SCPJs good luck at the exam.
Congratulations ye zhang,
Wow what a unbeliverble score!

I am really new here. Can anyone tell me which book is "RHE book" so that I can get one to prepare the exam.
Thanks a lot!
21 years ago
Congradulations!
I just begin to study for the exam.
Please send me your notes.
My e-mail address is: qhyang@hotmail.com
21 years ago