hi guys, i have experimented with action listner and produced the following programme. However, i have this problem.
Firstly enter 2 items
item number: 1
item description : test
item price : 1
item quantity :2
click add
add another:
item number:2
item description: test2
item price:2
item quantity:2
click add
now click amend item, then search item number: 2
click amend. A popup will display amend item successful.
click search again, and enter item number 1
click amend. A pupup will display amend item sucessful. but displays it 2 times... which means the operations inside my annonymous action listner is repeated 2 times... why is that so? i only click the amend item button 1 time.
Can anyone help me please? I thank you greatly in advance.
it seems that the code is too long to be posted inside a code block.
here is the url to download the code
BookstoreInventory.javaThis post has been edited by shangyi: 4 Jul, 2009 - 02:02 AM