- From: Dave Makower <davemak@pencom.com>
- Date: Mon, 4 Nov 1996 14:56:02 -0500
- To: www-jigsaw@w3.org
I'm observing some strange behavior with the FormCardHandler class. (Using Jigsaw 1.0a3) I have an editor class which extends GenericResourceEditor. In the defineCards() method, I call a method that has the following code: MyHandler handler = new MyHandler(target); FormCardResource card = defineCard(handler, "MyCardName", "MyCardTitle"); card.addButton("Generate"); card.addButton("Delete"); Then, in the notifyButtonClick() method for the class MyHandler, I have the following code: System.out.println("Got button click: \"" + label + "\"."); The strange thing is that no matter which button I click, the label seems to be "Generate" -- never "Delete". That is, the println statement always causes the following console output: Got button click: "Generate". Why is this? +---------------------+-------------------------+---------------------+ | Dave Makower | davemak@pencom.com | WWW Specialist | +---------------------+-------------------------+---------------------+ | Co-author of "Java Programming Basics" (Henry Holt/MIS:Press) | | http://www.pencom.com/javabasics/ | +----------------------------------+----------------------------------+ | Pencom Web Works | (212) 513-7777 voice | | Pencom Systems Inc. | (212) 513-1975 fax | | 40 Fulton St. | | | New York, NY 10038 | http://www.pencom.com/ | +----------------------------------+----------------------------------+
Received on Monday, 4 November 1996 14:55:05 UTC